/* ===== tokens ===== */
:root {
  --navy: #0B1626;
  --navy-2: #14233A;
  --gold: #D9AE5E;
  --gold-deep: #B8913F;
  --gold-ink: #7A5C1B;
  --ivory: #F6F3EC;
  --ivory-2: #EDE8DC;
  --line-light: #E4DED0;
  --line-dark: rgba(217, 174, 94, 0.25);
  --ink: #0B1626;
  --ink-soft: #3A4658;
  --mist: #A9B4C4;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 4px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: var(--nav-h); }
body { font-family: var(--font-body); color: var(--ink); background: var(--ivory); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.section-light :focus-visible, .faq :focus-visible { outline-color: var(--gold-ink); }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius); z-index: 200; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-light { background: var(--ivory); color: var(--ink); }

.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 20px; }
.section-dark .eyebrow { color: var(--gold); }
.title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4.4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 20px; }
.title em { font-style: italic; color: var(--gold-ink); }
.section-dark .title em { color: var(--gold); }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 58ch; }
.section-dark .lead { color: var(--mist); }
.rule { width: 56px; height: 1px; background: var(--gold-deep); border: 0; margin: 28px 0; }

/* ===== botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #E6C07A; border-color: #E6C07A; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ===== nav ===== */
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; background: transparent; border-bottom: 1px solid transparent; transition: background 0.28s var(--ease), border-color 0.28s var(--ease); }
.navbar.scrolled { background: var(--navy); border-bottom-color: var(--line-dark); }
.nav-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-link { color: #fff; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid transparent; transition: color 0.28s var(--ease), border-color 0.28s var(--ease); }
.nav-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-cta { padding: 11px 20px; }

.hamburger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 0.28s var(--ease), opacity 0.28s var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--navy); flex-direction: column; justify-content: center; gap: 28px; transform: translateX(100%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s linear 0.35s; }
  .nav-menu.open { transform: none; visibility: visible; transition: transform 0.35s var(--ease), visibility 0s; }
  .nav-link { font-size: 0.95rem; }
  .navbar.menu-open { background: var(--navy); }
}

/* ===== hero ===== */
.hero { position: relative; padding: calc(var(--nav-h) + 96px) 0 112px; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -8%; top: 50%; width: min(720px, 90vw); aspect-ratio: 841 / 297; transform: translateY(-50%); background: url('img/logo.png') center / contain no-repeat; opacity: 0.05; pointer-events: none; }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 28px; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.stages { border-left: 1px solid var(--line-dark); }
.stage { display: flex; gap: 24px; padding: 28px 0 28px 32px; position: relative; }
.stage + .stage { border-top: 1px solid var(--line-dark); }
.stage::before { content: ''; position: absolute; left: -4px; top: 40px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.stage-num { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; }
.stage h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.stage p { color: var(--mist); font-size: 0.92rem; }

@media (max-width: 900px) {
  .hero { padding: calc(var(--nav-h) + 56px) 0 80px; }
  .hero-layout { grid-template-columns: 1fr; gap: 56px; }
}

/* ===== servicios ===== */
.servicios-head { max-width: 680px; margin-bottom: 64px; }
.servicios-list { border-top: 1px solid var(--line-light); }
.servicio { display: grid; grid-template-columns: 80px 1fr auto; gap: 32px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line-light); }
.servicio-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-ink); line-height: 1; }
.servicio h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.servicio p { color: var(--ink-soft); max-width: 60ch; }
.servicio-link { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); padding: 8px 0; border-bottom: 1px solid var(--gold-deep); transition: color 0.28s var(--ease); }
.servicio-link:hover { color: var(--navy); }

.ventajas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 72px; padding: 40px; background: var(--navy); color: #fff; border-radius: var(--radius); }
.ventajas li { border-left: 1px solid var(--line-dark); padding-left: 20px; }
.ventajas h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); margin-bottom: 6px; }
.ventajas p { color: var(--mist); font-size: 0.92rem; }

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .servicio { grid-template-columns: 56px 1fr; gap: 20px; }
  .servicio-link { grid-column: 2; justify-self: start; }
  .ventajas { grid-template-columns: 1fr 1fr; padding: 28px; }
}
@media (max-width: 520px) { .ventajas { grid-template-columns: 1fr; } }

/* ===== proceso ===== */
.proceso-head { max-width: 680px; margin-bottom: 72px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: var(--line-dark); }
.timeline-step { position: relative; padding-top: 68px; }
.timeline-step::before { content: ''; position: absolute; left: 0; top: 30px; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; }
.timeline-num { position: absolute; left: 20px; top: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.timeline-step h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin-bottom: 10px; }
.timeline-step p { color: var(--mist); font-size: 0.95rem; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var(--line-dark); }
  .timeline::before { display: none; }
  .timeline-step { padding: 0 0 40px 32px; }
  .timeline-step:last-child { padding-bottom: 0; }
  .timeline-step::before { left: -5px; top: 7.5px; }
  .timeline-num { position: static; display: block; margin-bottom: 8px; }
}

/* ===== nosotros ===== */
.nosotros-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.equipo { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-top: 40px; }
.equipo[hidden] { display: none; }
.miembro { border-top: 1px solid var(--gold-deep); padding-top: 14px; }
.miembro h3 { font-family: var(--font-display); font-size: 1.4rem; }
.miembro p { color: var(--ink-soft); font-size: 0.9rem; }

/* ===== faq ===== */
.faq { background: var(--ivory-2); }
.faq-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+' / ''; font-family: var(--font-body); font-size: 1.5rem; color: var(--gold-ink); transition: transform 0.28s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 48px 24px 0; color: var(--ink-soft); }

@media (max-width: 900px) {
  .nosotros-layout, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-item p { padding-right: 0; }
}

/* ===== contacto ===== */
.contacto-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.info-list { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.info-list > div { padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.info-list dt { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.info-list dd { color: #fff; }
.info-list a:hover { color: var(--gold); }

.contacto-form { background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 40px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; }
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 16px; font: inherit; color: #fff; background: var(--navy); border: 1px solid rgba(169, 180, 196, 0.35); border-radius: var(--radius); transition: border-color 0.28s var(--ease); }
.form-group input:focus, .form-group textarea:focus { outline: 2px solid transparent; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 174, 94, 0.25); }
.form-group .error { border-color: #F2A0A0; }
.form-error { display: block; min-height: 1.2em; margin-top: 6px; font-size: 0.85rem; color: #F2A0A0; }
.form-success { margin-top: 20px; padding: 16px; border: 1px solid var(--gold); border-radius: var(--radius); color: var(--gold); }
.form-success[hidden] { display: none; }

@media (max-width: 900px) {
  .contacto-layout { grid-template-columns: 1fr; gap: 48px; }
  .contacto-form { padding: 28px 22px; }
}

/* ===== footer ===== */
.footer { background: var(--navy); color: #fff; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--mist); max-width: 34ch; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--mist); transition: color 0.28s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); color: var(--mist); font-size: 0.85rem; }
.footer-bottom a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; transition: color 0.28s var(--ease); }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { padding-bottom: 88px; }
}

/* ===== whatsapp ===== */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; background: #128C7E; color: #fff; border-radius: 50%; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); transition: transform 0.28s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
