/* =========================================================
   1. VARIABLES — cambia aquí colores y fuentes de toda la página
   ========================================================= */
:root {
  --navy: #0B2D5C;        /* azul profundo oficial (manual de marca) */
  --navy-dark: #081F42;
  --green: #6BAE2C;       /* verde corporativo oficial (manual de marca) */
  --green-text: #3D7A1E;  /* verde más oscuro para textos (mejor contraste) */
  --green-light: #8FD16A;
  --whatsapp: #25D366;      /* verde de WhatsApp */
  --whatsapp-hover: #1FBE5B;
  --whatsapp-ink: #04301A;  /* texto oscuro sobre el verde (el blanco no tiene suficiente contraste) */

  --text: #333333;
  --text-soft: #3A4556;
  --text-muted: #5B6678;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --border: #E1E6EE;

  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --radius: 16px;
  --shadow: 0 18px 40px rgba(11, 45, 92, 0.10);
}

/* =========================================================
   2. TIPOGRAFÍAS (archivos propios en /fonts, solo caracteres latinos)
   ========================================================= */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/playfair-display-latin.woff2") format("woff2");
}

/* =========================================================
   3. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 88px; }  /* para que el encabezado fijo no tape los títulos */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p { margin: 0; }
.step__number, .contact-card__phone { font-variant-numeric: lining-nums; }  /* Playfair usa números "antiguos" por defecto */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
address { font-style: normal; }

/* Anillo de foco azul (contraste de 13:1 sobre fondo claro; el verde daba menos de 3:1) y blanco sobre fondos oscuros */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.section--navy :focus-visible, .cta__box :focus-visible, .footer :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 860px; }

/* Íconos SVG de línea */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--green { color: #4C9A1F; }  /* verde del logo un poco más oscuro: el original se pierde sobre blanco */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }  /* contenedor oculto de íconos (no usar style="" en el HTML: la CSP lo bloquea) */
.icon--wa { fill: currentColor; stroke: none; }  /* logo de WhatsApp (relleno, no línea) */

/* =========================================================
   4. BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11, 45, 92, 0.18); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover { background: var(--whatsapp-hover); box-shadow: 0 10px 22px rgba(37, 211, 102, 0.45); }
.btn--whatsapp .icon { width: 22px; height: 22px; }

.btn--outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 13px 22px;
}

.btn--small { padding: 12px 20px; font-size: 15px; }
.btn--block { width: 100%; font-size: 17px; font-weight: 700; }

/* =========================================================
   5. ENCABEZADO
   ========================================================= */
.header {
  background: var(--white);   /* sólido: el logo tiene fondo blanco y no debe verse un recuadro sobre secciones oscuras */
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(11, 45, 92, 0.06);
  position: sticky;   /* se queda arriba al hacer scroll */
  top: 0;
  z-index: 10;
}
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 44px; width: auto; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: #E1E9F4; color: var(--navy); }

.header__actions { display: flex; align-items: center; gap: 8px; }

/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(1.1) contrast(1.04);
}
.hero::before {   /* velo blanco: deja el texto legible a la izquierda y muestra la foto a la derecha */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* El velo se mantiene firme hasta donde termina la columna de texto (la mitad de la
     pantalla, o 640px en pantallas chicas) y recién después se desvanece. */
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.90) 0,
    rgba(255, 255, 255, 0.82) max(50%, 640px),
    rgba(255, 255, 255, 0.30) calc(max(50%, 640px) + 240px),
    rgba(255, 255, 255, 0) calc(max(50%, 640px) + 520px));
}
.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 80px;
}
.hero__content {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #C9D4E4;
  box-shadow: 0 3px 10px rgba(11, 45, 92, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
}
.pill .icon { width: 16px; height: 16px; }
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(36px, 5.6vw, 54px);  /* se achica en celular */
  line-height: 1.08;
  font-weight: 800;
  color: var(--navy);
  text-wrap: balance;
}
.divider {
  width: 72px;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
}
.hero__lead {
  font-size: 19px;
  color: #2B3545;
  max-width: 560px;
}
.hero__lead, .checks li { text-shadow: 0 0 10px rgba(255, 255, 255, 0.9); }  /* refuerza la lectura sobre la foto */
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__buttons--center { justify-content: center; margin-top: 32px; }  /* usado en 404.html */
.checks {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.checks .icon { width: 18px; height: 18px; stroke-width: 2.6; }

/* Tarjeta de contacto */
.contact-card {
  flex: 1 1 360px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}
.contact-card__title {
  font-family: var(--font-title);
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}
.contact-card__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card__steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}
.contact-card__steps li span {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: #E1E9F4;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
}
.contact-card__phone {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
}
.contact-card__mail { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }

/* =========================================================
   7. SECCIONES GENERALES
   ========================================================= */
.section { padding: 88px 0; }
.section--white {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--navy { background: var(--navy); color: var(--white); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 36px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green-text);
}
.eyebrow--light { color: var(--green-light); }
.section__title {
  font-family: var(--font-title);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}
.section--navy .section__title { color: var(--white); }
.section__lead { font-size: 17px; color: var(--text-soft); }
.section__lead--light { color: #D4DCE8; }

/* Rejilla que se adapta sola: 3 columnas en PC, 1 en celular */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

/* =========================================================
   8. TARJETAS DE SITUACIONES
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #CFE3BF;
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #E4F1D8;
  color: var(--green-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__icon .icon { width: 24px; height: 24px; }
.card h3 { font-size: 18px; line-height: 1.3; color: var(--navy); }
.card p { font-size: 15px; color: var(--text-soft); }

/* =========================================================
   9. VALORACIÓN INICIAL (pasos)
   ========================================================= */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .steps { grid-template-columns: 1fr; } }
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.18);
  position: relative;
}
.step::before {   /* tramo verde sobre la línea, como el trazo del logo */
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--green);
}
/* Alinea número, ícono, título y texto en la misma fila en los cuatro pasos,
   aunque un título ocupe dos líneas y otro una. */
@supports (grid-template-rows: subgrid) {
  .steps { column-gap: 28px; row-gap: 0; }
  .step {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 12px;
    align-content: start;
    padding-bottom: 32px;
  }
  .step > * { align-self: start; justify-self: start; }
}
.step__number {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--green-light);
}
.step__icon { width: 28px; height: 28px; color: var(--white); opacity: 0.85; }
.step h3 { font-size: 20px; line-height: 1.3; }
.step p { font-size: 15px; color: #D4DCE8; }

/* =========================================================
   10. OFICINA
   ========================================================= */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.about__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}
.address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.5;
}
.address .icon { margin-top: 3px; }

.gallery {
  flex: 1 1 420px;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: #E6EBF2;
}
.gallery .gallery__main { grid-column: 1 / -1; border-radius: 20px; }
.gallery img {
  box-shadow: 0 8px 22px rgba(11, 45, 92, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery img:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.map {
  position: relative;
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #E6EBF2;
  height: 400px;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__card {   /* nombre y dirección sobre el mapa, para que no haya duda de cuál es la oficina */
  position: absolute;
  left: 16px;
  top: 16px;
  max-width: 280px;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(11, 45, 92, 0.22);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-soft);
}
.map__card strong { color: var(--navy); font-size: 15px; }
.map__card a { margin-top: 6px; font-weight: 700; text-decoration: none; color: var(--green-text); }
.map__card a:hover { text-decoration: underline; }

/* =========================================================
   10b. INSTAGRAM
   ========================================================= */
#instagram { padding: 64px 0; }
.ig__top {   /* panel compacto con una franja de colores de Instagram arriba */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 44px;
}
.ig__top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #F9A03F, #E1306C, #833AB4);
}
.ig__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.ig__card {
  flex: 0 1 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}
.ig__head { display: flex; align-items: center; gap: 14px; }
.ig__avatar {   /* aro con los colores de Instagram, como en las historias */
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(45deg, #F9A03F, #E1306C, #833AB4);
}
.ig__avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--white);
}
.ig__id { display: flex; flex-direction: column; line-height: 1.4; font-size: 14px; color: var(--text-muted); }
.ig__id strong { font-size: 18px; color: var(--navy); }
/* =========================================================
   11. PREGUNTAS FRECUENTES (sin JavaScript, usa <details>)
   ========================================================= */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.faq details[open] { background: var(--white); border-color: #CFE3BF; box-shadow: var(--shadow); }
.faq summary {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  padding: 20px 22px;   /* el relleno va aquí (no en <details>) para que toda la fila se pueda pulsar */
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: #E4F1D8;
  color: var(--green-text);
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: -8px; padding: 0 22px 20px; font-size: 15px; color: var(--text-soft); }

/* =========================================================
   12. LLAMADO FINAL
   ========================================================= */
.cta { padding: 88px 0; }
.cta__box {
  max-width: 1152px;
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta__text h2 {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  text-wrap: balance;
}
.cta__text p { font-size: 17px; color: #D4DCE8; }
.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  padding: 14px 26px 14px 14px;
  border-radius: 999px;
  transition: transform 0.15s ease;
}
.cta__button:hover { transform: translateY(-2px); }
.cta__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta__icon .icon { width: 28px; height: 28px; }
.cta__label { display: flex; flex-direction: column; line-height: 1.3; }
.cta__label span { font-size: 13px; font-weight: 500; }
.cta__label strong { font-size: 24px; }

/* =========================================================
   13. PIE DE PÁGINA
   ========================================================= */
.footer { background: var(--navy-dark); color: #C9D2E0; font-size: 14px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.footer__col { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: #C9D2E0; }
.footer__logo {
  align-self: flex-start;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 14px;
}
.footer__logo img { height: 40px; width: auto; }
.footer__address { line-height: 1.6; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 13px;
  color: #9AA7BC;
}

.footer__legal .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__legal a { color: #C9D2E0; }

/* =========================================================
   13b. PÁGINAS LEGALES (política de datos)
   ========================================================= */
.legal {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  color: var(--text-soft);
}
.legal h2 {
  margin-top: 20px;
  font-size: 21px;
  line-height: 1.3;
  color: var(--navy);
}
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--text); }
.legal__meta { font-size: 14px; color: var(--text-muted); }
.legal .legal__data {
  list-style: none;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.legal mark { background: #FFF1B8; color: var(--text); padding: 0 4px; border-radius: 4px; }  /* datos por completar */
.legal__back { margin-top: 24px; }

/* =========================================================
   14. BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 20;
}
.whatsapp-float .icon { width: 32px; height: 32px; }
.whatsapp-float:focus-visible { outline-offset: 3px; box-shadow: 0 0 0 3px var(--white), 0 6px 18px rgba(0, 0, 0, 0.25); }   /* anillo azul con borde blanco: se ve sobre cualquier fondo */
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::after {   /* aro que pulsa suavemente 3 veces para llamar la atención (no infinito: WCAG 2.2.2) */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--whatsapp);
    opacity: 0;
    animation: wa-pulse 2.6s ease-out 3;
  }
  @keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%, 100% { transform: scale(1.5); opacity: 0; }
  }
}

/* =========================================================
   15. ANIMACIÓN AL HACER SCROLL
   Solo CSS (sin JavaScript). Los navegadores que no la soportan
   muestran todo normal, y se respeta "reducir movimiento".
   ========================================================= */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal backwards linear;   /* "backwards" (no "both") para no bloquear el hover después de aparecer */
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* =========================================================
   16. AJUSTES PARA PANTALLAS MEDIANAS Y CELULAR
   ========================================================= */
@media (min-width: 984px) {   /* desde este ancho la tarjeta de contacto queda al lado del texto y ya tiene los botones: no se repiten en el hero */
  .hero__content .hero__buttons { display: none; }
}

@media (max-width: 1320px) {
  .footer__legal { padding-bottom: 84px; }   /* deja libre el botón flotante de WhatsApp para que no tape el enlace de la política */
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 72px; }
  .header__actions { display: none; }     /* en celular el botón flotante cumple esta función */
  .brand__logo { height: 38px; }
  .hero::before { background: rgba(255, 255, 255, 0.82); }
  #instagram { padding: 48px 0; }
  .ig__top { padding: 32px 24px; border-radius: 0; border-left: 0; border-right: 0; }
  .ig__card { flex-basis: 100%; }
  .hero__inner { padding-top: 28px; padding-bottom: 56px; gap: 40px; }   /* hero más compacto: el botón de WhatsApp debe verse sin bajar */
  .hero__content { gap: 16px; }
  .hero__title { font-size: 32px; }
  .hero__lead { font-size: 17px; }
  .hero__buttons .btn { width: 100%; }
  .footer__col { gap: 4px; }   /* los enlaces del pie miden 44px de alto: más fácil de pulsar */
  .footer__logo { margin-bottom: 10px; }
  .footer__address { margin-bottom: 6px; }
  .footer__col a, .footer__legal a, .map__card a { display: inline-flex; align-items: center; min-height: 44px; }
  .map__card a { margin-top: 0; }
  .section { padding: 64px 0; }
  .contact-card { padding: 24px; }
  .cta { padding: 64px 0 0; }
  .cta__box { padding: 32px 24px; border-radius: 0; }
  .map { height: auto; display: flex; flex-direction: column; }
  .map iframe { height: 300px; }
  .map__card { position: static; max-width: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--border); }
}
