/* Tipografías servidas desde el propio sitio (licencia SIL OFL, ver assets/fonts). */
@font-face { font-family: "AL Bebas"; src: url("fonts/bebas-neue.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "AL Manrope"; src: url("fonts/manrope.woff") format("woff"); font-weight: 200 800; font-style: normal; font-display: swap; }

/* Abihail Lara — hoja de estilos única.
   Editorial contemporáneo: titulares condensados, blanco cálido, bandas carbón,
   un solo acento (--brand-accent) que se define en content/settings/site.json. */
:root {
  --brand-accent: #E60012; /* provisional: se sobrescribe desde la configuración */
  --carbon: #1E2020;
  --paper: #F5F4F1;
  --ink: #0A0A0A;
  --text: #555555;
  --line: #D9D9D9;
  --white: #FFFFFF;
  --on-dark: #F5F4F1;
  --on-dark-muted: #B9BBB8;
  --line-dark: #3A3D3D;
  --font-display: "AL Bebas", "Bebas Neue", Impact, "Arial Narrow", "Roboto Condensed", sans-serif; /* titulares siempre en Bebas Neue, mayúsculas */
  --font-body: "AL Manrope", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.75rem, 3vw, 2.25rem);
  --step-4: clamp(2.5rem, 5.5vw, 4rem);
  --step-5: clamp(2.75rem, 8vw + 0.6rem, 6rem);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.section--dark { background: var(--carbon); color: var(--on-dark); }
.section--white { background: var(--white); }

/* Tipografía */
h1, h2, h3, h4 { overflow-wrap: anywhere; hyphens: auto; font-family: var(--font-display); font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; margin: 0; text-wrap: balance; color: inherit; }
.display { font-size: var(--step-5); }
.h-section { font-size: var(--step-4); }
.h-card { font-size: var(--step-2); line-height: 1.1; }
.dot { color: var(--brand-accent); }
.lead { font-size: var(--step-1); color: var(--text); max-width: 34em; }
.section--dark .lead, .section--dark p { color: var(--on-dark-muted); }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-accent); flex: none; }
.section--dark .eyebrow { color: var(--on-dark); }
.kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-accent); }
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.8; color: #2A2C2C; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: var(--step-3); margin: 1.6em 0 0.6em; }
.prose h3 { font-size: var(--step-2); margin: 1.4em 0 0.5em; }
.prose a { color: var(--ink); text-decoration-color: var(--brand-accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--brand-accent); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.4em; }
.nota-ref a { color: var(--brand-accent); text-decoration: none; font-weight: 700; padding-inline: 2px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 22px;
  font: 700 0.9375rem/1.2 var(--font-body);
  text-decoration: none; border: 2px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--accent { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }
.section--dark .btn--accent:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn--outline { color: var(--on-dark); border-color: var(--on-dark); }
.section--dark .btn--outline:hover { background: var(--on-dark); color: var(--ink); }
.btn--wa { background: #1F7A4D; border-color: #1F7A4D; color: #fff; }
.btn--wa:hover { background: #17603C; border-color: #17603C; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9375rem;
  text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--brand-accent);
}
.link-arrow svg { width: 13px; height: 13px; }
.link-arrow:hover { color: var(--brand-accent); }

/* Cabecera */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 14px; text-decoration: none; font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.brand::before { content: ""; width: 16px; height: 16px; background: var(--brand-accent); flex: none; }
.nav-list { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 500; text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav-list a:hover { color: var(--brand-accent); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--brand-accent); font-weight: 700; }
.nav-list .btn { padding: 10px 18px; min-height: 42px; font-size: 0.875rem; color: #fff; border-bottom: 2px solid var(--brand-accent); }
.nav-list .btn:hover { color: #fff; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 2px solid var(--ink); min-height: 44px; padding: 8px 14px; font: 700 0.875rem var(--font-body); color: var(--ink); cursor: pointer; }
.nav-toggle-bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--paper); padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
  .site-nav[hidden] { display: none !important; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding-block: 16px; font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; border-bottom: 0; }
  .nav-list a[aria-current="page"] { color: var(--brand-accent); }
  .nav-list li:last-child { border-bottom: 0; padding-top: 24px; }
  .nav-list li:last-child .btn { width: 100%; font-family: var(--font-body); font-size: 1rem; }
}
@media (min-width: 961px) { .site-nav[hidden] { display: block !important; } }

/* Inicio: banner principal con foto horizontal de fondo.
   Escritorio: la foto cubre todo el ancho y el texto se apoya en un degradado a la izquierda.
   Móvil: la foto va arriba (recorte horizontal) y el texto debajo sobre carbón. */
.banner { position: relative; isolation: isolate; background: var(--carbon); color: var(--on-dark); overflow: hidden; }
.banner-media { position: absolute; inset: 0; z-index: -2; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.banner[data-enfoque="izquierda"] .banner-media img { object-position: 25% 30%; }
.banner[data-enfoque="centro"] .banner-media img { object-position: 50% 30%; }
.banner[data-bn] .banner-media img { filter: grayscale(1) contrast(1.06); }
.banner-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16,17,17,.94) 0%, rgba(16,17,17,.82) 34%, rgba(16,17,17,.35) 62%, rgba(16,17,17,.05) 100%),
    linear-gradient(0deg, rgba(16,17,17,.55) 0%, rgba(16,17,17,0) 30%);
}
.banner-inner { position: relative; min-height: clamp(540px, 74vh, 760px); display: flex; align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.banner-copy { position: relative; max-width: 37rem; padding-left: clamp(18px, 2.4vw, 32px); border-left: 2px solid var(--brand-accent); }
.banner-copy .eyebrow { color: var(--on-dark); }
.banner-copy .display { color: #FFFFFF; margin-bottom: 22px; }
.banner-copy .lead { color: #D9DAD7; margin: 0 0 32px; }
.banner .btn--outline { color: #FFFFFF; border-color: #FFFFFF; }
.banner .btn--outline:hover { background: #FFFFFF; color: var(--ink); }
.banner .btn--accent:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.banner-ph { width: 100%; height: 100%; position: relative; background: radial-gradient(120% 90% at 78% 40%, #3B3F3F 0%, #262929 45%, var(--carbon) 75%); }
.banner-ph-mark { position: absolute; right: 6%; bottom: -4%; font-family: var(--font-display); font-size: clamp(12rem, 30vw, 26rem); line-height: .8; color: rgba(245,244,241,.07); }
.banner-ph-label { position: absolute; right: 16px; top: 16px; font-size: .75rem; font-weight: 700; color: #5C3800; background: #FFF3D6; border: 1px dashed #C98A00; padding: 6px 10px; }
.ejes { border-top: 1px solid var(--line-dark); }
@media (max-width: 760px) {
  .banner-media { position: relative; inset: auto; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; }
  .banner-shade { inset: auto 0 auto 0; top: 0; height: min(75vw, 62vh); background: linear-gradient(0deg, var(--carbon) 0%, rgba(30,32,32,0) 45%); }
  .banner-inner { min-height: 0; padding-block: 8px 48px; margin-top: -48px; }
  .banner-ph-mark { font-size: 9rem; }
  .banner-ph-label { left: 16px; right: 16px; }
}

/* Marcador de imagen pendiente */
.ph {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(10,10,10,.04) 14px 15px),
    #E4E3DF;
  color: #6B6D6B; font-size: var(--step--1); padding: 16px;
}
.ph-initials { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5rem); color: #A9AAA7; line-height: 1; }
.ph-label { display: block; margin-top: 8px; font-weight: 700; letter-spacing: .04em; }
.section--dark .ph { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.04) 14px 15px), #2B2E2E; color: var(--on-dark-muted); }

/* Indicadores de vista previa */
.pending {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; line-height: 1.35;
  color: #7A4A00; background: #FFF3D6; border: 1px dashed #C98A00; padding: 6px 10px; margin-top: 10px;
}
.pending::before { content: "Pendiente"; text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; background: #C98A00; color: #fff; padding: 2px 6px; }
.preview-bar { background: #FFF3D6; color: #5C3800; font-size: 0.8125rem; border-bottom: 1px solid #E8C67A; }
.preview-bar .wrap { padding-block: 8px; }
.tag-propuesto { display: inline-block; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5B5E5D; border: 1px solid var(--line); padding: 2px 6px; vertical-align: middle; }

/* Banda de ejes */
.ejes { background: var(--carbon); color: var(--on-dark); }
.ejes-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.ejes-list li { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 22px 16px; font-weight: 600; font-size: 0.9375rem; }
.ejes-list li + li { border-left: 1px solid var(--line-dark); }
.ejes-list svg { width: 34px; height: 34px; color: var(--brand-accent); flex: none; }
.ejes-list span { border-bottom: 1px solid var(--on-dark-muted); padding-bottom: 4px; }
@media (min-width: 721px) and (max-width: 1024px) {
  .ejes-list li { gap: 10px; font-size: .8125rem; padding-inline: 10px; }
  .ejes-list svg { width: 28px; height: 28px; }
}
@media (max-width: 720px) {
  .ejes-list { grid-template-columns: 1fr; }
  .ejes-list li { justify-content: flex-start; padding-inline: 0; }
  .ejes-list li + li { border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* Encabezado de sección */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > div { min-width: 0; max-width: 46rem; }
.section-head .lead { margin: 14px 0 0; }

/* Tarjetas de servicio */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* Inicio: tres tarjetas en fila desde tableta; una columna en celular (sin tarjeta huérfana). */
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .cards--3 { grid-template-columns: 1fr; } }
@media (min-width: 701px) and (max-width: 1024px) { .cards--3 .card { padding: 20px; } .cards--3 .h-card { font-size: 1.45rem; } }
.card { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-num { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--brand-accent); line-height: 1; }
.card-icon { width: 36px; height: 36px; color: var(--ink); }
.card p { margin: 0; color: var(--text); }
.card .link-arrow { margin-top: auto; align-self: flex-start; }

/* Historia */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.story blockquote { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.story p { margin: 0 0 24px; color: var(--text); font-size: var(--step-1); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* Programas */
.programs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.program { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0; border: 1px solid var(--line-dark); min-width: 0; }
.program-media { padding: 10px; }
.program-media .ph { aspect-ratio: auto; height: 100%; min-height: 180px; }
.program-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.program-body { padding: 22px 22px 24px 12px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.program-body p { margin: 0; font-size: 0.9375rem; }
.program-body .btn { align-self: flex-start; margin-top: 4px; }
.section:not(.section--dark) .program { border-color: var(--line); background: var(--white); }
@media (max-width: 560px) {
  .program { grid-template-columns: 1fr; }
  .program-body { padding: 16px 20px 24px; }
}

/* Ebook */
.ebook { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.ebook-cover .ph { aspect-ratio: 3 / 4; max-width: 300px; }
.ebook p { color: var(--text); margin: 18px 0 26px; max-width: 40em; }
@media (max-width: 760px) { .ebook { grid-template-columns: 1fr; } .ebook-cover .ph { max-width: 220px; } }

/* Iniciativas */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.logos li { background: var(--white); border: 1px solid var(--line); padding: 16px; display: grid; place-items: center; text-align: center; font-size: .8125rem; }

/* Blog */
.posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.post-card .ph, .post-card img { aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1); }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 1.7rem; line-height: 1; }
.post-card h3 a, .post-card h2 a, .program h3 a { text-decoration: none; display: inline-block; min-height: 44px; }
.post-card h3 a:hover { color: var(--brand-accent); }
.post-card p { margin: 0; color: var(--text); font-size: 0.9375rem; }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }
.meta { font-size: 0.8125rem; color: var(--text); }
.blog-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 28px; }
.field-search { flex: 1 1 260px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 .8125rem var(--font-body); text-decoration: none; cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--paper); }
.empty a { display: inline-block; padding-block: 10px; font-weight: 700; }
.empty { padding: 32px; border: 1px dashed var(--line); text-align: center; color: var(--text); }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pager button { min-width: 44px; min-height: 44px; border: 1px solid var(--ink); background: transparent; font: 700 .875rem var(--font-body); cursor: pointer; color: var(--ink); }
.pager button[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pager button:disabled { opacity: .35; cursor: default; }

/* Artículo */
.article-head { padding-block: clamp(32px, 5vw, 56px) 32px; }
.article-head h1 { font-size: var(--step-4); max-width: 20ch; margin: 14px 0 18px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; font-size: .875rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); background: var(--white); font: 600 .8125rem var(--font-body); text-decoration: none; color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.notes { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: .875rem; color: var(--text); max-width: 68ch; }
.notes ol { padding-left: 1.2em; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* Páginas interiores */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--step-5); }
.page-head .lead { margin: 18px 0 0; }
.breadcrumb { font-size: .8125rem; color: var(--text); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-accent); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-block { padding-block: 24px; border-top: 1px solid var(--line); }
.detail-block:first-child { border-top: 0; padding-top: 0; }
.detail-block h2 { font-size: var(--step-2); margin-bottom: 12px; }
.detail-block p { margin: 0; color: #2A2C2C; }
.detail-block ul { margin: 0; padding-left: 1.2em; color: #2A2C2C; }
.detail-block li { margin-bottom: 6px; }
.panel { background: var(--carbon); color: var(--on-dark); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.panel h2 { font-size: var(--step-2); }
.panel p { margin: 0; color: var(--on-dark-muted); font-size: .9375rem; }
.panel .btn { width: 100%; }
.panel .btn--outline { color: var(--on-dark); border-color: var(--on-dark); }
.panel .btn--outline:hover { background: var(--on-dark); color: var(--ink); }
@media (max-width: 900px) { .panel { position: static; } }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line-dark); }
.facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.facts dd { margin: 0; }
.faq details { border-top: 1px solid var(--line); padding-block: 6px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::after { content: "+"; color: var(--brand-accent); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--text); }

/* Sobre mí */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-hero .ph { aspect-ratio: 4 / 5; }
.about-hero img { filter: grayscale(1); }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.values li { padding: 28px 24px 28px 0; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.values li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } .values li + li { border-left: 0; border-top: 1px solid var(--line-dark); padding-left: 0; } }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.timeline h3 { font-size: var(--step-2); }
.timeline p { margin: 0; color: var(--text); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-top: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--brand-accent); margin-top: 2px; }
.contact-list strong { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.contact-list span, .contact-list a { overflow-wrap: anywhere; user-select: all; }
.form { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .875rem; }
.field .hint { font-size: .8125rem; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--paper); border: 1px solid #A9AAA7; border-radius: 0;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #B00012; background: #FFF5F5; }
.field-error { font-size: .8125rem; color: #B00012; font-weight: 600; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: .875rem; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border: 1px solid; font-size: .9375rem; }
.form-status[data-kind="ok"] { border-color: #1F7A4D; background: #EFF8F2; color: #124D30; }
.form-status[data-kind="error"] { border-color: #B00012; background: #FFF5F5; color: #6E000B; }
.form-status[data-kind="info"] { border-color: var(--line); background: var(--paper); color: var(--ink); }
.form-status a { font-weight: 700; }

/* CTA final */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cta-side { border-left: 1px solid var(--line); padding-left: clamp(20px, 4vw, 48px); }
.cta-side p { margin: 0 0 20px; color: var(--text); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta-side { border-left: 0; padding-left: 0; } }

/* Pie */
.site-footer { background: var(--carbon); color: var(--on-dark); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer li { min-width: 0; overflow-wrap: anywhere; }
.site-footer .brand { color: var(--on-dark); font-size: 1.4rem; }
.site-footer p { color: var(--on-dark-muted); margin: 14px 0 0; max-width: 34em; }
.site-footer h2 { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brand-accent); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--on-dark-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: .8125rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1F7A4D; color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .15s ease, opacity .2s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
/* deja espacio para que el flotante no tape el final de la página */
main { padding-bottom: 0; }
.site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* 404 */
.notfound { min-height: 50vh; display: grid; align-content: center; gap: 20px; }
