/* ==========================================================================
   Yuliana · Asesora de visa de estudios — hoja de estilos
   ========================================================================== */

/* Fuentes alojadas en la propia web (subconjunto latino, variables) */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/fraunces-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Sacramento'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/sacramento-latin.woff2') format('woff2'); }

:root {
  --bg: #fdf6f1;
  --bg-tint: #f9ebe5;
  --card: #ffffff;
  --ink: #2a2024;
  --muted: #6b5c62;
  --brand: #7a1f3d;
  --brand-dark: #5c142c;
  --rose: #b4506c;
  --rose-soft: #f7dfe2;
  --line: #efe0da;
  --wa: #1a7f4b; /* verde de WhatsApp oscurecido: el texto blanco necesita contraste AA */

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Sacramento', 'Brush Script MT', cursive;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(90, 30, 50, .04), 0 8px 28px rgba(90, 30, 50, .07);
  --shadow-lg: 0 18px 50px rgba(90, 30, 50, .14);
  --container: 1200px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, .h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.h3 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { --container: 780px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--bg-tint); }
.section--tight { padding-top: 0; }
.prose-block > * + * { margin-top: 1.1rem; }
.prose-block p { font-size: 1.1rem; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }

.chip { display: inline-block; background: var(--rose-soft); color: var(--brand); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 6px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.script { font-family: var(--script); font-weight: 400; color: var(--brand); font-size: 1.45em; line-height: .8; letter-spacing: 0; white-space: nowrap; position: relative; padding: 0 .1em; }
.script::after { content: ''; position: absolute; left: 8%; right: 0; bottom: .1em; height: .12em; border-bottom: 2px solid var(--brand); border-radius: 50%; transform: rotate(-1.5deg); }

.section-head { max-width: 720px; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin-top: 1rem; }
.divider { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--rose); margin-top: .9rem; }
.divider::before, .divider::after { content: ''; width: 26px; height: 1px; background: currentColor; }
.divider svg { width: 20px; height: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(122, 31, 61, .22); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--outline { background: #fff; color: var(--brand); border-color: var(--rose); }
.btn--outline:hover { background: var(--rose-soft); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--rose-soft); color: var(--brand-dark); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Área táctil de 44 px: el relleno se compensa con margen negativo para no mover la maquetación */
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; text-decoration: none; padding-block: .6rem; margin-block: -.6rem; }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(253, 246, 241, .94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(90, 30, 50, .06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--brand); line-height: 1; flex: none; }
.logo__name { position: relative; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: .09em; text-transform: uppercase; padding-right: .1em; }
.logo__mark { position: absolute; right: -1.05rem; top: -.55rem; transform: rotate(18deg); color: var(--rose); }
.logo__mark svg { width: 1.3rem; height: 1.3rem; }
.logo__tag { font-size: .56rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin-top: .3rem; color: var(--rose); }
.logo__route { font-size: .5rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: .3rem; color: var(--rose); }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }
.nav__link { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 44px; padding: .55rem 0; color: var(--ink); font-weight: 500; font-size: .93rem; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav__link svg { width: .9rem; height: .9rem; }
.nav__link:hover, .nav__link.is-active { color: var(--brand); }
.nav__link.is-active { border-color: var(--brand); }
.nav__item--has-menu { position: relative; }
.nav__menu { position: absolute; top: 100%; left: -1rem; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__item--has-menu:hover .nav__menu, .nav__item--has-menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--ink); font-size: .92rem; text-decoration: none; }
.nav__menu a:hover { background: var(--rose-soft); color: var(--brand); }
.nav__cta { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--brand); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; background: linear-gradient(180deg, #fbefe9 0%, var(--bg) 100%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; min-height: min(640px, calc(100vh - var(--header-h))); }
.hero__copy { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 3rem) clamp(2.5rem, 5vw, 4.5rem) max(1.25rem, calc((100vw - var(--container)) / 2)); }
.hero__copy h1 { margin: 1.25rem 0 1.75rem; font-size: clamp(2rem, 3.3vw, 2.8rem); text-wrap: pretty; }
.hero__copy .lead strong { color: var(--ink); }
.hero__copy .btn-row { margin-top: 1.75rem; }
.hero__note { margin-top: 1.25rem; font-size: .93rem; color: var(--muted); max-width: 46ch; }
.hero--video { background: var(--bg); }
.hero--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253, 246, 241, .82) 0%, rgba(253, 246, 241, .6) 45%, rgba(253, 246, 241, 0) 80%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* iOS pinta su botón de play cuando bloquea el autoplay (bajo consumo); es decorativo, así que queda el póster */
.hero__video::-webkit-media-controls, .hero__video::-webkit-media-controls-start-playback-button, .hero__video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.hero--video .hero__inner { position: relative; z-index: 1; }
.hero--video .hero__copy h1, .hero--video .hero__copy .lead, .hero--video .hero__note { color: var(--ink); text-shadow: 0 0 14px rgba(253, 246, 241, .9), 0 0 4px rgba(253, 246, 241, .8); }
.hero--video .hero__copy .lead, .hero--video .hero__note { font-weight: 500; }
.hero__media { align-self: stretch; position: relative; min-height: 380px; clip-path: ellipse(100% 115% at 100% 50%); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; }


/* ---------- Cabecera de página interior ---------- */
.page-hero { background: linear-gradient(180deg, #fbefe9 0%, var(--bg) 100%); padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.page-hero h1 { margin: .9rem 0 1.1rem; max-width: 20ch; }
.page-hero--article h1 { max-width: none; font-size: clamp(1.9rem, 3.8vw, 2.75rem); }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero .btn-row { margin-top: 1.75rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; padding: .9rem .4rem; margin-inline: -.4rem; }
.breadcrumb a:last-child { padding-right: .6rem; margin-right: -.6rem; }
.breadcrumb a:hover { color: var(--brand); }

.fact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.fact-card h2 { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 1rem; }
.fact-card li { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.5; }
.fact-card li:first-child { border: 0; padding-top: 0; }
.fact-card strong { display: block; }
.fact-card span { color: var(--muted); }
.fact-card .btn { margin-top: 1.25rem; }
.price { font-family: var(--serif); font-size: 2.6rem; color: var(--brand); line-height: 1; }
.price small { font-family: var(--sans); font-size: .95rem; color: var(--muted); }
.revisado { margin: 0 0 .6rem; font-size: .85rem; color: var(--muted); }
.price-note { margin-top: .4rem; font-size: .85rem; color: var(--muted); }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 1.25rem; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem 1.5rem; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .93rem; }
.icon-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--rose); color: #fff; margin-bottom: 1.1rem; }
.icon-badge svg { width: 30px; height: 30px; }
.icon-badge--soft { background: var(--rose-soft); color: var(--brand); width: 52px; height: 52px; }
.icon-badge--soft svg { width: 26px; height: 26px; }

/* Lista de servicios de la portada */
.services { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.services__intro p { color: var(--muted); margin-top: 1rem; max-width: 38ch; }
.services__list li { border-top: 1px solid var(--line); }
.services__list li:last-child { border-bottom: 1px solid var(--line); }
.services__list a, .services__list div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .25rem 1.5rem; padding: 1.15rem 0; color: var(--ink); text-decoration: none; }
.services__list strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.3; color: var(--brand); }
.services__list span { color: var(--muted); }
.services__list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* Tarjeta de servicio ancha */
.service { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem 2rem; }
.service + .service { margin-top: 1.25rem; }
.service .icon-badge { margin: 0; }
.service p { color: var(--muted); margin-top: .35rem; max-width: 62ch; }
.service__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.tag { font-size: .76rem; font-weight: 600; color: var(--brand); background: var(--rose-soft); padding: .2rem .6rem; border-radius: 999px; }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--narrow-media { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow-lg); }
.split__media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--rose); border-radius: 200px 200px var(--radius) var(--radius); opacity: .45; z-index: -1; }
.split__body > * + * { margin-top: 1.1rem; }
.split__body p { color: var(--muted); }
.split__body > .link-arrow { margin-top: .5rem; }
.signature { font-family: var(--script); font-size: 2.6rem; color: var(--brand); line-height: 1; }

.checklist { display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 1.4rem; }
.checklist li::before { content: '–'; position: absolute; left: 0; color: var(--rose); }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 1.5rem; max-width: 720px; counter-reset: step; }
.step { position: relative; padding-left: 2.4rem; counter-increment: step; }
.step::before { content: counter(step) '.'; position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 1.25rem; color: var(--brand); line-height: 1.35; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- Carrusel de testimonios ---------- */
.carousel__track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem .25rem 1rem; margin-inline: -.25rem; cursor: grab; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 calc((100% - 2.5rem) / 2.6); scroll-snap-align: start; }
.carousel__controls { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: .25rem; }
.carousel__btn, .media-toggle { font: inherit; font-size: .9rem; font-weight: 500; min-height: 44px; min-width: 44px; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); cursor: pointer; }
.carousel__btn:hover, .media-toggle:hover { border-color: var(--brand); }
.media-toggle { position: absolute; left: 1.25rem; bottom: 1rem; z-index: 2; }

/* ---------- Testimonios ---------- */
.testimonial { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.testimonial > svg { width: 30px; height: 30px; color: var(--rose-soft); }
.testimonial blockquote { margin: 0; font-size: .98rem; color: var(--ink); flex: 1; }
.testimonial__who { display: flex; align-items: center; gap: .8rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--rose-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; flex: none; }
.testimonial__who strong { display: block; line-height: 1.3; }
.testimonial__who span { font-size: .85rem; color: var(--muted); }
.stars { display: flex; gap: 2px; color: #e0a03a; }
.stars svg { width: 16px; height: 16px; }
.sample-flag { position: absolute; top: 1rem; right: 1rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; background: #fff1cf; padding: .2rem .5rem; border-radius: 4px; }

.capture { background: #fff; border: 1.5px dashed #dfc3bc; border-radius: var(--radius); aspect-ratio: 9 / 14; display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--muted); font-size: .9rem; }
.capture svg { width: 36px; height: 36px; color: var(--rose); margin: 0 auto .75rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.5rem; }
.post-card { background: #fff; border-radius: var(--radius); border-top: 3px solid var(--rose); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s; }
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.post-card__body h3 a { color: var(--ink); text-decoration: none; padding-block: .6rem; }
.post-card__body h3 a:hover { color: var(--brand); }
.post-card__body > p:not(.post-card__meta) { color: var(--muted); font-size: .93rem; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--muted); }
.post-card__meta span { color: var(--rose); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.prose { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); font-size: 1.06rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.75rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--rose); }
.note { background: var(--rose-soft); border-left: 3px solid var(--rose); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; font-size: .95rem; margin-top: 2.5rem; }
.note--draft { background: #fff1cf; border-color: #d99a1c; margin: 0 0 1.5rem; }
.pendiente { background: #fff1cf; color: #8a5a00; padding: .05rem .3rem; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
.author { display: flex; gap: 1rem; align-items: center; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 40% 15%; flex: none; }
.author p { color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--rose); flex: none; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq__a > * + * { margin-top: .75rem; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }

/* ---------- Horarios ---------- */
.tz { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.tz__local { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tz__local svg { width: 34px; height: 34px; color: var(--rose); flex: none; }
.tz__local strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--brand); line-height: 1.2; }
.tz__local span { font-size: .9rem; color: var(--muted); }
.tz table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tz th, .tz td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.tz tr:last-child > * { border: 0; }
.tz td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand); }
.tz tr.is-base th, .tz tr.is-base td { color: var(--muted); font-weight: 500; }
.tz small { display: block; color: var(--muted); margin-top: .9rem; font-size: .82rem; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 3vw, 2.25rem); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fffdfc; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(180, 80, 108, .15); }
.form__hint { font-size: .84rem; color: var(--muted); }
.form__estado { font-size: .9rem; font-weight: 600; color: var(--brand); min-height: 1.2em; }
.form__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.field--check input { width: auto; margin-top: .25rem; }
.field--check label { font-weight: 400; font-size: .9rem; }
.field[hidden] { display: none; }

.contact-list { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.4rem; text-decoration: none; color: inherit; }
a.contact-item:hover { color: inherit; box-shadow: var(--shadow-lg); }
.contact-item .icon-badge { margin: 0; }
.contact-item strong { display: block; }
.contact-item span { color: var(--muted); font-size: .93rem; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.layout-aside > aside { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--brand); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .75rem; max-width: 22ch; }
.cta-band p { color: #f1d6dd; max-width: 52ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: .75rem; min-width: 280px; }

/* ---------- Pie ---------- */
/* El relleno inferior deja sitio al botón flotante de WhatsApp, que si no tapa los enlaces legales */
.footer { background: #2a1219; color: #d9c3c8; font-size: .93rem; padding: clamp(3rem, 6vw, 4.5rem) 0 5rem; }
.footer a { color: #d9c3c8; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h2 { color: #fff; font-family: var(--sans); font-weight: 600; line-height: 1.35; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer li a, .footer__link { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.footer .logo { align-items: flex-start; color: #fff; margin-bottom: 1.25rem; }
.footer .logo__tag, .footer .logo__route, .footer .logo__mark { color: #e3a3b3; }
.footer__brand p { max-width: 36ch; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.footer__social a:hover { background: rgba(255, 255, 255, .1); }
.footer__social svg { width: 18px; height: 18px; }
.footer__contact li { display: flex; gap: .7rem; align-items: center; min-height: 44px; padding-block: .3rem; }
.footer__contact svg { width: 18px; height: 18px; flex: none; color: #e3a3b3; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 1rem; padding-block: .75rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer__bottom ul { display: flex; gap: 1.5rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: inline-flex; align-items: center; gap: .55rem; background: var(--wa); color: #fff; font-weight: 600; font-size: .93rem; text-decoration: none; padding: .8rem 1.15rem .8rem .9rem; border-radius: 999px; box-shadow: 0 10px 28px rgba(18, 140, 70, .35); transition: transform .2s; }
.wa-float:hover { color: #fff; transform: translateY(-2px) scale(1.03); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Cookies ---------- */
.cookie-banner { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 95; width: min(440px, calc(100% - 2.5rem)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.25rem; font-size: .9rem; line-height: 1.55; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__actions { display: flex; gap: .6rem; margin-top: 1rem; }
.cookie-banner__actions .btn { flex: 1; padding: .8rem 1rem; }
.footer__link { background: none; border: 0; padding: 0; color: #d9c3c8; cursor: pointer; }
.footer__link:hover { color: #fff; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(4rem, 10vw, 8rem) 0; }
.notfound .script { font-size: 6rem; display: block; margin-bottom: 1.5rem; }
.notfound .script::after { display: none; }
.notfound p { color: var(--muted); margin: 1rem auto 2rem; max-width: 46ch; }
.notfound .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post-card, .wa-float { transition: none; }
}

/* ---------- Utilidades ---------- */
.u-center { text-align: center !important; }
.u-mx-auto { margin-inline: auto !important; }
.u-pt-0 { padding-top: 0 !important; }
.u-mt-1 { margin-top: 1.25rem !important; }
.u-mt-2 { margin-top: 1.5rem !important; }
.u-mt-3 { margin-top: 2rem !important; }
.u-mt-4 { margin-top: 2.5rem !important; }
.u-title-gap { margin: .5rem 0 1rem !important; }
.btn-row--center { justify-content: center; }
.link-plain { color: inherit; text-decoration: none; padding-block: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header__cta { display: none; }
}

@media (max-width: 1020px) {
  :root { --header-h: 76px; }
  /* backdrop-filter convierte la cabecera en bloque contenedor del menú fijo */
  .header { backdrop-filter: none; background: var(--bg); }
  .logo__name { font-size: 1.55rem; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 2rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: flex; padding: 1rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .nav__link.is-active { border-color: var(--line); }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: .25rem 0 .5rem 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__item--has-menu .nav__link { border-bottom: 0; }
  .nav__item--has-menu .nav__link svg { display: none; }
  .nav__cta { display: inline-flex; margin-top: 1.5rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle__open { display: none; }
  body.nav-open .nav-toggle__close { display: block; }

  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-aside { grid-template-columns: 1fr; }
  .layout-aside > aside { position: static; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 2.5rem 1.25rem 2rem; }
  .hero--video::after { background: rgba(253, 246, 241, .75); }
  .hero--video .hero__copy { padding-bottom: 5rem; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; clip-path: none; margin: 0 1.25rem 2.5rem; border-radius: 160px 160px var(--radius) var(--radius); overflow: hidden; }
  .page-hero__grid, .split, .split--narrow-media { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .split__media { max-width: 420px; margin-inline: auto; width: calc(100% - 18px); }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: auto minmax(0, 1fr); }
  .service > .btn { grid-column: 1 / -1; }
  .cta-band__actions { width: 100%; }
}

@media (max-width: 640px) {
  .carousel__item { flex-basis: 86%; }
  .cards--4, .cards--3, .post-grid, .post-grid--2, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .hero__copy .btn-row .btn, .page-hero .btn-row .btn { width: 100%; }
  .service { grid-template-columns: 1fr; padding: 1.5rem; }
  .services__list a, .services__list div { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: .9rem; }
  .cookie-banner { bottom: 5.25rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding-block: 1rem; }
  .script { white-space: normal; }
}
