/* =====================================================================
   Balcazar & Asociados — hoja de estilos
   Paleta tomada del logo y de la pieza de ondas de la marca.
   ===================================================================== */

:root {
  --navy-900: #1B2547;   /* pie de página, banda oscura */
  --navy-700: #2A3A6B;   /* azul del logo: títulos, botones */
  --navy-600: #3B4C82;   /* onda más oscura */
  --slate-500: #6B7594;  /* gris pizarra: texto secundario, onda media */
  --mist-300: #A9B0C5;   /* neblina: onda clara, detalles */
  --pale-200: #DADDE7;   /* bordes, onda más clara */
  --pale-100: #ECEEF3;   /* fondos de iconos */
  --paper: #F6F6F3;      /* fondo papel */
  --white: #FFFFFF;
  --ink: #232B45;
  --ink-soft: #4E5771;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --container: 1140px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 18px 40px -24px rgba(27, 37, 71, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 78px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  /* Fondo papel con un grano muy sutil (mosaico SVG ligero), como en la pieza de ondas */
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.23 0 0 0 0 0.42 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); }
h1, h2, h3, h4 { margin: 0; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: -.012em;
  line-height: 1.12;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--navy-700); outline-offset: 3px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy-700); color: #fff; padding: .6rem 1rem; border-radius: 4px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Tipografía de apoyo ---------- */
/* La etiqueta del logo ("abogados y consultores") va en minúsculas y muy espaciada:
   los "eyebrows" de cada sección repiten ese gesto. */
.eyebrow {
  display: block;
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .36em;
  text-transform: lowercase;
  color: var(--slate-500);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--mist-300); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.45rem;
  border-radius: 4px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn__icon { width: 20px; height: 20px; }
.btn--primary { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.btn--primary:hover { background: var(--navy-900); border-color: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn--ghost:hover { background: var(--navy-700); color: #fff; }
.btn--sm { padding: .58rem 1.05rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--pale-200); box-shadow: 0 10px 30px -24px rgba(27, 37, 71, .5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy-700); }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.brand__tag {
  font-weight: 300; font-size: .58rem; letter-spacing: .36em; text-transform: lowercase;
  color: var(--slate-500); margin-top: .34rem; white-space: nowrap;
}
.brand--light { color: #fff; }
.brand--light .brand__tag { color: var(--mist-300); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a:not(.btn) {
  font-weight: 600; font-size: .95rem; color: var(--ink-soft); text-decoration: none;
  padding: .3rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav > a:not(.btn):hover, .nav > a.is-active { color: var(--navy-700); border-bottom-color: var(--navy-700); }
.nav__cta { margin-left: .4rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--navy-700); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy-900); color: #fff; }
.section--navy h2 { color: #fff; }
.section--navy .section__head p { color: rgba(255, 255, 255, .78); }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
.section__head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; }
.section__cta { margin-top: 3rem; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
.hero__lead { margin-top: 1.4rem; font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 36rem; }
.hero__list { margin-top: 1.75rem; display: grid; gap: .65rem; }
.hero__list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: var(--navy-700); }
.hero__list svg { flex: none; width: 22px; height: 22px; margin-top: .2rem; }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* La tarjeta de contacto reproduce la pieza de ondas de la marca:
   ondas abajo a la izquierda, datos de contacto abajo a la derecha. */
.card-contact {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--pale-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 440px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-contact__top { padding: 2.1rem 2.1rem 0; position: relative; z-index: 1; }
.card-contact__mark { width: 104px; height: 104px; color: var(--navy-700); margin-left: -6px; }
.card-contact__title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--navy-700); margin-top: 1rem; }
.card-contact__text { color: var(--ink-soft); margin-top: .55rem; max-width: 30ch; }
.card-contact__waves {
  position: absolute; left: -6%; bottom: -2px; width: 112%; height: 58%;
  animation: drift 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-3.5%); } }
/* Los datos van sobre una base blanca para que se lean encima de las ondas */
.card-contact__details {
  position: relative; z-index: 1;
  align-self: flex-end;
  margin: 1.5rem 1.6rem 1.6rem auto;
  padding: .7rem 1rem .75rem;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--pale-200);
  border-radius: 8px;
  box-shadow: 0 10px 24px -14px rgba(27, 37, 71, .45);
  text-align: right;
  display: inline-flex; flex-direction: column; gap: .2rem;
}
.card-contact__details a { color: var(--navy-700); text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.card-contact__details a:hover { text-decoration: underline; }
.card-contact__details span { font-weight: 400; color: var(--slate-500); }

/* ---------- El estudio ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__copy h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
.about__copy p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }
.about__copy p:first-of-type { margin-top: 1.25rem; }
/* Dato destacado del estudio: un solo número, grande y en serif */
.about__copy .about__dato {
  display: flex; align-items: baseline; gap: .9rem; max-width: none;
  margin-top: 1.75rem; padding-top: 1.35rem; border-top: 1px solid var(--pale-200);
}
.about__dato strong { font-family: var(--font-display); font-weight: 600; font-size: 2.8rem; line-height: 1; color: var(--navy-700); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.about__dato span { color: var(--ink-soft); font-size: 1rem; max-width: 30ch; line-height: 1.4; }

.steps { display: grid; gap: 0; border-top: 1px solid var(--pale-200); margin-top: .5rem; }
.step { display: flex; gap: 1.25rem; padding: 1.35rem 0; border-bottom: 1px solid var(--pale-200); }
.step__num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--navy-700); color: var(--navy-700);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
}
.step h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy-700); }
.step p { margin-top: .3rem; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Áreas de práctica ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.area {
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--white); border: 1px solid var(--pale-200); border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.5rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mist-300); }
/* El derecho penal es el área principal: ocupa dos columnas y lleva un borde marino */
.area--featured { grid-column: span 2; border-color: var(--navy-700); border-width: 1.5px; }
.area__head { display: flex; align-items: center; gap: 1rem; }
.area__icon {
  flex: none; width: 46px; height: 46px; border-radius: 8px;
  background: var(--pale-100); color: var(--navy-700);
  display: grid; place-items: center;
}
.area--featured .area__icon { background: var(--navy-700); color: var(--white); }
.area__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.area__tag { display: block; font-size: .7rem; letter-spacing: .3em; text-transform: lowercase; color: var(--slate-500); margin-bottom: .2rem; }
.area h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy-700); line-height: 1.25; }
.area--featured h3 { font-size: 1.5rem; }
.area__body { flex: 1; display: grid; gap: .8rem; }
.area--featured .area__body { grid-template-columns: 1fr 1.25fr; gap: 1.5rem 2.5rem; align-items: start; }
.area__body > p { color: var(--ink-soft); font-size: .98rem; }
.area__list { display: grid; gap: .4rem; }
.area__list li { position: relative; padding-left: 1.1rem; font-size: .95rem; color: var(--ink); }
.area__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--mist-300); }
.area--featured .area__list li::before { background: var(--navy-700); }
.area__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .95rem; text-decoration: none; margin-top: .1rem; }
.area__link::after { content: "\2192"; transition: transform .2s var(--ease); }
.area__link:hover::after { transform: translateX(4px); }

/* ---------- Cuándo consultar ---------- */
.moments { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.75rem; }
.moment { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: start; padding: 1.2rem 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.moment__tag { font-size: .72rem; letter-spacing: .3em; text-transform: lowercase; color: var(--mist-300); padding-top: .35rem; }
.moment p { color: rgba(255, 255, 255, .88); font-size: 1.05rem; }

/* ---------- Consulta ---------- */
.consult {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--white); border: 1px solid var(--pale-200); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.25rem); box-shadow: var(--shadow);
}
.consult__copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); }
.consult__copy p { margin: 1rem 0 1.75rem; color: var(--ink-soft); font-size: 1.08rem; }
.consult__checks li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 0; border-bottom: 1px solid var(--pale-100);
  font-weight: 600; color: var(--navy-700);
}
.consult__checks li:first-child { border-top: 1px solid var(--pale-100); }
.consult__checks svg { flex: none; width: 22px; height: 22px; margin-top: .2rem; }

/* ---------- Abogados ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 1.6rem; }
.member { text-align: center; padding: 2.25rem 1.5rem 2rem; background: var(--paper); border: 1px solid var(--pale-200); border-radius: var(--radius); }
.member__avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 1.25rem; overflow: hidden;
  background: var(--white); border: 1px solid var(--pale-200); color: var(--mist-300);
  display: grid; place-items: center;
}
.member__avatar svg { width: 52px; height: 52px; }
.member__photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--navy-700); line-height: 1.25; text-wrap: balance; }
.member p { color: var(--slate-500); font-size: .95rem; margin-top: .45rem; }
.member__cal { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mist-300); margin-top: .35rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--pale-200); }
.faq details:last-of-type { border-bottom: 1px solid var(--pale-200); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; font-weight: 600; font-size: 1.12rem; color: var(--navy-700);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--pale-200); color: var(--slate-500);
  display: grid; place-items: center; font-weight: 300; font-size: 1.4rem; line-height: 1;
  transition: transform .3s var(--ease), background .2s;
}
.faq summary:hover::after { background: var(--pale-100); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 3rem 1.4rem 0; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
.contact__info > p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; }
.contact__list { margin-top: 1.75rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--pale-200); }
.contact__list li:first-child { border-top: 1px solid var(--pale-200); }
.contact__list svg { flex: none; width: 22px; height: 22px; color: var(--navy-700); margin-top: .25rem; }
.contact__label { display: block; font-size: .72rem; letter-spacing: .28em; text-transform: lowercase; color: var(--slate-500); }
.contact__list a { font-weight: 600; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.form { background: var(--paper); border: 1px solid var(--pale-200); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy-700); }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  padding: .78rem .9rem; border: 1px solid var(--pale-200); border-radius: 4px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  font: inherit; color: var(--ink);
  padding: .78rem 2.4rem .78rem .9rem; border: 1px solid var(--pale-200); border-radius: 4px; background: var(--white);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7594' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(42, 58, 107, .15); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #A44A4A; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); margin: .25rem 0 1.1rem; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--navy-700); }
.check a { font-weight: 600; }
.form__note { margin-top: .9rem; font-size: .86rem; color: var(--slate-500); }
.form__status { margin-top: .75rem; font-size: .95rem; font-weight: 600; color: var(--navy-700); }

/* ---------- Páginas legales ---------- */
.nav--simple { gap: 1.25rem; }
.legal { padding: clamp(3rem, 6vw, 5rem) 0 4rem; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal__meta { margin: .75rem 0 2rem; color: var(--slate-500); font-size: .92rem; }
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: var(--navy-700); margin: 2rem 0 .6rem; }
.legal p { color: var(--ink-soft); margin-bottom: .9rem; }
.legal ul { margin: 0 0 .9rem 1.2rem; list-style: disc; color: var(--ink-soft); }
.legal li { margin-bottom: .4rem; }
.legal__back { margin-top: 2.5rem; }
.footer--simple { padding-top: 0; }
.footer--simple .footer__bottom { border-top: 0; }

/* ---------- Pie de página ---------- */
.footer { position: relative; background: var(--navy-900); color: rgba(255, 255, 255, .8); }
.footer__waves { width: 100%; height: clamp(120px, 17vw, 230px); background: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer__brand p { margin-top: 1.1rem; max-width: 34ch; font-size: .98rem; }
.footer h4 { font-size: .74rem; letter-spacing: .3em; text-transform: lowercase; font-weight: 400; color: var(--mist-300); margin-bottom: 1rem; }
.footer__links li { padding: .22rem 0; }
.footer__links a { color: #fff; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__links--muted { color: rgba(255, 255, 255, .7); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem;
  padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem;
}
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy-700); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(27, 37, 71, .55);
  transition: transform .2s var(--ease), background .2s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); background: var(--navy-900); }

/* ---------- Página 404 ---------- */
.notfound { min-height: 80vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 4rem 0; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); }
.notfound p { color: var(--ink-soft); max-width: 44ch; margin-inline: auto; font-size: 1.1rem; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1rem; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal:not(.is-visible) .reveal__item { opacity: 0; }
.reveal.is-visible .reveal__item {
  animation: rise .7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
  animation-fill-mode: backwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal:not(.is-visible) { opacity: 1; transform: none; transition: none; }
  .reveal:not(.is-visible) .reveal__item, .reveal.is-visible .reveal__item { opacity: 1; animation: none; }
  .card-contact__waves { animation: none; }
  .area, .btn, .wa-float { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .area--featured .area__body { grid-template-columns: 1fr; gap: .8rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--pale-200);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: 0 20px 40px -24px rgba(27, 37, 71, .5);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
  .nav > a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--pale-100); font-size: 1.05rem; }
  .nav > a:not(.btn):hover, .nav > a.is-active { border-bottom-color: var(--pale-100); }
  .nav__cta { margin: 1rem 0 0; }

  .hero__grid { grid-template-columns: 1fr; }
  .card-contact { min-height: 380px; }
  .about { grid-template-columns: 1fr; }
  .consult { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .moments { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.05rem; }
  .brand__tag { font-size: .5rem; letter-spacing: .3em; }
  .areas, .team { grid-template-columns: 1fr; }
  .area--featured { grid-column: auto; }
  .moment { grid-template-columns: 1fr; gap: .3rem; }
  .moment__tag { padding-top: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions .btn { width: 100%; }
  .card-contact__top { padding: 1.6rem 1.5rem 0; }
  .card-contact__details { margin: 1.5rem 1.1rem 1.2rem auto; padding: .6rem .85rem; }
  .card-contact__details a { font-size: .86rem; }
  .faq__body { padding-right: 0; }
  .wa-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
}
