/* Avanti Visas — estilos
   Layout: cabecera crema, héroe con ilustración de visa aprobada,
   secciones alternas crema / blanco, pie azul marino. Un solo tema de marca. */
:root {
  --navy: #081E36;
  --navy-2: #12304f;
  --gold: #B99350;
  --gold-dark: #8a6a2f;
  --cream: #FAF8F3;
  --white: #ffffff;
  --ink: #081E36;
  --muted: #586579;
  --line: #e6e1d6;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-brand: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #c9a463; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 243, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--font-brand); font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-sub { font-size: .62rem; font-weight: 700; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-dark); margin-top: 4px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--gold-dark); }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 11px 10px;
  border: 1.5px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 820px) {
  .header-inner { gap: 12px; }
  .menu-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    box-shadow: 0 16px 24px -16px rgba(8, 30, 54, .25);
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-top: 1px solid var(--line); font-size: 1.05rem; }
}
@media (max-width: 380px) { .brand-text { display: none; } }

/* Héroe */
.hero { padding-block: 72px 88px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Visa aprobada (ilustración de marca, no reproduce ninguna visa real) */
.visa-wrap { margin: 0; display: grid; gap: 12px; justify-items: center; min-width: 0; }
.visa {
  position: relative; width: 100%; max-width: 480px; overflow: hidden;
  border-radius: 14px; border: 1px solid #d9cfba;
  background-color: #fbf6ea;
  /* fondo de seguridad tipo guilloché, en tonos de la marca */
  background-image:
    url("assets/marca.png"),
    repeating-radial-gradient(circle at 78% 62%, rgba(185, 147, 80, .10) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(115deg, rgba(8, 30, 54, .035) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #fdf9f0, #f3ead6);
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  background-size: 190px auto, cover, auto, cover;
  background-position: 108% 115%, center, center, center;
  box-shadow: 0 28px 50px -26px rgba(8, 30, 54, .55), 0 2px 0 rgba(8, 30, 54, .04);
  transform: rotate(-2deg);
}
.visa::after { /* atenuar la marca de agua */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(251, 246, 234, .55), rgba(251, 246, 234, .78));
}
.visa > * { position: relative; z-index: 1; }
.visa-band {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; background: var(--navy); color: var(--cream);
}
.visa-band img { width: 34px; }
.visa-brand { font-family: var(--font-brand); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.visa-band-r { margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.visa-body { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px 20px 12px; }
.visa-photo {
  aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  background: #e7dcc4; color: #b9a982; border: 1px solid #d9cfba;
  display: grid; align-items: end;
}
.visa-photo svg { width: 100%; height: auto; display: block; }
.visa-fields { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-content: start; min-width: 0; }
.visa-fields .span-2 { grid-column: span 2; }
.visa-fields dt { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.visa-fields dd { margin: 1px 0 0; font-weight: 700; font-size: .95rem; color: var(--navy); }
.visa-fields .span-2 dd { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; font-weight: 600; }
.visa-mrz {
  margin: 0; padding: 10px 20px 16px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, "Courier New", monospace;
  font-size: clamp(.58rem, 1.6vw, .74rem); letter-spacing: .12em; line-height: 1.6;
  color: rgba(8, 30, 54, .62); white-space: nowrap; overflow: hidden;
  border-top: 1px dashed #d9cfba;
}
.visa-stamp {
  position: absolute; z-index: 2; width: 148px; height: 148px;
  right: 14px; top: 64px;
  color: #2d7a4f; opacity: .88; mix-blend-mode: multiply;
  font-family: var(--font-body);
  transform: rotate(-14deg);
  animation: sello .7s cubic-bezier(.2, 1.4, .4, 1) .3s both;
}
@keyframes sello { from { transform: rotate(-14deg) scale(1.5); } to { transform: rotate(-14deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .visa-stamp { animation: none; } }
.visa-wrap figcaption { font-size: .78rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero { padding-block: 44px 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .visa { transform: none; }
}
@media (max-width: 440px) {
  .visa-body { grid-template-columns: 72px 1fr; gap: 14px; }
  .visa-stamp { width: 112px; height: 112px; right: 6px; top: 58px; }
  .visa-band-r { display: none; }
}

/* Secciones */
.section { padding-block: 88px; }
.section-white { background: var(--white); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 640px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.08; }
.section-head p:not(.eyebrow) { color: var(--muted); }
@media (max-width: 600px) { .section { padding-block: 64px; } }

/* Destinos y planes: una tarjeta por país, todas del mismo alto, botón abajo */
.dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dest {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 24px 24px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.dest:hover { border-color: var(--gold); }
.dest-code { font-family: var(--font-brand); font-size: .85rem; letter-spacing: .2em; color: var(--gold-dark); }
.dest-name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.15; }
.dest-type { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.dest .btn { margin-top: auto; }
@media (max-width: 900px) { .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .dest-grid { grid-template-columns: 1fr; } }

.incluye {
  list-style: none; margin: 36px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: .95rem; font-weight: 500;
}
.incluye li { position: relative; padding-left: 22px; }
.incluye li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(-45deg); }
.fine { margin-top: 16px; font-size: .85rem; color: var(--muted); max-width: 72ch; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--navy); }
.steps li::before { content: "Paso " counter(paso); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.steps h3 { font-family: var(--font-display); font-size: 1.45rem; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Valores */
.section-navy { background: var(--navy); color: var(--cream); padding-block: 72px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.values h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); margin-bottom: 8px; }
.values p { color: #cdd5e0; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; gap: 28px; } }

/* Preguntas */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--gold-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 8px; } }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy { display: grid; gap: 14px; }
.contact-copy h2 { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.08; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); }
.contact-data { margin: 12px 0 0; display: grid; gap: 14px; }
.contact-data dt { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.contact-data dd { margin: 2px 0 0; font-weight: 500; user-select: all; }
.form { display: grid; gap: 6px; padding: 28px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.form label { font-size: .85rem; font-weight: 700; margin-top: 10px; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
  font: 1rem var(--font-body); color: var(--ink);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185, 147, 80, .25); }
.form .btn { margin-top: 18px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 32px; } }

/* Pie */
.site-footer { background: var(--navy); color: #cdd5e0; padding-block: 56px calc(56px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--navy-2); }
.footer-inner { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center; }
.footer-logo { width: 180px; }
.footer-text { display: grid; gap: 14px; font-size: .88rem; max-width: 70ch; }
.footer-small { color: #8f9bb0; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } .footer-logo { width: 150px; } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; z-index: 30;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1f8f4e; color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(8, 30, 54, .5);
}
.wa-float:hover { background: #18773f; }
.wa-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ===== Solo celular (menos de 600 px). El computador y la tableta no cambian. ===== */
.solo-movil { display: none; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding-block: 48px; }
  .section-navy { padding-block: 44px; }
  .section-head { margin-bottom: 24px; gap: 8px; }
  .section-head h2, .contact-copy h2 { font-size: 2rem; }

  /* Héroe: título, un botón y tres puntos clave */
  .hero { padding-block: 28px 40px; }
  .hero-inner { gap: 32px; }
  .hero-copy { gap: 18px; }
  .hero h1 { font-size: 2.4rem; }
  .lead, .hero .btn-ghost { display: none; }
  .hero-actions .btn { width: 100%; min-height: 52px; font-size: 1rem; }
  .trust { flex-direction: column; gap: 8px; font-size: .95rem; }

  /* Visa: más pequeña y sin texto de relleno */
  .visa-mrz, .visa-fields > div:nth-child(n+3) { display: none; }
  .visa-fields > div:nth-child(2) { grid-column: span 2; }
  .visa-body { padding: 18px 18px 22px; }
  .visa-stamp { width: 96px; height: 96px; top: auto; bottom: -8px; right: -4px; }

  /* Destinos: una fila por país con su botón */
  .section-head p:not(.eyebrow) { display: none; }
  .dest-grid { gap: 10px; }
  .dest { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; }
  .dest-code, .dest-type { display: none; }
  .dest-name { font-size: 1.4rem; }
  .dest .btn { margin-top: 0; width: auto; flex: none; min-height: 42px; padding: 0 16px; font-size: .85rem; }
  .incluye { margin-top: 24px; padding-top: 20px; flex-direction: column; gap: 10px; }

  /* Pasos: número y título, sin párrafos */
  .steps { gap: 0; }
  .steps li { grid-template-columns: 36px 1fr; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 1px solid var(--line); }
  .steps li::before {
    content: counter(paso); width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--navy); color: var(--cream); font-size: .95rem; letter-spacing: 0;
  }
  .steps h3 { font-size: 1.35rem; }
  .steps p { display: none; }

  /* Valores */
  .values { gap: 20px; }
  .values h3 { font-size: 1.4rem; margin-bottom: 4px; }
  .values p { font-size: .95rem; }

  /* Preguntas */
  .faq summary { padding-block: 16px; font-size: 1rem; }

  /* Contacto: un botón directo a WhatsApp en vez del formulario */
  .contact-copy > p:not(.eyebrow), .form { display: none; }
  .solo-movil { display: inline-flex; min-height: 52px; font-size: 1rem; }
  .contact-data { margin-top: 8px; }

  /* Pie */
  .site-footer { padding-block: 40px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer-logo { width: 120px; }
}
@media (max-width: 380px) { .visa-stamp { width: 78px; height: 78px; bottom: -6px; right: -6px; } }
