/* ═══════════════════════════════════════════════════════
   CFRV CONSULTORES — Shared Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ─── 1. RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ─── 2. CUSTOM PROPERTIES ─── */
:root {
  --navy:        #0b1a2e;
  --navy-light:  #12263e;
  --navy-mid:    #1a3150;
  --gold:        #c4963c;
  --gold-light:  #d4ad5a;
  --gold-pale:   #f5e6c8;
  --cream:       #faf6ef;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f4f5f7;
  --gray-200:    #e2e4e8;
  --gray-400:    #9ca3af;
  --gray-600:    #6b7280;
  --gray-800:    #2d3748;
  --text-dark:   #1a1a2e;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, sans-serif;

  --container:    1100px;
  --transition:   0.4s ease;
  --transition-fast: 0.3s ease;
}

/* ─── 3. TYPOGRAPHY ─── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

/* ─── 4. LAYOUT ─── */
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

section {
  padding: 7rem 2.5rem;
}

/* ─── 5. NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

nav.scrolled {
  background: rgba(11, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.9rem 2.5rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(196,150,60,0.5);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
  display: block;
}

/* ─── 6. HERO (Homepage) ─── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(196,150,60,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2.5rem 6rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  max-width: 820px;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: all 0.35s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,150,60,0.3);
}

.hero-cta svg { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.hero-cta:hover svg { transform: translateX(4px); }

/* ─── 7. PAGE HERO (Inner Pages) ─── */
.page-hero {
  background: var(--navy);
  padding: 9.5rem 2.5rem 5.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(196,150,60,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25;
}

.page-hero-content {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.page-hero p {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 520px;
  line-height: 1.65;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

/* ─── 8. SECTION LABELS ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 3.5rem;
}

.section-subtitle--white { color: rgba(255,255,255,0.5); }

.section-cta {
  margin-top: 3rem;
  text-align: center;
}

/* ─── 9. BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: all 0.35s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,150,60,0.3);
}

.btn-primary svg { width: 16px; height: 16px; transition: transform var(--transition-fast); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--gray-200);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── 10. PAIN POINTS ─── */
.pain-points { background: var(--gray-100); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.pain-card:hover::before { transform: scaleX(1); }
.pain-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.pain-number {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1rem;
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 400;
  line-height: 1.2;
}

.pain-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── 11. SERVICES ─── */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--navy);
  border-color: transparent;
  padding: 3rem;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:not(.service-card--featured):hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.service-icon svg { width: 24px; height: 24px; }

.service-card--featured .service-icon {
  background: rgba(196,150,60,0.15);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.service-card--featured h3 {
  font-size: 1.8rem;
  color: var(--white);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.65;
  font-weight: 300;
}

.service-card--featured .featured-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.35rem 0.75rem;
  background: var(--cream);
  border-radius: 3px;
}

.service-card--featured .service-tag {
  background: rgba(196,150,60,0.15);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.service-link:hover { gap: 0.7rem; }

.featured-includes {
  margin-top: 1rem;
}

.featured-includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.5;
}

.featured-includes li:last-child { border-bottom: none; }

.featured-includes li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.featured-cta {
  margin-top: 2rem;
}

/* ─── 12. CASE STUDY ─── */
.case-study {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.case-study::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(196,150,60,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.case-study .section-label { color: var(--gold); }
.case-study .section-title { color: var(--white); }

.case-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.case-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1rem;
}

.case-card > div > p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  font-weight: 300;
}

.case-results {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.case-result-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--gold);
}

.case-result-item p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  font-weight: 300;
}

.case-result-item p strong {
  color: var(--gold-light);
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.case-attribution {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255,255,255,0.25);
}

/* ─── 13. ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-visual { position: relative; }

.about-visual-block {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.about-visual-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
}

.about-visual-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,150,60,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,150,60,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.about-initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.15;
  letter-spacing: 8px;
  z-index: 1;
}

.about-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  opacity: 0.4;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-200);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── 14. RESOURCES PREVIEW ─── */
.resources-preview { background: var(--gray-50); }

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.article-card:hover::before { transform: scaleX(1); }
.article-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  transform: translateY(-4px);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.article-date {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

.article-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.2rem 0.6rem;
  background: var(--gold-pale);
  border-radius: 2px;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  font-weight: 400;
  flex: 1;
}

.article-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition-fast);
  text-transform: uppercase;
}

.article-link:hover { gap: 0.7rem; }

/* ─── 15. CONTACT ─── */
.contact {
  background: var(--navy);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
}

.contact-info-item { margin-bottom: 2rem; }

.contact-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contact-info-value {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  line-height: 1.6;
}

.contact-info-value a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-info-value a:hover { color: var(--gold-light); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.9rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  transition: all var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.4);
  pointer-events: none;
}

.form-select-wrapper select { cursor: pointer; }

.form-select-wrapper select option {
  background: var(--navy-light);
  color: var(--white);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196,150,60,0.25);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-success {
  padding: 2rem;
  background: rgba(196,150,60,0.1);
  border: 1px solid rgba(196,150,60,0.3);
  text-align: center;
}

.form-success p {
  color: var(--gold-light);
  font-size: 1rem;
  line-height: 1.6;
}

.form-error-msg {
  color: #ff7875;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ─── 16. METHODOLOGY ─── */
.methodology { background: var(--gray-50); }

.methodology-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 1rem;
}

.method-step {
  padding: 2rem 2rem 2rem 0;
  position: relative;
}

.method-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.7rem;
  right: 0;
  width: 1px;
  height: 60%;
  background: var(--gray-200);
}

.method-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1rem;
}

.method-step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.method-step p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── 17. DIFFERENTIATORS TABLE ─── */
.differentiators { background: var(--white); }

.diff-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.diff-header {
  padding: 1.25rem 1.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.diff-header--left {
  background: var(--gray-100);
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}

.diff-header--right {
  background: rgba(196,150,60,0.08);
  color: var(--gold);
  border-bottom: 1px solid var(--gray-200);
  border-left: 1px solid var(--gray-200);
}

.diff-row {
  display: contents;
}

.diff-cell {
  padding: 1.25rem 1.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 300;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}

.diff-cell--left {
  background: var(--white);
}

.diff-cell--right {
  background: rgba(196,150,60,0.03);
  color: var(--text-dark);
  font-weight: 400;
  border-left: 1px solid var(--gray-200);
}

.diff-row:last-child .diff-cell { border-bottom: none; }

/* ─── 18. CTA BAND ─── */
.cta-band {
  background: var(--navy);
  padding: 5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(196,150,60,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.cta-band-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

/* ─── 19. SERVICE DETAIL (servicios.html) ─── */
.service-detail { padding: 6rem 2.5rem; }
.service-detail--alt { background: var(--gray-50); }
.service-detail--dark { background: var(--navy); }

.service-detail-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.service-detail-inner.service-detail-inner--wide {
  grid-template-columns: 1.2fr 1fr;
}

.service-detail h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.service-detail--dark h2 { color: var(--white); }

.service-tagline {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.service-detail p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
}

.service-detail--dark p { color: rgba(255,255,255,0.6); }

.service-includes {
  margin-top: 1.5rem;
}

.service-includes h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.service-detail--dark .service-includes h4 { color: var(--gold); }

.service-includes li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.92rem;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.5;
}

.service-detail--dark .service-includes li {
  color: rgba(255,255,255,0.65);
  border-bottom-color: rgba(255,255,255,0.06);
}

.service-includes li:last-child { border-bottom: none; }

.service-includes li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  padding: 2rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold);
}

.service-detail--dark .sidebar-box {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.sidebar-box h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.sidebar-box p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 0;
}

.service-detail--dark .sidebar-box p { color: rgba(255,255,255,0.55); }

.sidebar-box ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-box ul li {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.service-detail--dark .sidebar-box ul li { color: rgba(255,255,255,0.55); }

.sidebar-box ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

/* ─── 20. CREDENTIALS (nosotros.html) ─── */
.credentials { background: var(--gray-50); }

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.credential-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.credential-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.credential-card:hover::before { transform: scaleX(1); }
.credential-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  transform: translateY(-3px);
  border-color: transparent;
}

.credential-icon {
  width: 44px;
  height: 44px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.credential-icon svg { width: 22px; height: 22px; }

.credential-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.credential-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
  font-weight: 300;
}

/* ─── 21. VALUES (nosotros.html) ─── */
.values { background: var(--white); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.value-item {}

.value-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.value-icon svg { width: 44px; height: 44px; }

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-dark);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.value-item p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── 22. STATS BAND ─── */
.stats-band {
  background: var(--navy);
  padding: 4rem 2.5rem;
}

.stats-band-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stats-band-item {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.stats-band-item:last-child { border-right: none; }

.stats-band-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stats-band-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── 23. NEXT STEPS BOX (contacto.html) ─── */
.next-steps {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.next-steps h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.next-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.next-step:last-child { border-bottom: none; }

.next-step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
}

.next-step p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  font-weight: 300;
  padding-top: 0.15rem;
}

/* ─── 24. FOOTER ─── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2.5rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4rem;
  align-items: start;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
  line-height: 1.5;
  max-width: 240px;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 300;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}

.footer-email a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-email a:hover { color: var(--gold); }

/* ─── 25. ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 26. UTILITIES ─── */
.text-gold { color: var(--gold); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── 27. RESPONSIVE ─── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card--featured { grid-template-columns: 1fr; gap: 2rem; }
  .pain-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .methodology-steps { grid-template-columns: repeat(2, 1fr); }
  .method-step:nth-child(2)::after { display: none; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-band-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stats-band-item:nth-child(even) { border-bottom-color: rgba(255,255,255,0.06); }
  .service-detail-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .case-card { grid-template-columns: 1fr; gap: 2.5rem; }
  .case-attribution { grid-column: 1; }
  .diff-table { grid-template-columns: 1fr; }
  .diff-header--right { border-left: none; border-top: 1px solid var(--gray-200); }
  .diff-cell--right { border-left: none; }
}

@media (max-width: 700px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.75rem 1.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(11, 26, 46, 0.98);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  section { padding: 4.5rem 1.5rem; }
  .service-detail { padding: 4.5rem 1.5rem; }
  .hero-content { padding: 7rem 1.5rem 4rem; }
  .page-hero { padding: 7.5rem 1.5rem 3.5rem; }
  .cta-band { padding: 4rem 1.5rem; }
  .stats-band { padding: 3rem 1.5rem; }
  footer { padding: 2.5rem 1.5rem; }

  .resources-grid { grid-template-columns: 1fr; }
  .methodology-steps { grid-template-columns: 1fr; }
  .method-step:not(:last-child)::after { display: none; }
  .method-step { padding: 1.5rem 0; border-bottom: 1px solid var(--gray-200); }
  .credentials-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stats-band-inner { grid-template-columns: 1fr 1fr; }
}
