/* ==========================================================================
   LANDING CONTACTO — Estilos exclusivos y arquitectura de pantalla
   Breakpoints limpios:
   1. min-width: 901px -> Escritorio a 1 sola pantalla (100dvh) con curva fija a 90px
   2. max-width: 900px -> Tablet vertical y Móvil a 2 pantallas (100dvh) con snap y curvas
   ========================================================================== */

html {
  height: auto;
  overflow-y: auto;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  background: #f3f7f5;
}

.contacto-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.contacto-page .navbar {
  position: fixed;
}

.contacto-page main {
  flex: 1 0 auto;
}

.snap-sec--footer {
  min-height: 0;
}

/* ── ESTILOS BASE COMPARTIDOS (Todas las pantallas) ────────────────────── */
#contacto.contact-section.contact-section--standalone {
  position: relative;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 10% 20%, rgba(58, 158, 150, .13), transparent 30%),
    linear-gradient(145deg, #f6faf9 0%, #eee8df 100%);
  overflow: hidden;
}

#contacto.contact-section.contact-section--standalone::before {
  display: none !important;
}

#contacto .contact-shell {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: 24px;
  align-items: stretch;
}

/* Tarjeta izquierda: Galería de fotos */
#contacto .contact-gallery {
  position: relative;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(3, 100, 105, .28);
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 14px 34px rgba(61, 43, 31, .11);
  transition: transform .3s ease, box-shadow .3s ease;
}

#contacto .contact-gallery:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(2, 79, 82, .16);
}

#contacto .contact-photo {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 10px !important;
  background: #dce9e7;
}

#contacto .contact-photo--main {
  grid-row: 1 / 3;
}

#contacto .contact-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}

#contacto .contact-gallery:hover .contact-photo img {
  transform: scale(1.025);
}

#contacto .contact-gallery-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 750;
  background: rgba(7, 67, 79, .88);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

/* Tarjeta derecha: Ficha comercial */
#contacto .contact-business-card {
  height: 100%;
  box-sizing: border-box;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(3, 100, 105, .2);
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(61, 43, 31, .11);
  transition: transform .3s ease, box-shadow .3s ease;
}

#contacto .contact-business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(2, 79, 82, .16);
}

#contacto .contact-eyebrow {
  color: var(--amber-dark, #b55d00);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}

#contacto .contact-business-card h1 {
  color: var(--teal-dark, #024f52);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  margin: 4px 0 6px;
  text-align: center;
}

#contacto .contact-intro {
  color: #556267;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  margin: 0 0 10px;
}

#contacto .contact-open-state {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 750;
  border-radius: 999px !important;
  border: 1px solid rgba(2, 79, 82, .14);
  background: rgba(3, 100, 105, 0.05);
  color: var(--teal-dark, #024f52);
  letter-spacing: .02em;
}

#contacto .contact-open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50% !important;
  background: #9ca3af;
  flex: 0 0 8px;
}

#contacto .contact-open-state.is-open .contact-open-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
}

#contacto .contact-open-state.is-closed .contact-open-dot {
  background: var(--amber, #eb7a01);
  box-shadow: 0 0 0 3px rgba(235, 122, 1, .2);
}

#contacto .contact-facts {
  display: grid;
  gap: 8px;
  flex: 1;
}

#contacto .contact-facts--two-phones {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

#contacto .contact-facts--two-phones .contact-fact:first-child,
#contacto .contact-facts--two-phones .contact-fact:nth-child(2) {
  grid-column: 1 / -1;
}

#contacto .contact-fact {
  min-height: 48px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(3, 100, 105, .14);
  border-radius: 12px !important;
  background: rgba(3, 100, 105, 0.03);
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
  cursor: default;
}

#contacto .contact-fact:hover {
  transform: translateY(-2px);
  background: rgba(3, 100, 105, 0.07);
  border-color: rgba(3, 100, 105, .3);
  box-shadow: 0 4px 14px rgba(2, 79, 82, 0.08);
}

#contacto .contact-fact > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 10px !important;
  background: var(--teal-light, #e0edea);
  color: var(--teal-dark, #024f52);
  font-size: 16px;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}

#contacto .contact-fact:hover > i {
  background: var(--teal, #036469);
  color: #fff;
  transform: scale(1.08);
}

#contacto .contact-fact span {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--amber-dark, #b55d00);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}

#contacto .contact-fact strong {
  display: block;
  color: var(--teal-dark, #024f52);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.3;
}

#contacto .contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
}

#contacto .contact-action {
  min-height: 36px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px !important;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid rgba(2, 79, 82, .18);
  background: #fff;
  color: var(--teal-dark, #024f52);
}

#contacto .contact-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 79, 82, .12);
  background: var(--teal-light, #e0edea);
}

#contacto .contact-action--primary {
  background: var(--teal, #036469);
  color: #fff;
  border-color: var(--teal, #036469);
}

#contacto .contact-action--primary:hover {
  background: var(--teal-dark, #024f52);
  color: #fff;
}

/* Modal Mapa */
.contact-map-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 38, 47, .65);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.contact-map-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-map-dialog {
  width: min(840px, 100%);
  max-height: 90vh;
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  transform: scale(.95);
  transition: transform .25s ease;
}

.contact-map-modal.is-open .contact-map-dialog {
  transform: scale(1);
}

.contact-map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.contact-map-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber, #eb7a01);
}

.contact-map-header h2 {
  margin: 2px 0 0;
  color: var(--teal-dark, #024f52);
  font-size: 20px;
  font-family: var(--font-display);
}

.contact-map-close {
  width: 36px;
  height: 36px;
  border: 1px solid #d6e2e0;
  border-radius: 10px !important;
  background: #fff;
  color: var(--teal-dark, #024f52);
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
}

.contact-map-address {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #59686e;
  font-size: 12px;
}

.contact-map-address i {
  color: var(--teal, #036469);
  font-size: 17px;
}

.contact-map-frame {
  min-height: 380px;
  overflow: hidden;
  border-radius: 10px !important;
  border: 1px solid rgba(3, 100, 105, .2);
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

.contact-map-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.contact-map-secondary,
.contact-map-primary {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.contact-map-secondary {
  border: 1px solid #ccd9d7;
  color: var(--teal-dark, #024f52);
  background: #fff;
}

.contact-map-primary {
  border: 1px solid var(--teal, #036469);
  color: #fff;
  background: var(--teal, #036469);
}

/* Transiciones para la curva y desvanecimiento hacia el footer */
#contacto .sec-wave-top {
  pointer-events: none;
  line-height: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

#contacto.is-footer-approaching .sec-wave-top,
.is-footer-approaching .sec-wave-top {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  pointer-events: none !important;
}


/* ── 1. ESCRITORIO (901px o más) ──────────────────────────────────────────
   Una sola pantalla completa (100dvh):
   - Curva institucional fija al fondo a 90px exactos.
   - Contenido centrado armónicamente entre el navbar (92px) y la curva (90px).
   - Tarjetas simétricas y equilibradas sin desbordes verticales en 1366x633 y 1280x605.
────────────────────────────────────────────────────────────────────────── */
@media (min-width: 901px) {
  .contacto-page {
    overflow-x: hidden !important;
  }

  /* Los contenedores snap de móvil se disuelven en escritorio */
  .contacto-pantalla {
    display: contents !important;
  }

  .sec-wave-top--vista1,
  .sec-wave-top--vista2 {
    display: none !important;
  }

  #contacto.contact-section.contact-section--standalone {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box !important;
    padding: 92px 40px 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  #contacto .contact-shell {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    transform: translateY(12px);
    display: grid !important;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr) !important;
    gap: 22px !important;
    align-items: stretch !important;
    z-index: 2 !important;
  }

  #contacto .contact-gallery,
  #contacto .contact-business-card {
    height: min(480px, max(375px, min(calc(143dvh - 490px), calc(67dvh - 9px)))) !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }

  #contacto .contact-business-card {
    padding: 16px 22px 14px !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }

  #contacto .contact-business-card h1 {
    font-size: 24px !important;
    margin: 2px 0 4px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  #contacto .contact-intro {
    font-size: 11.5px !important;
    line-height: 1.38 !important;
    margin: 0 0 6px !important;
  }

  #contacto .contact-open-state {
    margin-bottom: 8px !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
  }

  #contacto .contact-facts {
    align-content: center;
    gap: 6px !important;
  }

  #contacto .contact-fact {
    min-height: 46px !important;
    padding: 4px 8px !important;
  }

  #contacto .contact-fact > i {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    flex: 0 0 28px !important;
  }

  #contacto .contact-fact span {
    font-size: 8.5px !important;
    margin-bottom: 1px !important;
  }

  #contacto .contact-fact strong {
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  #contacto .contact-fact .contact-address {
    white-space: normal !important;
  }

  #contacto .contact-actions {
    padding-top: 8px !important;
    gap: 6px !important;
  }

  #contacto .contact-action {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 10.5px !important;
  }

  /* Curva institucional fija a 90px en escritorio */
  #contacto .sec-wave-top--desktop {
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 90px !important;
    z-index: 1 !important;
    margin: 0 !important;
  }

  #contacto .sec-wave-top--desktop svg {
    height: 90px !important;
    width: 100% !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
  }

  #contacto.is-footer-approaching .sec-wave-top--desktop,
  .is-footer-approaching .sec-wave-top--desktop {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
  }
}

/* Ajuste exclusivo de la ficha de contacto a 1280 × 605. */
@media (min-width: 1274px) and (max-width: 1286px) and (max-height: 650px) {
  #contacto .contact-business-card {
    padding-bottom: 16px !important;
  }

  #contacto .contact-open-state {
    margin-bottom: 4px !important;
  }

  #contacto .contact-facts {
    gap: 4px !important;
  }

  #contacto .contact-facts--two-phones .contact-fact:last-child {
    grid-column: 1 / -1;
  }

  #contacto .contact-fact {
    justify-content: center;
  }

  #contacto .contact-fact > div {
    text-align: center;
  }

  #contacto .contact-actions {
    padding-top: 4px !important;
  }
}

/* Ajuste exclusivo de los contenedores y alineación de datos a 1366 × 633. */
@media (min-width: 1360px) and (max-width: 1372px) and (min-height: 627px) and (max-height: 639px) {
  #contacto .contact-gallery,
  #contacto .contact-business-card {
    border-radius: 0 !important;
  }

  #contacto .contact-facts--two-phones .contact-fact:last-child {
    grid-column: 1 / -1;
  }

  #contacto .contact-fact {
    justify-content: center;
  }

  #contacto .contact-fact > div {
    text-align: center;
  }
}

/* 1533 × 730: centrar datos y dar al correo una fila completa. */
@media (min-width: 1528px) and (max-width: 1538px) {
  #contacto .contact-facts--two-phones .contact-fact:last-child {
    grid-column: 1 / -1;
  }

  #contacto .contact-fact {
    justify-content: center;
  }

  #contacto .contact-fact > div {
    text-align: center;
  }
}

/* Alineación del contenido en escritorio compacto, sin depender del alto de DevTools. */
@media (min-width: 901px) and (max-width: 1230px) {
  #contacto .contact-facts--two-phones .contact-fact:last-child {
    grid-column: 1 / -1;
  }

  #contacto .contact-fact {
    justify-content: center;
  }

  #contacto .contact-fact > div {
    text-align: center;
  }
}

/* ── 2. TABLET Y MÓVIL (900px o menos) ──────────────────────────────────
   - Scroll-Snap vertical nativo obligatorio (100dvh por pantalla).
   - Pantalla 1: Galería de fotos (conoce nuestro espacio) + Curva Vista 1.
   - Pantalla 2: Ficha comercial (datos completos y botones) + Curva Vista 2 con fade al footer.
   - Pantalla 3: Footer acoplado con snap que empieza exactamente en "Toda la información...".
────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --contacto-nav-h: 84px;
  }
}
@media (max-width: 560px) {
  :root {
    --contacto-nav-h: 68px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-snap-type: y mandatory !important;
    scroll-behavior: smooth !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body,
  body.contacto-page {
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  .contacto-page main {
    display: block !important;
    flex: none !important;
    overflow: visible !important;
  }

  #contacto.contact-section.contact-section--standalone {
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
    scroll-snap-align: none !important;
    background:
      radial-gradient(circle at 10% 20%, rgba(58, 158, 150, .13), transparent 30%),
      linear-gradient(145deg, #f6faf9 0%, #eee8df 100%) !important;
  }

  #contacto .contact-shell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  /* Ocultar curva de escritorio en móvil/tablet */
  #contacto .sec-wave-top--desktop {
    display: none !important;
  }

  /* ── Pantallas snap individuales (100dvh cada una) ── */
  .contacto-pantalla {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    padding: calc(var(--contacto-nav-h, 68px) + 8px) 18px 105px !important;
  }

  /* ── Pantalla 1: Galería de fotos del espacio ── */
  #contacto .contact-gallery {
    width: 100% !important;
    max-width: clamp(335px, 91vw, 420px) !important;
    height: clamp(320px, 45dvh, 410px) !important;
    min-height: 320px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(3, 100, 105, .28) !important;
    background: rgba(255, 255, 255, .75) !important;
    box-shadow: 0 10px 28px rgba(61, 43, 31, .11) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  #contacto .contact-photo--main {
    grid-column: 1 / 3 !important;
    grid-row: auto !important;
    height: clamp(170px, 24dvh, 220px) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  #contacto .contact-photo:not(.contact-photo--main) {
    height: clamp(110px, 16dvh, 140px) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  #contacto .contact-gallery-label {
    left: 16px !important;
    bottom: 16px !important;
    z-index: 3 !important;
    font-size: 11px !important;
    padding: 5px 12px !important;
  }

  /* ── Pantalla 2: Ficha comercial con altura cómoda y elástica ── */
  #contacto .contact-business-card {
    width: 100% !important;
    max-width: clamp(335px, 91vw, 420px) !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 2 !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(3, 100, 105, .28) !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 10px 28px rgba(61, 43, 31, .11) !important;
    padding: 16px 18px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    height: auto !important;
    max-height: calc(100dvh - 165px) !important;
    overflow-y: auto !important;
  }

  #contacto .contact-eyebrow {
    font-size: 10px !important;
  }

  #contacto .contact-business-card h1 {
    font-size: clamp(18px, 4.6vw, 22px) !important;
    margin: 2px 0 4px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  #contacto .contact-intro {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 0 0 6px !important;
  }

  #contacto .contact-open-state {
    margin-bottom: 8px !important;
    padding: 3px 10px !important;
    font-size: 10.5px !important;
  }

  #contacto .contact-facts {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  #contacto .contact-facts--two-phones .contact-fact:first-child,
  #contacto .contact-facts--two-phones .contact-fact:nth-child(2),
  #contacto .contact-facts--two-phones .contact-fact:last-child {
    grid-column: 1 / -1 !important;
  }

  #contacto .contact-facts:not(.contact-facts--two-phones) {
    grid-template-columns: 1fr !important;
  }

  #contacto .contact-fact {
    min-height: 44px !important;
    padding: 4px 8px !important;
  }

  #contacto .contact-fact > i {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    flex: 0 0 28px !important;
  }

  #contacto .contact-fact span {
    font-size: 8.5px !important;
    margin-bottom: 1px !important;
  }

  #contacto .contact-fact strong {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  #contacto .contact-actions {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding-top: 6px !important;
  }

  #contacto .contact-action {
    min-height: 36px !important;
    font-size: 11px !important;
  }

  /* Curvas por pantalla en móvil/tablet (/dev/ondas-calibrador plantilla "contacto") */
  .sec-wave-top--vista1,
  .sec-wave-top--vista2 {
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: clamp(85px, 12.5dvh, 120px) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    margin: 0 !important;
    line-height: 0 !important;
    transition: opacity 0.35s ease, transform 0.35s ease !important;
    will-change: opacity, transform !important;
  }

  .sec-wave-top--vista1 svg,
  .sec-wave-top--vista2 svg {
    height: 100% !important;
    width: 100% !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
  }

  /* Desvanecimiento suave al aproximarse al footer */
  #contacto.is-footer-approaching .sec-wave-top--vista2,
  .is-footer-approaching .sec-wave-top--vista2 {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
  }

  /* ── Pantalla 3: Footer Snap que empieza exactamente en "Toda la información..." ── */
  .snap-sec--footer {
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    scroll-margin-top: var(--contacto-nav-h, 68px) !important;
    min-height: calc(100dvh - var(--contacto-nav-h, 68px)) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }

  .snap-sec--footer .footer-trust {
    flex: 0 0 auto !important;
    padding: 16px 20px !important;
    text-align: center !important;
    background: var(--teal-light, #e0edea) !important;
  }

  .snap-sec--footer .footer-trust p,
  .snap-sec--footer .footer-trust > .landing-rich-content {
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #374151 !important;
    margin: 0 !important;
  }

  .snap-sec--footer .footer-trust strong {
    color: var(--teal-dark, #024f52) !important;
  }

  .snap-sec--footer .footer {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 20px 20px 18px !important;
  }

  .snap-sec--footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .snap-sec--footer .footer-brand {
    justify-self: center !important;
    text-align: center !important;
  }

  .snap-sec--footer .footer-social-title {
    font-size: 11px !important;
    margin-bottom: 8px !important;
    letter-spacing: .08em !important;
  }

  .snap-sec--footer .footer-social {
    justify-content: center !important;
  }

  .snap-sec--footer .footer-col {
    width: min(100%, 360px) !important;
    justify-self: center !important;
  }

  .snap-sec--footer .footer-col-title {
    font-size: 11px !important;
    margin-bottom: 6px !important;
    letter-spacing: .08em !important;
  }

  .snap-sec--footer .footer-col ul {
    gap: 5px !important;
    font-size: 12px !important;
  }

  .snap-sec--footer .footer-bottom {
    padding: 12px 18px !important;
  }

  .snap-sec--footer .footer-bottom-inner {
    justify-content: center !important;
    text-align: center !important;
  }

  .snap-sec--footer .footer-bottom-inner p {
    font-size: 10.5px !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }
}

@media (max-width: 560px) {
  #contacto .contact-fact {
    justify-content: center;
  }

  #contacto .contact-fact > div {
    text-align: center;
  }
}

/* Teléfonos cercanos a 384px: el alto CSS puede variar por las barras del navegador. */
@media (min-width: 360px) and (max-width: 400px) {
  .contacto-page .navbar-logo img {
    transform: translate(20px, -3px);
  }

  #contacto .contacto-pantalla--1 .contact-gallery {
    overflow: visible !important;
  }

  #contacto .contacto-pantalla--1 .contact-gallery-label {
    top: -42px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  #contacto .contacto-pantalla--2 {
    padding-bottom: 80px !important;
  }

  #contacto .contact-business-card {
    max-height: calc(100dvh - var(--contacto-nav-h, 68px) - 88px) !important;
    padding: 10px 14px !important;
    gap: 3px !important;
    overflow-y: visible !important;
  }

  #contacto .contact-business-card h1 {
    font-size: 20px !important;
    margin: 1px 0 2px !important;
  }

  #contacto .contact-intro {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
  }

  #contacto .contact-open-state {
    margin-bottom: 3px !important;
  }

  #contacto .contact-facts {
    flex: 0 0 auto !important;
    gap: 3px !important;
  }

  #contacto .contact-fact {
    min-height: 40px !important;
    padding: 3px 6px !important;
  }

  #contacto .contact-actions {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    padding-top: 3px !important;
  }

  #contacto .contact-action {
    min-height: 32px !important;
    padding: 5px 8px !important;
    font-size: 10.5px !important;
  }
}
