/* =====================================================================
   Panamainfo — versión 3 "monumental".
   El nombre PANAMAINFO al centro, en capitulares de inscripción clásica
   (Cinzel), sobre la ciudad de noche. Blanco + rojo vino, mucho aire,
   centrado y simétrico. Índice editorial de servicios con foto flotante.
   ===================================================================== */
:root {
  --bg: #ffffff;
  --paper: #faf7f6;
  --ink: #161012;
  --text: #423739;
  --muted: #7c7072;
  --line: #e8e1e1;
  --wine: #7b1e2e;
  --wine-2: #94283b;
  --deep: #3d0c16;
  --night: #120c0e;
  --gold: #c8a46b;
  --cap: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(18px, 4.5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; } /* height:auto: los atributos width/height solo reservan la proporción */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { flex: none; }
::selection { background: var(--wine); color: #fff; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 980px; }
main { overflow-x: clip; }

/* ---------- Tipografía ---------- */
.eyebrow { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.1rem; font-family: var(--cap); font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--wine); }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ''; width: 34px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--gold); }
.h2 { font-family: var(--cap); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.2; letter-spacing: .04em; color: var(--ink); margin: 0 0 1rem; text-wrap: balance; }
.h2.light { color: #fff; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0; max-width: 46rem; }
.lead.light { color: #c9bcbf; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: 0 1.8rem; border-radius: 0; font-family: var(--cap); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: .7rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.4rem; }

/* ---------- Menú ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.1rem var(--gutter); color: #fff; transition: background .4s, color .4s, padding .4s, box-shadow .4s; }
.nav.is-solid { background: rgba(255, 255, 255, .97); color: var(--ink); padding-block: .7rem; box-shadow: 0 1px 0 var(--line); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { position: relative; font-family: var(--cap); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: .4rem 0; opacity: .9; }
.nav-links a::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-mark { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.nav-mark svg { width: 34px; height: 34px; color: currentColor; transition: color .4s; }
.nav.is-solid .nav-mark svg { color: var(--wine); }
.nav-mark .brand-logo { height: 40px; width: auto; }
.nav-name { direction: ltr; font-family: var(--cap); font-weight: 700; font-size: .78rem; letter-spacing: .34em; text-transform: uppercase; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .4s; }
.nav.is-solid .nav-name { max-height: 1.4em; opacity: 1; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch button { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .5rem; border: 1px solid transparent; background: none; cursor: pointer; font-family: var(--cap); font-size: .7rem; font-weight: 600; letter-spacing: .12em; opacity: .65; transition: .2s; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed='true'] { opacity: 1; border-color: currentColor; }
.flag { width: 18px; height: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.nav:not(.is-solid) .nav-cta { background: transparent; border-color: rgba(255, 255, 255, .6); }
.nav:not(.is-solid) .nav-cta:hover { background: #fff; color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid currentColor; background: none; cursor: pointer; position: relative; color: inherit; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.nav.is-menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--night); color: #fff; text-align: center; }
.hero-bg { position: absolute; inset: -8% 0 0 0; background-size: cover; background-position: 56% 50%; transform: scale(1.12); will-change: transform; animation: kenburns 3.2s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.3); opacity: 0; } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 50%, rgba(18, 12, 14, .55) 0%, rgba(18, 12, 14, .82) 60%, rgba(61, 12, 22, .92) 100%); }
.hero-frame { position: absolute; inset: clamp(14px, 2.4vw, 30px); z-index: 2; border: 1px solid rgba(200, 164, 107, .35); pointer-events: none; animation: fadeIn 2s var(--ease) 1.2s both; }
.hero-frame::before, .hero-frame::after { content: ''; position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold); }
.hero-frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.hero-frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
@keyframes fadeIn { from { opacity: 0; } }
.hero-center { position: relative; z-index: 3; width: 100%; padding: 110px var(--gutter) 100px; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: clamp(46px, 5vw, 64px); height: auto; color: var(--gold); margin-bottom: 1.2rem; animation: drop 1.2s var(--ease) .2s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-24px); } }
.hero-kicker { margin: 0 0 1.2rem; font-family: var(--cap); font-size: clamp(.66rem, 1vw, .8rem); font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 14px rgba(0, 0, 0, .9); animation: fadeIn 1.4s var(--ease) .5s both; }
/* El nombre: tamaño calculado para caber en una línea a cualquier ancho */
.wordmark { margin: 0; font-family: var(--cap); font-weight: 600; line-height: 1; letter-spacing: .08em; padding-inline-start: .08em; white-space: nowrap; color: #fff;
  font-size: clamp(2.2rem, calc(90vw / (var(--chars, 10) * .86)), 9.4rem); text-shadow: 0 10px 50px rgba(0, 0, 0, .45); }
/* El nombre es texto normal ("PANAMAINFO"); entra como palabra completa, las letras se juntan hasta su separación final */
.wordmark { animation: letter 1.6s var(--ease) .6s both; }
@keyframes letter { from { opacity: 0; transform: translateY(.18em); filter: blur(10px); letter-spacing: .22em; } }
.hero-rule { display: flex; align-items: center; gap: .9rem; margin: 1.6rem 0 1.4rem; width: min(420px, 70vw); }
.hero-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); transform: scaleX(0); animation: grow 1.4s var(--ease) 1.4s both; }
.hero-rule span:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.hero-rule i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); animation: fadeIn 1s 1.6s both; }
@keyframes grow { to { transform: scaleX(1); } }
.hero-sub { margin: 0; max-width: 40rem; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; color: #eadde0; animation: rise 1.2s var(--ease) 1.6s both; }
.hero .cta-row { animation: rise 1.2s var(--ease) 1.85s both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: clamp(28px, 4vw, 46px); transform: translateX(-50%); display: grid; justify-items: center; gap: .6rem; font-family: var(--cap); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: #cdbfc2; animation: fadeIn 1s 2.4s both; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Frase grande ---------- */
.intro { padding: clamp(100px, 13vw, 180px) 0 clamp(80px, 10vw, 130px); text-align: center; }
.statement { margin: 0 auto; max-width: 30em; font-family: var(--sans); font-weight: 500; font-size: clamp(1.45rem, 3vw, 2.45rem); line-height: 1.38; letter-spacing: -.01em; }
.statement .word { color: #d8cfd0; transition: color .5s var(--ease); }
.statement .word.lit { color: var(--ink); }
.pillars { list-style: none; margin: clamp(56px, 7vw, 90px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillars li { display: grid; justify-items: center; gap: .3rem; padding: 2rem 1rem 0; }
.pillars li + li { border-inline-start: 1px solid var(--line); }
.pillars svg { width: 34px; height: 34px; color: var(--wine); margin-bottom: .5rem; }
.pillars strong { font-family: var(--cap); font-size: .82rem; font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.pillars span { font-size: .88rem; color: var(--muted); line-height: 1.4; }

/* ---------- Servicios: índice ---------- */
.services { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: s; }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-title { margin: 0; font: inherit; letter-spacing: inherit; }
.svc-head { position: relative; width: 100%; display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 1.4rem; padding: 1.7rem .6rem; border: 0; background: none; cursor: pointer; text-align: start; overflow: hidden; isolation: isolate; }
.svc-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--wine); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.svc-head:hover::before, .svc-row.is-open .svc-head::before { transform: scaleY(1); }
.svc-head .n { font-family: var(--cap); font-size: 1.05rem; color: var(--wine); transition: color .4s; }
.svc-head .t { font-family: var(--sans); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.2; color: var(--ink); transition: color .4s, transform .5s var(--ease); }
.svc-head .law { font-family: var(--cap); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .4s; }
.svc-head .plus { position: relative; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; color: var(--wine); transition: color .4s, transform .5s var(--ease); }
.svc-head .plus::before, .svc-head .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.svc-head .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc-head:hover .n, .svc-head:hover .t, .svc-head:hover .law, .svc-head:hover .plus,
.svc-row.is-open .svc-head .n, .svc-row.is-open .svc-head .t, .svc-row.is-open .svc-head .law, .svc-row.is-open .svc-head .plus { color: #fff; }
.svc-head:hover .t { transform: translateX(10px); }
.svc-row.is-open .svc-head .plus { transform: rotate(45deg); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc-row.is-open .svc-body { grid-template-rows: 1fr; }
.svc-inner { overflow: hidden; display: grid; grid-template-columns: 340px 1fr; gap: clamp(20px, 4vw, 48px); }
.svc-row.is-open .svc-inner { padding: 2rem .6rem 2.4rem; }
.svc-inner img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.svc-inner p { margin: 0 0 1.2rem; font-size: 1.05rem; }
.svc-inner h4 { margin: 0 0 .7rem; font-family: var(--cap); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.checks { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.4rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.checks svg { width: 18px; height: 18px; color: var(--wine); margin-top: .15rem; }
.svc-float { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 5 / 4; pointer-events: none; opacity: 0; transition: opacity .35s; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); }
.svc-float img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(255, 255, 255, .6); outline-offset: -10px; }
.svc-float.show { opacity: 1; }

/* ---------- Franja panorámica ---------- */
.panorama { position: relative; height: clamp(380px, 72vh, 680px); display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.panorama-bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; will-change: transform; }
.panorama::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18, 12, 14, .55), rgba(61, 12, 22, .65)); }
.panorama-text { position: relative; z-index: 2; padding-inline: var(--gutter); }
.panorama-text p { text-shadow: 0 2px 14px rgba(0, 0, 0, .9); margin: 0 0 1rem; font-family: var(--cap); font-size: .78rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); }
.panorama-text h2 { margin: 0 auto; max-width: 18em; font-family: var(--cap); font-weight: 600; font-size: clamp(1.7rem, 4.4vw, 3.6rem); line-height: 1.2; letter-spacing: .05em; }

/* ---------- Cómo funciona ---------- */
.process { padding: clamp(90px, 11vw, 150px) 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.steps li { position: relative; padding-top: 1.2rem; border-top: 1px solid var(--ink); }
.steps .big { display: block; font-family: var(--cap); font-weight: 700; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: 1; color: rgba(123, 30, 46, .14); margin-bottom: .8rem; transition: color .6s var(--ease); transition-delay: calc(.4s + var(--i) * .2s); }
.steps li.is-in .big { color: var(--wine); }
.steps h3 { margin: 0 0 .4rem; font-family: var(--cap); font-size: 1.05rem; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Guías ---------- */
.guides { padding: clamp(90px, 11vw, 150px) 0; background: var(--night); color: #cfc3c5; }
.guide-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); }
.guide-col { padding: clamp(22px, 2.6vw, 34px); background: var(--night); display: flex; flex-direction: column; }
.guide-col .tag { font-family: var(--cap); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.guide-col h3 { margin: .7rem 0 1.2rem; font-family: var(--cap); font-weight: 600; font-size: 1.2rem; line-height: 1.35; letter-spacing: .03em; color: #fff; }
.guide-col details { border-top: 1px solid rgba(255, 255, 255, .12); }
.guide-col summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: .8rem; padding: .85rem 0; font-weight: 500; font-size: .98rem; color: #f1e7e9; }
.guide-col summary::-webkit-details-marker { display: none; }
.guide-col summary::after { content: '+'; color: var(--gold); font-size: 1.1rem; line-height: 1; transition: transform .3s; }
.guide-col details[open] summary::after { transform: rotate(45deg); }
.guide-col details p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.6; }
.guide-link { margin-top: auto; padding-top: 1.4rem; font-family: var(--cap); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.guide-link::after { content: ' →'; }
.guide-link:hover { color: #fff; }
.guide-note { margin: 1.6rem 0 0; text-align: center; font-size: .82rem; color: #8f8385; }

/* ---------- Nosotros ---------- */
.about { padding: clamp(90px, 11vw, 150px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.prose p { margin: 0 0 1rem; }
.about-figure { position: relative; margin: 0; }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stats { position: absolute; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: rgba(18, 12, 14, .82); backdrop-filter: blur(6px); color: #fff; }
.stats div { padding: 1.1rem 1rem; text-align: center; }
.stats div + div { border-inline-start: 1px solid rgba(255, 255, 255, .15); }
.stats dt { font-family: var(--cap); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--gold); }
.stats dd { margin: .35rem 0 0; font-size: .78rem; line-height: 1.35; color: #ddd0d3; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(90px, 11vw, 150px) 0; background: var(--paper); }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.contact-chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line); background: #fff; font-size: .92rem; font-weight: 500; transition: border-color .25s, color .25s; }
.contact-chip svg { width: 18px; height: 18px; color: #1f7a4d; }
a.contact-chip:hover { border-color: var(--wine); color: var(--wine); }
.contact-chip.plain { color: var(--muted); }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(22px, 3.4vw, 46px); background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 90px -60px rgba(22, 16, 18, .5); position: relative; }
.lead-form::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--wine), var(--gold), var(--wine)); }
.field { display: grid; gap: .35rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--cap); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 0; }
.field label[data-req]::after { content: ' *'; color: var(--wine); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem 0; background: transparent; border: 0; border-bottom: 1px solid #cfc5c6; border-radius: 0; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .25s; }
.field select { padding-inline-end: 1rem; }
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--wine); box-shadow: 0 1px 0 var(--wine); }
.field .is-invalid { border-bottom-color: #c0392b !important; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid var(--line); font-size: .88rem; cursor: pointer; transition: .2s; }
.chip span:hover { border-color: var(--wine); }
.chip input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.tz-note { margin: -4px 0 0; font-size: .82rem; color: var(--muted); }
.tz-note b { color: var(--wine); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: .3rem; accent-color: var(--wine); width: 18px; height: 18px; flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.4rem; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok { color: #1f6b45; }
.form-status.err { color: #c0392b; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Preguntas ---------- */
.faq { padding: clamp(90px, 11vw, 150px) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 110px; }
.faq-grid .btn { margin-top: 1rem; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; font-weight: 500; font-size: 1.1rem; color: var(--ink); transition: color .25s; }
.faq-item summary:hover { color: var(--wine); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-family: var(--cap); font-size: 1.4rem; color: var(--wine); transition: transform .35s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.4rem; }

/* ---------- Pie ---------- */
.footer { background: var(--night); color: #b9adb0; padding: 80px 0 26px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.footer-tag { margin: 0; max-width: 26rem; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; color: #e9dde0; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.footer h3 { margin: 0 0 1rem; font-family: var(--cap); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .93rem; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { padding: .3rem .75rem; border: 1px solid rgba(255, 255, 255, .25); font-size: .8rem; }
.footer-word { margin: 60px 0 0; text-align: center; font-family: var(--cap); font-weight: 700; font-size: clamp(2rem, 10.4vw, 13rem); line-height: .9; letter-spacing: .06em; white-space: nowrap; color: rgba(200, 164, 107, .13); user-select: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; }
.footer-langs { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.footer-langs button { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-size: .8rem; }
.footer-langs button:hover, .footer-langs button[aria-pressed='true'] { color: #fff; }
.footer-langs .flag { width: 16px; height: 10.7px; }
.footer-note { margin: 14px auto 0; font-size: .75rem; color: #85797b; }

.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1f7a4d; color: #fff; box-shadow: 0 14px 34px -10px rgba(31, 122, 77, .7); transition: transform .3s var(--ease); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }

.preview-bar { position: fixed; inset: auto 0 0 0; z-index: 300; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; padding: .7rem 1rem; text-align: center; background: var(--gold); color: var(--night); font-size: .9rem; box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); }
.preview-bar button { padding: .45rem 1rem; border: 0; cursor: pointer; background: var(--night); color: #fff; font-weight: 600; font-size: .85rem; }
body.is-preview .wa-float { bottom: 84px; }

/* ---------- Apariciones ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: .66rem; letter-spacing: .12em; }
}
@media (max-width: 980px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-mark { grid-column: 1; grid-row: 1; flex-direction: row; gap: .6rem; }
  .nav-name { max-height: none; opacity: 1; font-size: .72rem; letter-spacing: .26em; }
  .nav-actions { grid-column: 3; grid-row: 1; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; background: var(--night); color: #fff; opacity: 0; visibility: hidden; transition: .4s var(--ease); }
  .nav-links a { font-size: 1.1rem; letter-spacing: .24em; }
  .nav.is-menu-open { color: #fff; background: transparent; box-shadow: none; }
  .nav.is-menu-open .nav-links { opacity: 1; visibility: visible; }
  .nav.is-menu-open .nav-mark svg { color: var(--gold); }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li:nth-child(3) { border-inline-start: 0; }
  .pillars li:nth-child(n+3) { padding-top: 1.6rem; }
  .svc-inner { grid-template-columns: 1fr; }
  .svc-inner img { aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  .guide-cols { grid-template-columns: 1fr; }
  .about-grid, .faq-grid, .footer-top { grid-template-columns: 1fr; }
  .faq-grid > div:first-child { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding-block: .8rem; }
  .nav-name { display: none; }
  .lang-switch span { display: none; }
  .hero-center { padding: 96px 18px 110px; }
  .hero-kicker { letter-spacing: .26em; max-width: 18rem; line-height: 1.7; }
  .cta-row { flex-direction: column; align-items: stretch; width: min(100%, 320px); margin-inline: auto; }
  .svc-head { grid-template-columns: 38px 1fr 32px; gap: .8rem; padding: 1.3rem .2rem; }
  .svc-head .law { display: none; }
  .svc-head .n { font-size: .9rem; }
  .svc-head:hover .t { transform: none; }
  .checks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats dt { font-size: 1.7rem; }
  .stats dd { font-size: .7rem; }
  .lead-form { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Agregado 2026-10-15: categorías, países y contacto por correo ---------- */
.svc-cat { padding: 2.6rem .6rem .9rem; border-bottom: 1px solid var(--line); }
.svc-list > .svc-cat:first-child { padding-top: 1.6rem; }
.svc-cat span { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--cap); font-size: .76rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--wine); }
.svc-cat span::after { content: ''; width: 40px; height: 1px; background: currentColor; }

.countries { padding: clamp(90px, 11vw, 150px) 0; }
.country-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.country-grid li { position: relative; display: grid; justify-items: center; align-content: center; gap: .5rem; min-height: 150px; padding: 1.4rem .8rem; text-align: center; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: color .4s; }
.country-grid li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--wine); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.country-grid li:hover::before { transform: scaleY(1); }
.country-grid .code { font-family: var(--cap); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: .06em; color: var(--wine); transition: color .4s; }
.country-grid .name { font-size: .92rem; color: var(--text); line-height: 1.3; transition: color .4s; }
.country-grid li:hover .code { color: var(--gold); }
.country-grid li:hover .name { color: #fff; }
.countries-note { margin: 1.4rem 0 0; text-align: center; font-size: .9rem; color: var(--muted); }

.mail-hero { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: fit-content; max-width: 100%; margin: 0 auto 1.6rem; padding: 1.6rem 2.6rem; background: var(--wine); color: #fff; text-align: center; transition: background .3s, transform .4s var(--ease); }
.mail-hero:hover { background: var(--wine-2); transform: translateY(-3px); }
.mail-hero svg { width: 34px; height: 34px; color: var(--gold); }
.mail-hero .mail-cta { font-family: var(--cap); font-weight: 600; font-size: .9rem; letter-spacing: .26em; text-transform: uppercase; }
.mail-hero .mail-addr { font-size: clamp(1.1rem, 2.6vw, 1.55rem); font-weight: 500; letter-spacing: .01em; overflow-wrap: anywhere; }
.contact-row:not(:has(> :not([hidden]))) { display: none; }
.form-status a { color: var(--wine); font-weight: 600; text-decoration: underline; }

@media (max-width: 980px) {
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .country-grid li { min-height: 116px; }
  .mail-hero { padding: 1.3rem 1.2rem; width: 100%; }
  .svc-cat { padding-inline: .2rem; }
}

/* Menú: con 7 enlaces, en laptops pasa al botón de menú para no partir palabras */
.nav-links a { white-space: nowrap; }
@media (max-width: 1280px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-mark { grid-column: 1; grid-row: 1; flex-direction: row; gap: .6rem; }
  .nav-name { max-height: none; opacity: 1; font-size: .72rem; letter-spacing: .26em; }
  .nav-actions { grid-column: 3; grid-row: 1; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; background: var(--night); color: #fff; opacity: 0; visibility: hidden; transition: .4s var(--ease); }
  .nav-links a { font-size: 1.1rem; letter-spacing: .24em; }
  .nav.is-menu-open { color: #fff; background: transparent; box-shadow: none; }
  .nav.is-menu-open .nav-links { opacity: 1; visibility: visible; }
  .nav.is-menu-open .nav-mark svg { color: var(--gold); }
  .menu-toggle { display: block; }
}
@media (max-width: 640px) { .nav-name { display: none; } }

/* ---------- Ventana para escribir un correo ---------- */
.mail-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: transparent; overflow: visible; }
.mail-dialog::backdrop { background: rgba(18, 12, 14, .72); backdrop-filter: blur(4px); }
.mail-dialog[open] { animation: dlgIn .45s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.mail-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: clamp(22px, 4vw, 40px); background: #fff; border-top: 3px solid var(--wine); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.mail-box > h2, .mail-box > .mail-to, .mail-box > .mail-ico { grid-column: 1 / -1; text-align: center; margin: 0; }
.mail-ico { width: 34px; height: 34px; justify-self: center; color: var(--wine); }
.mail-box h2 { font-family: var(--cap); font-weight: 600; font-size: 1.6rem; letter-spacing: .06em; color: var(--ink); }
.mail-to { font-size: .95rem; color: var(--muted); margin-top: -6px !important; overflow-wrap: anywhere; }
.mail-to b { color: var(--wine); font-weight: 600; }
.mail-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
.mail-x:hover { color: var(--wine); }
@media (max-width: 640px) { .mail-box { grid-template-columns: 1fr; } }
.mail-box textarea { min-height: 90px; }

/* =====================================================================
   Ajustes 2026-10-15 (2): menú más grande, banderas, contacto ordenado,
   pie sin lista de servicios, foto de servicios al costado y contraste.
   ===================================================================== */
/* Menú más visible */
.nav { padding: 1.4rem var(--gutter); }
.nav.is-solid { padding-block: .95rem; box-shadow: 0 6px 24px -14px rgba(22, 16, 18, .35); }
.nav-links { gap: 1.7rem; }
.nav-links a { font-size: .8rem; letter-spacing: .15em; opacity: 1; }
.nav-mark svg { width: 44px; height: 44px; }
.nav-name { font-size: .9rem; letter-spacing: .3em; }
.lang-switch button { font-size: .78rem; padding: .42rem .65rem; opacity: .8; }
.flag { width: 22px; height: 15px; }
.nav .btn-sm { min-height: 46px; padding: 0 1.4rem; font-size: .76rem; }
.menu-toggle { width: 48px; height: 48px; }
.menu-toggle span { left: 12px; right: 12px; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 28px; }
.nav.is-menu-open .menu-toggle span:first-child, .nav.is-menu-open .menu-toggle span:last-child { top: 23px; }
@media (max-width: 1440px) and (min-width: 1281px) { .nav-links { gap: 1.25rem; } .nav-links a { font-size: .74rem; letter-spacing: .12em; } }
@media (max-width: 1280px) { .nav-links a { font-size: 1.15rem; } }
@media (max-width: 640px) { .nav { padding: 1rem 16px; } .nav-mark svg { width: 38px; height: 38px; } }

/* Frase grande: las palabras pendientes ya no se confunden con el fondo */
.statement .word { color: #b3a7a9; }

/* Servicios: el título nunca queda debajo de la foto flotante */
@media (hover: hover) and (pointer: fine) and (min-width: 981px) { .svc-head .t { max-width: 62%; } }
.svc-float { width: 260px; transition: opacity .3s, transform .35s var(--ease); }

/* Países con bandera */
.country-grid li { gap: .55rem; min-height: 170px; }
.cflag { width: 64px; height: auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 8px 18px -10px rgba(0, 0, 0, .45); transition: transform .5s var(--ease); }
.country-grid li:hover .cflag { transform: scale(1.08); }
.country-grid .name { font-size: 1rem; font-weight: 500; color: var(--ink); }
.country-grid .code { font-size: .74rem; letter-spacing: .26em; color: var(--muted); }
.country-grid li:hover .code { color: var(--gold); }
@media (max-width: 640px) { .cflag { width: 54px; } .country-grid li { min-height: 140px; } }

/* Contacto: correo a la izquierda, formulario corto a la derecha */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-side .lead { margin-bottom: 1.8rem; }
.mail-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.3rem 1.5rem; background: var(--wine); color: #fff; transition: background .3s, transform .4s var(--ease); }
.mail-card:hover { background: var(--wine-2); transform: translateY(-3px); }
.mail-card svg { width: 40px; height: 40px; color: var(--gold); flex: none; }
.mail-card span { display: grid; gap: .2rem; min-width: 0; }
.mail-card small { font-family: var(--cap); font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #f1dde1; }
.mail-card b { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; overflow-wrap: anywhere; }
.contact-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .8rem; }
.contact-points li { display: flex; gap: .7rem; align-items: center; font-size: 1rem; color: var(--text); }
.contact-points svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #f1e3e5; color: var(--wine); }
.contact-row { justify-content: flex-start; margin: 1.4rem 0 0; }
.lead-form { gap: 18px 20px; padding: clamp(22px, 3vw, 38px); }
.form-title { grid-column: 1 / -1; margin: 0 0 .3rem; font-family: var(--cap); font-weight: 600; font-size: 1.25rem; letter-spacing: .06em; color: var(--ink); }
/* Campos más legibles (aplica también a la ventana "Escríbanos") */
.field label, .field legend { font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.field input, .field select, .field textarea { min-height: 50px; padding: .7rem .9rem; background: #faf7f6; border: 1px solid #d9cfd0; border-radius: 4px; font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(123, 30, 46, .12); }
.field .is-invalid { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.consent { font-size: .92rem; color: var(--text); }
.form-foot { justify-content: flex-start; }
.form-status { font-size: .95rem; }
@media (max-width: 980px) { .contact-wrap { grid-template-columns: 1fr; } }

/* Pie de página ordenado: marca · explorar · contacto */
.footer { color: #d3c8ca; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: clamp(28px, 5vw, 64px); }
.footer-logo { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--cap); font-weight: 700; font-size: 1.15rem; letter-spacing: .26em; text-transform: uppercase; color: #fff; }
.footer-logo svg { width: 40px; height: 40px; color: var(--gold); }
.footer-tag { margin: 1.2rem 0 0; max-width: 28rem; font-size: 1.3rem; color: #eadfe1; }
.footer h3 { font-size: .8rem; margin-bottom: 1.1rem; }
.footer-links { gap: .7rem; font-size: 1rem; }
.footer-links a { color: #d3c8ca; }
.footer-links a:hover, .footer-mail:hover { color: #fff; }
.footer-contact { display: grid; justify-items: start; gap: .55rem; font-size: 1rem; }
.footer-loc, .footer-hours { margin: 0; }
.footer-hours:empty, .footer-phone:empty { display: none; }
.footer-mail { color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.footer-btn { margin-top: .8rem; min-height: 46px; font-size: .74rem; }
.footer-base { font-size: .86rem; color: #c4b8bb; }
.footer-note { color: #a89c9f; font-size: .8rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* Otros contrastes */
.lead { color: #6b5f61; }
.pillars span, .steps p, .tz-note, .countries-note { color: #6b5f61; }
.svc-head .law { color: #6b5f61; }
.guide-note { color: #a89c9f; }

/* QA: filas cerradas fuera del orden del teclado; botón cerrar siempre visible */
.svc-body { visibility: hidden; transition: grid-template-rows .6s var(--ease), visibility 0s .6s; }
.svc-row.is-open .svc-body { visibility: visible; transition-delay: 0s; }
.mail-x { position: sticky; top: 0; grid-column: 1 / -1; justify-self: end; margin: -12px -12px -40px 0; z-index: 2; background: #fff; border-radius: 50%; }
/* Celular: el nombre también se ve junto al emblema */
@media (max-width: 640px) { .nav-name { display: inline; font-size: .74rem; letter-spacing: .2em; } }
@media (max-width: 370px) { .nav-name { letter-spacing: .12em; font-size: .68rem; } }

/* Servicios: miniatura dentro de la fila en lugar de foto flotante (no tapa nada) */
.svc-head { grid-template-columns: 70px minmax(0, 1fr) auto auto 40px; }
.svc-head .t { max-width: none; }
.svc-head .thumb { display: block; width: 0; height: 64px; overflow: hidden; opacity: 0; transition: width .45s var(--ease), opacity .35s; }
.svc-head .thumb img { width: 104px; height: 64px; object-fit: cover; outline: 1px solid rgba(255, 255, 255, .5); outline-offset: -5px; }
@media (hover: hover) and (pointer: fine) {
  .svc-head:hover .thumb { width: 104px; opacity: 1; }
}
.svc-row.is-open .svc-head .thumb { width: 0; opacity: 0; }
@media (max-width: 640px) { .svc-head { grid-template-columns: 38px minmax(0, 1fr) 32px; } .svc-head .thumb { display: none; } }
/* Espacio de la miniatura siempre reservado: el título no se mueve al pasar el mouse */
@media (hover: hover) and (pointer: fine) {
  .svc-head .thumb { width: 104px; transition: opacity .35s var(--ease); }
  .svc-row.is-open .svc-head .thumb { width: 104px; }
}
@media (hover: none), (pointer: coarse) { .svc-head .thumb { display: none; } }

/* ---------- Ajustes para pantallas extremas (2026-10-16) ---------- */
/* Celulares angostos: el menú siempre cabe completo */
@media (max-width: 400px) {
  .nav { gap: .5rem; padding-inline: 12px; }
  .nav-actions { gap: .35rem; }
  .lang-switch button { padding: .3rem .35rem; }
  .nav-mark { gap: .45rem; }
  .nav-mark svg { width: 34px; height: 34px; }
  .nav-name { font-size: .64rem; letter-spacing: .14em; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle span:first-child { top: 16px; }
  .menu-toggle span:last-child { top: 26px; }
  .nav.is-menu-open .menu-toggle span:first-child, .nav.is-menu-open .menu-toggle span:last-child { top: 21px; }
}
@media (max-width: 345px) { .nav-name { display: none; } }

/* Celular acostado (poca altura): portada compacta para que todo quepa */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { padding-block: .55rem; }
  .nav-mark svg { width: 32px; height: 32px; }
  .lang-switch button { padding: .25rem .45rem; }
  .menu-toggle { width: 42px; height: 42px; }
  .menu-toggle span:first-child { top: 15px; }
  .menu-toggle span:last-child { top: 25px; }
  .nav.is-menu-open .menu-toggle span:first-child, .nav.is-menu-open .menu-toggle span:last-child { top: 20px; }
  .hero-center { padding: 64px var(--gutter) 34px; }
  .hero-mark { width: 34px; margin-bottom: .5rem; }
  .hero-kicker { margin-bottom: .6rem; }
  .wordmark { font-size: clamp(2rem, 9vw, 4.2rem); }
  .hero-rule { margin: .8rem 0 .7rem; }
  .hero-sub { font-size: 1.1rem; }
  .hero .cta-row { margin-top: 1.1rem; flex-direction: row; width: auto; }
  .hero .btn { min-height: 44px; }
  .scroll-cue { display: none; }
  .nav-links { gap: .7rem; }
  .nav-links a { font-size: .9rem; }
}

/* Monitores grandes (2K/4K): todo un poco más grande y más ancho */
@media (min-width: 2000px) {
  html { font-size: 118%; }
  .container { max-width: 1560px; }
  .wordmark { font-size: clamp(2.2rem, calc(90vw / (var(--chars, 10) * .86)), 12rem); }
}
/* Marca "Demo" (solo en las demostraciones): discreta en pantallas pequeñas o bajas */
@media (max-width: 640px), (max-height: 500px) { body .demo-badge { left: 8px; bottom: 8px; padding: .3rem .6rem; font-size: .6rem; opacity: .85; } }

/* Escritorio con poca altura (portátiles, ventana no maximizada o con zoom): la portada cabe sin montarse */
@media (min-width: 701px) and (max-height: 760px) {
  .hero-center { padding: 96px var(--gutter) 56px; }
  .hero-mark { width: 44px; margin-bottom: .7rem; }
  .hero-kicker { margin-bottom: .7rem; }
  .wordmark { font-size: clamp(2.2rem, min(calc(90vw / (var(--chars, 10) * .86)), 19vh), 9.4rem); }
  .hero-rule { margin: 1rem 0 .9rem; }
  .hero-sub { font-size: clamp(1.1rem, 1.9vw, 1.45rem); }
  .hero .cta-row { margin-top: 1.4rem; }
  .scroll-cue { display: none; }
}

/* Servicios: el h3 contiene solo el nombre (dentro del botón del acordeón); número y etiqueta van fuera.
   El botón cubre toda la fila con ::after, así la fila entera sigue siendo clicable como antes. */
.svc-head { cursor: pointer; }
.svc-title { min-width: 0; }
.svc-btn { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.svc-btn::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.svc-btn:focus-visible { outline: none; }
.svc-btn:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -3px; }
.svc-head .t { display: block; }

/* WhatsApp: el botón flotante solo en celular y tablet (en escritorio están los botones de contacto y de cada servicio) */
@media (min-width: 981px) { .wa-float { display: none; } }
.wa-float[hidden] { display: none; }
.svc-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-wa { border: 1px solid #1f7a4d; color: #1f7a4d; background: #fff; }
.btn-wa:hover { background: #1f7a4d; color: #fff; }
.btn-wa svg { width: 18px; height: 18px; }
.footer-addr { margin: 0; }
.footer-addr[hidden] { display: none; }

/* Equipo (oculto mientras no haya personas) */
.team { padding: clamp(80px, 10vw, 130px) 0; background: var(--paper); }
.team[hidden], .testimonials[hidden] { display: none; }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; gap: clamp(20px, 3vw, 36px); }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 1.1rem; }
.team-card h3 { margin: 0 0 .3rem; font-family: var(--cap); font-weight: 600; font-size: 1.15rem; letter-spacing: .04em; color: var(--ink); }
.team-role { margin: 0 0 .6rem; font-family: var(--cap); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
.team-bio { margin: 0; font-size: .95rem; color: var(--text); }

/* Testimonios (ocultos mientras no haya testimonios reales) */
.testimonials { padding: clamp(80px, 10vw, 130px) 0; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.quote-card { margin: 0; padding: 2rem 1.8rem; border: 1px solid var(--line); border-top: 3px solid var(--wine); background: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.quote-card blockquote p { margin: 0; }
.quote-card figcaption { display: grid; gap: .2rem; }
.quote-card figcaption strong { font-family: var(--cap); font-size: .85rem; letter-spacing: .12em; color: var(--ink); }
.quote-card figcaption span { font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) { body.is-preview .wa-float { bottom: 140px; } }

/* ---------- Fase 3: servicios estrella, selector, lista compacta y botones de cotización ---------- */
.featured { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.featured[hidden] { display: none; }
.feat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--wine); }
.feat-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feat-body { display: flex; flex-direction: column; gap: .6rem; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.feat-body h3 { margin: 0; font-family: var(--cap); font-weight: 600; font-size: 1.2rem; letter-spacing: .03em; line-height: 1.3; color: var(--ink); }
.feat-body p { margin: 0; font-size: .97rem; line-height: 1.6; color: var(--text); }
.feat-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: .8rem; }
.feat-more, .svc-page-link { font-family: var(--cap); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.feat-more::after, .svc-page-link::after { content: ' →'; }
.feat-more:hover, .svc-page-link:hover { color: var(--wine-2); text-decoration: underline; }
.svc-page-link { align-self: center; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } .feat-card { flex-direction: row; } .feat-card img { width: 38%; height: auto; aspect-ratio: auto; object-fit: cover; align-self: stretch; } }
@media (max-width: 560px) { .feat-card { flex-direction: column; } .feat-card img { width: 100%; aspect-ratio: 16 / 9; } }

.svc-filter { margin: 0 0 1.4rem; }
.svc-filter[hidden] { display: none; }
.svc-filter-label { margin: 0 0 .7rem; font-family: var(--cap); font-size: .76rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--wine); }
.svc-filter-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.svc-chip { min-height: 44px; padding: .55rem 1.05rem; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 .93rem/1.3 var(--sans); text-align: start; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.svc-chip:hover { border-color: var(--wine); color: var(--wine); }
.svc-chip[aria-pressed='true'] { background: var(--wine); border-color: var(--wine); color: #fff; }
.svc-list > li[hidden] { display: none; }

/* Lista de 18 servicios más compacta */
.svc-head { padding-block: 1.05rem; }
.svc-head .t { font-size: clamp(1.08rem, 1.7vw, 1.45rem); }
.svc-head .thumb img { height: 52px; width: 84px; }
.svc-head .thumb { height: 52px; }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) { .svc-head:hover .thumb { width: 84px; } }
.svc-cat { padding-top: 2rem; }
@media (max-width: 640px) { .svc-head { padding-block: .95rem; } }

.section-cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* Guías: resumen con fecha y enlace a la guía completa */
.guide-date { margin: -.6rem 0 .8rem; font-size: .82rem; color: #a99da0; }
.guide-summary { margin: 0 0 .4rem; font-size: .95rem; line-height: 1.65; color: #d9cfd1; }

/* Formulario: aviso de privacidad y mensaje de gracias */
.consent-note { margin: -.4rem 0 0; font-size: .86rem; }
.consent-note a { color: var(--wine); text-decoration: underline; }
.form-status.thanks { display: grid; gap: .3rem; padding: .9rem 1rem; border-left: 3px solid #1f6b45; background: #eef6f1; color: #1d4d34; }
.form-status.thanks strong { font-size: 1rem; }
.form-status.thanks span { font-weight: 400; font-size: .92rem; line-height: 1.55; }

/* Pie: enlaces legales */
.footer-legal { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }

/* Barra fija del celular: Cotizar + WhatsApp (cuando hay número). Reemplaza al botón flotante en el celular. */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 70; display: flex; gap: .5rem; padding: .55rem 12px calc(.55rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -14px rgba(0, 0, 0, .35); transition: transform .35s var(--ease); }
  .mobile-bar .btn { flex: 1; min-height: 46px; padding: 0 .8rem; font-size: .76rem; }
  .mobile-bar .btn[hidden] { display: none; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  body { padding-bottom: 66px; }
  .wa-float { display: none !important; }
  body.is-preview .mobile-bar { bottom: 120px; }
}

/* Portada: franja "Trámites en 10 países · Español e inglés · Cotización por escrito" (visible sin bajar) */
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem 0; margin: 1.6rem 0 0; padding: 0; font-family: var(--cap); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #eadde0; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); animation: rise 1.2s var(--ease) 2s both; }
.hero-proof li { display: inline-flex; align-items: center; gap: .6rem; }
.hero-proof li + li::before { content: '·'; margin-inline: 1.1rem; color: var(--gold); }
.hero-flags { display: inline-flex; gap: 3px; }
.hero-flags .cflag { width: 18px; height: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
@media (max-width: 640px) {
  .hero-proof { margin-top: 1.1rem; font-size: .62rem; letter-spacing: .08em; gap: .5rem 0; }
  .hero-proof-countries { flex-basis: 100%; flex-direction: column; justify-content: center; gap: .5rem !important; }
  .hero-proof-countries + li::before { display: none; }
  .hero-proof li + li::before { margin-inline: .55rem; }
  .hero-flags .cflag { width: 20px; height: 13px; }
}
html:not(.js) .hero-proof { opacity: 1 !important; transform: none !important; }

/* "Sobre Panamainfo": 10 países (con banderas) como dato principal; debajo 1 solo contacto y Español e inglés */
.stats { grid-template-columns: 1fr 1fr; }
.stats .stat-main { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .9rem; text-align: start; padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.stats .stat-main dt { grid-row: 1 / 3; font-size: 3rem; }
.stats .stat-main dd { margin: 0; font-family: var(--cap); font-size: .9rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.stat-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .45rem; }
.stat-flags .cflag { width: 22px; height: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.stats div + div { border-inline-start: 0; }
.stats .stat-main + div + div { border-inline-start: 1px solid rgba(255, 255, 255, .15); }
.stats dt.count:not(:only-child) { white-space: nowrap; }
/* Celulares de poca altura (iPhone SE, 360×740 en inglés): portada compacta para que la franja de países se vea sin bajar */
@media (max-width: 640px) and (max-height: 760px) {
  .hero-center { padding-top: 84px; padding-bottom: 76px; }
  .hero-mark { width: 34px; margin-bottom: .6rem; }
  .hero-kicker { margin-bottom: .6rem; font-size: .6rem; }
  .hero-rule { margin: .8rem 0 .7rem; }
  .hero-sub { font-size: 1.05rem; line-height: 1.3; }
  .hero .cta-row { margin-top: 1rem; gap: .55rem; }
  .hero .btn { min-height: 44px; }
  .hero-proof { margin-top: .8rem; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) and (max-height: 600px) {
  .hero-center { padding-top: 70px; padding-bottom: 70px; }
  .hero-mark { display: none; }
  .hero .cta-row { flex-direction: row; width: 100%; }
  .hero .btn { flex: 1; padding: 0 .6rem; font-size: .62rem; letter-spacing: .1em; }
}
@media (max-width: 640px) { .stat-flags { gap: 3px; flex-wrap: nowrap; } .stat-flags .cflag { width: 19px; height: 13px; } .stats .stat-main { padding: 1rem; column-gap: .7rem; } }
/* Con solo 2 datos, "1 solo contacto" ocupa todo el ancho bajo "10 países" */
.stats .stat-main + div:last-child { grid-column: 1 / -1; border-inline-start: 0; }
/* Un solo dato ("10 países"): sin línea divisoria inferior */
.stats .stat-main:last-child { border-bottom: 0; }

/* Oficina (sección Contacto): solo la dirección */
.office { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.office[hidden], .office-addr[hidden] { display: none; }
.office-title { margin: 0 0 .4rem; font-family: var(--cap); font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
.office-addr { margin: 0; font-size: 1.02rem; font-weight: 500; color: var(--ink); }
.btn-outline { border: 1px solid var(--wine); color: var(--wine); background: #fff; }
.btn-outline:hover { background: var(--wine); color: #fff; }
