/* ==========================================================================
   Lezeaga Psicología — estilos
   Sistema: un solo acento (azul del logotipo), neutros fríos muy suaves,
   titulares con serifa (Fraunces) y texto sin serifa (Figtree), fuentes locales.
   ========================================================================== */

/* ---------- Fuentes (locales, sin llamadas a Google) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy-900: #071d42;
  --navy-800: #0a2a5c;           /* azul marino del logotipo */
  --navy-700: #153a75;
  --blue-600: #2a68b8;           /* azul del logotipo = único acento */
  --blue-500: #3a78c4;
  --blue-100: #e3ecf8;
  --blue-50:  #f0f5fc;

  --ink:      #13213d;           /* texto principal */
  --ink-soft: #3d4a63;
  --muted:    #627089;
  --line:     #dde4ee;
  --paper:    #f7f8fb;           /* fondo general */
  --surface:  #ffffff;

  --ok:   #2f7d5b;
  --err:  #b4402f;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.28rem + 0.8vw, 1.9rem);
  --step-3:  clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4:  clamp(2.35rem, 1.75rem + 2.9vw, 4.1rem);

  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);
  --container: 1200px;
  --narrow: 760px;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-arch: 999px 999px 28px 28px;

  --shadow-sm: 0 1px 2px rgba(10, 42, 92, 0.06), 0 2px 8px rgba(10, 42, 92, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(10, 42, 92, 0.22);
  --shadow-lg: 0 30px 60px -28px rgba(7, 29, 66, 0.38);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;

  --z-header: 50;
  --z-menu: 60;
  --z-skip: 70;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grano muy suave para que el fondo no sea plano */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-100); color: var(--navy-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  color: var(--navy-800);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 650; letter-spacing: -0.005em; line-height: 1.3; }
p { margin: 0 0 1.1em; max-width: 65ch; text-wrap: pretty; }
strong { font-weight: 650; color: var(--navy-800); }
ul { padding-left: 1.2em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--narrow)); margin-inline: auto; }
.section { padding-block: var(--space-section) calc(var(--space-section) * 1.08); }
.section--tint { background: linear-gradient(180deg, var(--blue-50), #f4f7fc 60%, var(--paper)); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.lead { font-size: var(--step-1); line-height: 1.65; color: var(--ink-soft); }
.muted { color: var(--muted); }

.visually-hidden {
  position: absolute !important; 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: 1rem; top: -100px; z-index: var(--z-skip);
  background: var(--navy-800); color: #fff; padding: 0.7rem 1rem; border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 var(--step-0)/1.2 var(--font-body);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -12px rgba(10, 42, 92, 0.55);
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out), color var(--t-fast);
}
.btn:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px -14px rgba(10, 42, 92, 0.6); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(2px); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--blue-50); color: var(--navy-800); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-800); border-color: rgba(10, 42, 92, 0.25); box-shadow: none; }
.btn--outline:hover { background: rgba(10, 42, 92, 0.05); color: var(--navy-800); box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: var(--step--1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 650; color: var(--navy-800); text-decoration: none;
  border-bottom: 1px solid rgba(10, 42, 92, 0.25); padding-bottom: 2px;
  transition: border-color var(--t-fast), color var(--t-fast), gap var(--t-fast) var(--ease-out);
}
.link-arrow:hover { border-color: var(--blue-600); color: var(--blue-600); gap: 0.7em; }
.link-arrow svg { width: 1em; height: 1em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(247, 248, 251, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(247, 248, 251, 0.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; transition: height var(--t-med) var(--ease-out); }
.site-header.is-scrolled .brand img { height: 44px; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  position: relative;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.98rem;
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--navy-800); background: rgba(10, 42, 92, 0.05); }
.nav a[aria-current="page"] { color: var(--navy-800); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--blue-600);
}
.nav .btn, .nav .btn[aria-current="page"] { margin-left: 0.6rem; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--navy-700); }
.nav .btn[aria-current="page"]::after { display: none; }
.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--navy-800);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    padding: 1rem var(--gutter) 1.6rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out), visibility var(--t-med);
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 0.85rem 0.9rem; font-size: 1.08rem; border-radius: var(--r-sm); }
  .nav a[aria-current="page"] { background: var(--blue-50); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 0.6rem 0 0; }
  .brand img { height: 44px; }
}

/* ---------- Portada (inicio) ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(4rem, 3rem + 5vw, 7.5rem); overflow: clip; }
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -18vw; top: -22vw;
  background: radial-gradient(closest-side, rgba(42, 104, 184, 0.13), rgba(42, 104, 184, 0) 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 em { font-style: italic; color: var(--blue-600); font-weight: 400; }
.hero .lead { margin-bottom: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.hero-facts li {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--step--1); font-weight: 550; color: var(--ink-soft);
}
.hero-facts svg { width: 1.05em; height: 1.05em; color: var(--blue-600); }

.hero-visual { position: relative; padding: 0 0 2.5rem 2.5rem; }
.hero-visual .landscape {
  position: absolute; inset: 12% 0 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-visual .landscape img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .portrait {
  position: relative;
  width: 74%;
  margin-left: auto; margin-right: 6%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-arch);
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
}
.hero-visual .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.hero-badge {
  position: absolute; left: 0; bottom: 0;
  max-width: 290px;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
}
.hero-badge p { margin: 0; font-size: var(--step--1); line-height: 1.5; color: var(--ink-soft); }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; margin-bottom: 0.2rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(5rem, 3.5rem + 7vw, 9.5rem) clamp(3.5rem, 2.5rem + 4vw, 6rem);
  overflow: hidden;
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 29, 66, 0.9) 0%, rgba(10, 42, 92, 0.72) 45%, rgba(10, 42, 92, 0.25) 100%),
    linear-gradient(0deg, rgba(7, 29, 66, 0.35), rgba(7, 29, 66, 0) 50%);
}
.page-hero h1 { color: #fff; max-width: 17ch; margin-bottom: 0.35em; }
.page-hero .lead { color: rgba(255, 255, 255, 0.86); }
.page-hero .eyebrow { color: #b9d2f2; }
.page-hero .actions { margin-top: 1.6rem; }
.breadcrumb { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: var(--step--1); color: rgba(255, 255, 255, 0.72); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* ---------- Bloques de texto ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: center; }
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split--aside { grid-template-columns: 0.8fr 1.2fr; }
@media (max-width: 860px) { .split, .split--wide-left, .split--aside { grid-template-columns: 1fr; } }

.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--arch { border-radius: var(--r-arch); }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 3 / 2; }

.quote {
  position: relative;
  margin: 0;
  padding: clamp(1.8rem, 1rem + 3vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.quote::before {
  content: "\201C";
  position: absolute; top: -0.32em; left: 0.35em;
  font: italic 500 7rem/1 var(--font-display);
  color: var(--blue-100);
}
.quote p {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--navy-800);
}
.quote figcaption { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.4rem; font-weight: 650; color: var(--ink); }
.quote figcaption img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; object-position: 50% 20%; }
.quote figcaption div > span:last-child { display: block; font-weight: 450; font-size: var(--step--1); color: var(--muted); }
.quote-pair { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
@media (max-width: 860px) { .quote-pair { grid-template-columns: 1fr; } }

/* Servicios en zig-zag */
.services { display: grid; gap: clamp(3rem, 2rem + 3vw, 5.5rem); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.service { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.8rem, 1rem + 4vw, 5rem); align-items: center; }
.service:nth-child(even) .service-media { order: 2; }
.service-media { position: relative; }
.service-media .media-frame { aspect-ratio: 5 / 4; }
.service-num {
  position: absolute; right: -0.4rem; bottom: -1.6rem;
  font: italic 400 clamp(4rem, 3rem + 4vw, 6.5rem)/1 var(--font-display);
  color: var(--blue-600); opacity: 0.18;
  pointer-events: none;
}
.service:nth-child(even) .service-num { right: auto; left: -0.4rem; }
.service h3 { margin-bottom: 0.5em; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
}

/* Franja azul */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background: var(--navy-900);
}
.band .bg { position: absolute; inset: 0; z-index: -2; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 29, 66, 0.94) 10%, rgba(7, 29, 66, 0.55) 70%, rgba(7, 29, 66, 0.35));
}
.band h2 { color: #fff; }
.band h2 strong { color: #fff; font-weight: 600; }
.band p { color: rgba(255, 255, 255, 0.85); }
.band .big-claim {
  font: italic 400 var(--step-4)/1.05 var(--font-display);
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-align: right;
}
.band .big-claim span { color: #9cc0ec; }
@media (max-width: 860px) { .band .big-claim { text-align: left; } }

/* Artículo largo */
.prose { font-size: 1.07rem; }
.prose h2 { margin-top: 0; }
.prose h3 { font-size: var(--step-2); margin-top: 2.2em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 0.75rem; }
.prose li {
  position: relative; padding: 0.95rem 1.1rem 0.95rem 3rem;
  background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line);
}
.prose li::before {
  content: ""; position: absolute; left: 1.15rem; top: 1.35rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  border: 2px solid var(--blue-600);
}
.prose .intro-strong { font-family: var(--font-display); font-size: var(--step-1); color: var(--navy-800); font-weight: 500; line-height: 1.45; }
.sticky-aside { position: sticky; top: 110px; display: grid; gap: 1.2rem; }
@media (max-width: 860px) { .sticky-aside { position: static; } }

.essay { columns: 2 22rem; column-gap: clamp(2rem, 1rem + 3vw, 4rem); }
.essay p { break-inside: avoid; color: var(--ink-soft); }
.essay p:first-child { font-size: 1.1em; color: var(--ink); }

/* Las fotos de paisaje moradas de la web antigua, viradas hacia el azul de la marca */
img[src*="/montanas-"], img[src*="/mar-roca-"], img[src*="/olas-"] { filter: hue-rotate(-38deg) saturate(0.78); }

/* ---------- Preguntas (desplegables) ---------- */
.faq { display: grid; gap: 0.7rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-med) var(--ease-out);
}
.faq details[open] { border-color: rgba(42, 104, 184, 0.35); box-shadow: var(--shadow-md); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 650; line-height: 1.45; color: var(--navy-800);
  border-radius: var(--r-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-600); }
.faq summary .plus {
  position: relative; flex: none;
  width: 28px; height: 28px; margin-top: -1px;
  border-radius: 50%; background: var(--blue-50);
  transition: background var(--t-fast), transform var(--t-med) var(--ease-out);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.6px; margin: -0.8px 0 0 -5.5px;
  background: var(--navy-800); border-radius: 2px;
}
.faq summary .plus::after { transform: rotate(90deg); transition: transform var(--t-med) var(--ease-out); }
.faq details[open] summary .plus { background: var(--navy-800); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: #fff; }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq .answer { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.4rem; align-items: start; }
.faq-columns > .faq { align-content: start; }
@media (max-width: 860px) { .faq-columns { grid-template-columns: 1fr; } }

.faq-search { position: relative; max-width: 560px; margin-top: 2rem; }
.faq-search input {
  width: 100%; min-height: 56px;
  padding: 0.9rem 1.2rem 0.9rem 3.2rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  font: 500 1rem var(--font-body); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.faq-search svg { position: absolute; left: 1.15rem; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); }
.faq-search-status { margin-top: 0.8rem; font-size: var(--step--1); color: rgba(255, 255, 255, 0.85); min-height: 1.4em; }
.faq-empty {
  display: none; padding: 1.4rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px dashed var(--line); color: var(--ink-soft);
}
.faq-empty.is-visible { display: block; }
mark.hl { background: #fff3b0; color: inherit; padding: 0 0.1em; border-radius: 3px; }
.faq-group-title { font-size: var(--step-2); margin-bottom: 1.4rem; }

/* ---------- Vídeo (se carga solo al pulsar) ---------- */
.video {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  border: 0; padding: 0; margin: 0 0 1.5rem;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--navy-900);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity var(--t-med), transform 600ms var(--ease-out); }
.video:hover img { opacity: 0.6; transform: scale(1.02); }
.video .play {
  position: absolute; left: 50%; top: 50%;
  width: 78px; height: 78px; margin: -39px 0 0 -39px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.95);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform var(--t-fast) var(--ease-out);
}
.video:hover .play { transform: scale(1.06); }
.video .play svg { width: 26px; height: 26px; margin-left: 4px; color: var(--navy-800); }
.video .note {
  position: absolute; left: 1rem; right: 1rem; bottom: 0.9rem;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); text-align: center;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Contacto ---------- */
.contact {
  position: relative; isolation: isolate;
  background: var(--surface);
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/img/piedras-hojas-1920.webp") right bottom / cover no-repeat;
  opacity: 0.16;
}
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.6rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.contact-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.contact-info li {
  display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(240, 245, 252, 0.85);
}
.contact-info .ico {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--surface); color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}
.contact-info .ico svg { width: 22px; height: 22px; }
.contact-info h3 {
  margin: 0 0 0.1rem;
  font: 650 0.78rem/1.3 var(--font-body);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.contact-info p { margin: 0; font-weight: 600; color: var(--navy-800); }
.contact-info a { color: var(--navy-800); text-decoration: none; }
.contact-info a:hover { color: var(--blue-600); text-decoration: underline; }
.contact-online { margin-top: 1.2rem; font-size: var(--step--1); color: var(--muted); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy-800); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid #cdd6e3;
  border-radius: var(--r-sm);
  background: #fff;
  font: 1rem/1.5 var(--font-body);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #aebbd0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(42, 104, 184, 0.16); }
.field .error { display: none; font-size: 0.85rem; color: var(--err); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.field.is-invalid .error { display: block; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.92rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--navy-800); }
.check.is-invalid { color: var(--err); }
.form-status { min-height: 1.5em; margin: 0; font-size: 0.95rem; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--err); }
.form-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

.subscribe { display: flex; gap: 0.7rem; flex-wrap: wrap; max-width: 520px; }
.subscribe input {
  flex: 1 1 240px; min-height: 52px; padding: 0.8rem 1.1rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.96); font: 1rem var(--font-body); color: var(--ink);
}

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.78); padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); }
.footer-brand img { width: 200px; height: auto; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 36ch; font-size: 0.97rem; }
.site-footer h2 { font: 650 0.8rem/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: #9cc0ec; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { margin: 0 0 0.6rem; font-size: 0.97rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem; color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Página 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font: italic 400 clamp(5rem, 3rem + 10vw, 10rem)/1 var(--font-display); color: var(--blue-100); margin: 0; }
.notfound p { margin-inline: auto; }
.notfound .actions { justify-content: center; }

/* ---------- Animación de entrada (respeta "reducir movimiento" y el modo edición) ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal], html.ve-admin [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .site-footer, .contact, .video, body::before { display: none !important; }
  .page-hero { color: #000; padding: 1rem 0; }
  .page-hero::before, .page-hero .bg { display: none; }
  .page-hero h1 { color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
