/* Proxima Nova — Bold */
/*@font-face{
  font-family: "Proxima Nova";
  src:
    local("Proxima Nova Bold"),
    local("ProximaNova-Bold"),
    url("../../fonts/proxima-nova/ProximaNova-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}*/

/* Regular */
@font-face{
  font-family: "Proxima Nova";
  src:
    local("Proxima Nova Regular Italic"),
    local("ProximaNova-RegularIt"),
    url("../../fonts/proxima-nova/ProximaNova-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colores base */
  --bg-hero-gradient: linear-gradient(
    89.87deg,
    #040615 13.24%,
    #584990 118.56%
  );
  --bg-section: linear-gradient(90deg, #584990 -6.14%, #040615 63.98%);
  --white: #ffffff;
  --glass-tint: rgba(255, 255, 255, 0.08);
  --glass-stroke: rgba(255, 255, 255, 0.18);
  --accent-1: #6b7bff;
  --accent-2: #9b4dff;

  /* Tipografía */
  --font: "Proxima Nova", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;

  /* Tamaños */
  --container: min(1240px, 92vw);
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Timing */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* Reset mínimo y base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--bg-section);
  background-repeat: no-repeat;
  background-size: cover;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: var(--container);
  margin-inline: auto;
}

/* =========================
   Header (FINAL desktop)
   ========================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

/* Transparente en la primera pantalla */
.header.transparent {
  background: transparent;
}

/* Degradado al hacer scroll */
.header.scrolled {
  background: var(--bg-hero-gradient);
  backdrop-filter: saturate(1.2) blur(8px);
}

/* Layout: logo | nav centrado | botón derecha */
.header .header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 10px;
}

/* NAV centrado */
.header .nav {
  justify-self: center;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.header .nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  line-height: 1;
  padding: 8px 0; /* mejora target de click */
}

/* Subrayado en hover con degradado */
.header .nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.25s var(--ease);
}
.header .nav a:hover::after {
  width: 100%;
}

/* Header CTA con borde degradado 100% redondeado */
.header-cta {
  position: relative;
  border: 0;
  padding: 10px 22px;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s var(--ease);
}
.header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px; /* grosor del borde */
  background: linear-gradient(180deg, #1b94d6 0%, #584990 50%, #ce6174 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.header-cta span {
  position: relative;
  z-index: 1;
  transition: transform 0.2s var(--ease);
}

/* HOVER: desaparece SOLO el borde, el texto hace zoom */
.header-cta:hover::before {
  opacity: 0;
  transform: scale(0.98);
}
.header-cta:hover span {
  transform: scale(1.06);
}

/* Botones (3 variantes) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 14px 22px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  will-change: transform;
}
.btn span {
  transition: transform 0.2s var(--ease);
}
.btn:hover {
  background-color: transparent;
}
.btn:hover span {
  transform: scale(1.06);
}

/* 1) Píldora con borde degradado y relleno transparente | o relleno degradado */
.pill {
  border-radius: var(--radius-pill);
  position: relative;
  isolation: isolate;
}
.pill.gradient-border {
  border: 2px solid transparent;
  background: linear-gradient(#0000, #0000) padding-box,
    linear-gradient(90deg, var(--accent-1), var(--accent-2)) border-box;
}
.pill.gradient-fill {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border: 2px solid transparent;
}

/* 2) Píldora “picada” (alineada izquierda o derecha) */
.pill-split {
  border-radius: var(--radius-pill);
  position: relative;
}
.pill-split.left {
  clip-path: inset(0 8% 0 0 round var(--radius-pill));
}
.pill-split.right {
  clip-path: inset(0 0 0 8% round var(--radius-pill));
}
.pill-split.gradient-border {
  border: 2px solid transparent;
  background: linear-gradient(#0000, #0000) padding-box,
    linear-gradient(90deg, var(--accent-1), var(--accent-2)) border-box;
}
.pill-split.gradient-fill {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border: 2px solid transparent;
}

/* 3) Botón con esquinas: izq redondeadas, der arriba redondeada y der abajo cuadrada */
.btn-cut {
  border: 2px solid transparent;
  border-top-left-radius: var(--radius-pill);
  border-bottom-left-radius: var(--radius-pill);
  border-top-right-radius: var(--radius-pill);
  border-bottom-right-radius: 8px;
  background: linear-gradient(#0000, #0000) padding-box,
    linear-gradient(90deg, var(--accent-1), var(--accent-2)) border-box;
}
.btn-cut.gradient-fill {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
}

/* Izquierdo (relleno degradado) */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
  border-radius: 50px 0 0 50px !important;
  background: linear-gradient(
    91.89deg,
    #1b94d6 0.65%,
    #584990 50%,
    #ce6174 99.35%
  );
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn-main span {
  transition: transform 0.2s var(--ease);
}
.btn-main:hover {
  background: transparent;
}
.btn-main:hover span {
  transform: scale(1.06);
}

/* Derecho (borde degradado con pseudo-elemento) */
.btn-main.btn-line {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0 50px 50px 0 !important;
  padding: 12px 28px;
  line-height: 1;
  box-sizing: border-box;
  transition: transform 0.2s var(--ease);
}
.btn-main.btn-line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(180deg, #1b94d6 0%, #584990 50%, #ce6174 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-main.btn-line span {
  position: relative;
  z-index: 1;
  transition: transform 0.2s var(--ease);
}

/* HOVER: borra el borde y deja el texto haciendo zoom */
.btn-main.btn-line:hover::before {
  opacity: 0;
  transform: scale(0.98);
}
.btn-main.btn-line:hover span {
  transform: scale(1.06);
}

/* Utilidad para íconos alineados con texto */
.inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Utilidades */
.muted {
  opacity: 1;
  margin: 0;
}

/* ===== Tablet/Mobile: header ===== */
@media (max-width: 1024px) {
  /* Nav oculto (ya lo tienes), CTA mantiene píldora */
  .header .nav {
    display: none;
  }

  /* Reduce un toque el padding del header y la CTA */
  .header .header-inner {
    padding: 14px 10px;
  }
  .header-cta {
    padding: 9px 18px;
  }
  .header-cta::before {
    padding: 3px;
  }
}

/* Botón hamburguesa base oculto en desktop */
.nav-toggle {
  display: none;
}

/* Mostrar hamburguesa en tablet/móvil y ocultar nav */
@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle .bar {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    border-radius: 2px;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  .nav-toggle.is-open .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ===== Mobile (<= 640px) ===== */
@media (max-width: 840px) {
  .container {
    width: min(1100px, 90vw);
  } /* un pelín más de aire lateral */
  .btn {
    padding: 12px 18px;
  }

  /* Falta poco más grande */
  .mini-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  /* Dirección más grande */
  .glass-col.place span {
    font-size: clamp(16px, 4.2vw, 20px);
  }

  /* Afinar transparencia para que no se vea opaco en pantallas chicas */
  .glass-counter {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(18px) saturate(1.2);
  }

  .muted {
    display: none;
  }
}

@media (max-width: 400px) {
  .header-cta.btn-menu {
    align-items: center;
    left: 7.5% !important;
  }
}

@media (min-width: 401px) and (max-width: 420px) {
  .header-cta.btn-menu {
    align-items: center;
    left: 10% !important;
  }
}

@media (min-width: 421px) and (max-width: 550px) {
  .header-cta.btn-menu {
    align-items: center;
    left: 12% !important;
  }
}

@media (min-width: 551px) and (max-width: 850px) {
  .header-cta.btn-menu {
    align-items: center;
    left: 30% !important;
  }
}

@media (min-width: 851px) and (max-width: 1023px) {
  .header-cta span {
    position: relative;
    z-index: 1;
    transition: transform 0.2s var(--ease);
    font-size: 28px;
}
}

/* En tablet sigue visible, más compacto y ajustado al texto */
@media (min-width: 641px) and (max-width: 1024px) {
  .header-cta {
    padding: 8px 14px;
  }
  .header-cta::before {
    padding: 3px;
  }
}

/* Accesibilidad: helper para texto oculto visible a lectores de pantalla */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Botón flotante WhatsApp */
:root {
  --wa: #25d366;
}

.fab-whatsapp {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 999;
  display: inline-grid;
  place-items: center;
  width: clamp(75px, 5.8vw, 64px);
  height: clamp(75px, 5.8vw, 64px);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;

  /* “Glass” interior */
  background: rgba(4, 6, 21, 0.55);
  backdrop-filter: blur(2px) saturate(1.2);

  /* Sombra para elevar */
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  /* Transiciones suaves */
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

/* Anillo degradado como borde (mismo patrón que tus botones) */
.fab-whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px; /* grosor del “borde” */
  background: #ffffff00;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: padding 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* Icono */
.fab-whatsapp img {
  width: 58%;
  height: 58%;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

/* Hover/Focus: el borde se “apaga” y el botón hace un ligero zoom */
.fab-whatsapp:hover::before,
.fab-whatsapp:focus-visible::before {
  padding: 0;
}
.fab-whatsapp:hover,
.fab-whatsapp:focus-visible {
  transform: scale(1.06);
}

/* Pequeño brillo al pasar (sin molestar) */
.fab-whatsapp:hover {
  filter: brightness(1.06);
}

/* Evita animaciones si el usuario prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp,
  .fab-whatsapp::before {
    transition: none;
  }
}

/* Compensación en pantallas muy pequeñas */
@media (max-width: 380px) {
  .fab-whatsapp {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Subrayado activo en desktop (cuando la sección está en viewport) */
.header .nav a.active::after {
  width: 100%;
}

/* Compensación del header fijo al hacer anchor scroll */
[id^="section-"] {
  scroll-margin-top: 92px;
}

/* ===== Menú móvil (overlay) ===== */
.mobile-menu[hidden] {
  display: none !important;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr;
}

/* Panel deslizante */
.mobile-menu__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 21, 0.8);
  backdrop-filter: blur(3px) saturate(1.2);
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

/* Fondo clicable para cerrar */
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  border: 0;
  cursor: pointer;
  transition: opacity 0.28s var(--ease);
  opacity: 0;
  z-index: 1;
}

/* Estado abierto */
.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}
.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}

/* Nav móvil */
.mobile-menu__nav {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
}
.mobile-menu__nav a {
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  padding: 12px 10px;
  border-radius: 12px;
  line-height: 1;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.mobile-menu__nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

/* CTA móvil estilo píldora con borde degradado */
.mobile-menu__nav .mobile-cta {
  align-self: center;
  display: inline-flex; /* para pill bonito + centrar texto vertical */
  width: auto; /* asegura que siga el contenido */
  white-space: nowrap;
  position: relative;
  text-align: center;
  margin-top: 8px;
  border-radius: 999px;
  padding: 12px 30px;
}
.mobile-menu__nav .mobile-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(180deg, #1b94d6 0%, #584990 50%, #ce6174 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: padding 0.2s var(--ease);
}
.mobile-menu__nav .mobile-cta:hover::before {
  padding: 0;
}

/* ===== Mobile: alinear el ícono de menú totalmente a la derecha ===== */
@media (max-width: 1024px){
  .header .header-inner{
    display: flex;                 /* en móvil usamos flex para facilitar el layout */
    align-items: center;
    gap: 12px;
  }

  .header .nav{ display:none !important; }
  .header-cta.btn-menu{ 
    align-items: center;
    left: 35%; 
  }

  .brand{ flex: 0 0 auto; }        /* logo a la izquierda */
  .nav-toggle{
    margin-left: auto;             /* << clave: lo pega al borde derecho */
    justify-self: auto;            /* por si quedó algún estilo previo */
  }
}

/* Bloqueo de scroll cuando el menú móvil está abierto */
.scroll-lock {
  overflow: hidden;
  touch-action: none;
}

/* Header del panel móvil */
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-menu__brand img {
  display: block;
  height: 50px;
  margin: 5px;
}

/* Botón cerrar (X) */
.mobile-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 10px;
}
.mobile-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.18s var(--ease);
}
.mobile-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.mobile-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.mobile-close:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* (Opcional) subrayado activo también en móvil */
.mobile-menu__nav a.active {
  background: rgba(255, 255, 255, 0.08);
}

/* ===== Footer ===== */
.footer{
  position: relative;
  color: var(--white);
  background: inherit;             /* hereda tu degradado global */
  padding: 52px 0 0;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.footer-col.left { justify-self: start; }
.footer-col.center{ justify-self: center; text-align: center; }
.footer-col.right { justify-self: end;  text-align: right; }

.footer-title{
  margin: 0 0 12px;
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 700;
}

.footer-address{
  font-style: normal;
  margin: 0;
  line-height: 1.6;
  opacity: .95;
}

/* Logo centro */
.footer-logo{
  height: clamp(100px, 8vw, 82px);
  width: auto;
  margin-bottom: 16px;
  margin-left: 7.5% !important;
}

/* Redes con efecto glass */
.footer-socials{
  display: flex;
  gap: 10px;
  justify-content: center;
}
.footer-socials .social{
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15),
              0 6px 22px rgba(0,0,0,.25);
  backdrop-filter: blur(6px) saturate(1.02);
  transition: transform .2s var(--ease), filter .2s var(--ease);
  text-decoration: none;
}
.footer-socials .social:hover{ transform: translateY(-2px); filter: brightness(1.08); }
.footer-socials .social img{ width: 18px; height: 18px; display:block; }

/* Contacto */
.footer-contact{ margin: 0; line-height: 1.8; }
.footer-contact a{
  color: #fff; text-decoration: none;
}
.footer-contact a:hover{ text-decoration: underline; }

/* Franja inferior */
.footer-bottom{
  margin-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  padding: 14px 0 16px;
  text-align: center;
  backdrop-filter: blur(2px);
}
.footer-bottom small{ opacity: .9; }

/* ===== Responsive ===== */
@media (min-width: 700px) and (max-width: 900px){
  .footer-address {
    font-style: normal;
    margin: 0;
    line-height: 1.4;
    opacity: 1;
    font-size: 14px;
  }
}
@media (max-width: 900px){
  .footer-grid{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col.left,
  .footer-col.right{
    justify-self: center;
    text-align: center;
  }
}

/* Base del contenedor ya lo tienes (.footer-socials .social {...}) */

/* Botoncitos “glass” (usa tu estilo actual si ya lo tienes) */
.footer-socials{
  display:flex; gap:10px; justify-content:center;
}
.footer-socials .social{
  width:40px; height:40px; display:grid; place-items:center;
  border-radius:10px; backdrop-filter:blur(8px) saturate(1.05);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  transition:transform .2s ease, background .2s ease;
}
.footer-socials .social:hover{ transform: translateY(-2px); background: rgba(255,255,255,.10); }

/* <i> como icono: se pinta con background-color usando mask */
.footer-socials .social .ico{
  width:18px; height:18px; display:block;
  background-color:#fff; /* color del icono */
  -webkit-mask: var(--icon) no-repeat center / contain;
          mask: var(--icon) no-repeat center / contain;
    display: flex;
    align-self: center;
    margin-right: 25%;
}
.footer-socials .social:hover .ico{ background-color:#EDEBFF; }

/* ====== ICONOS EMBEBIDOS (data-URI) ====== */
/* Facebook */
.ico-fb{
  --icon: url("../../images/icons/fb-white.svg");
}

/* Instagram (marco + punto central simple) */
.ico-ig{
  --icon: url("../../images/icons/ig-white.svg");
}

/* X (Twitter) */
.ico-x{
  --icon: url("../../images/icons/x-white.svg");
}

/* YouTube (play dentro de pastilla) */
.ico-yt{
  --icon: url("../../images/icons/yt-white.svg");
}

/* === Layout con áreas (desktop se mantiene 3 columnas) === */
.footer-grid{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left center right";
  gap: clamp(20px, 4vw, 56px);
  align-items:center;
}
.footer-col.left   { grid-area:left;   justify-self:start;  text-align:left;  }
.footer-col.center { grid-area:center; justify-self:center; text-align:center; }
.footer-col.right  { grid-area:right;  justify-self:end;    text-align:right; }

/* === Mobile: orden solicitado === */
@media (max-width: 700px){
  .footer{ padding: 40px 0 0; }

  .footer-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"      /* 1) logo  */
      "center"      /* 2) redes (ya están dentro del center) */
      "left"        /* 3) dirección */
      "right";      /* 4) contáctanos */
    gap: 18px;
    text-align:center;
  }

  .footer-col.left,
  .footer-col.right{
    justify-self:center;
    text-align:center;
  }

  /* Logo y redes con respiración */
  .footer-logo{ margin-bottom: 10px; height: 64px; padding-left: 22.5%; padding-bottom: 10px; }
  .footer-socials{ gap: 12px; margin-bottom: 8px; }

  /* Botones sociales tamaño táctil (44x44) */
  .footer-socials .social{
    width: 44px; height: 44px; border-radius: 12px;
  }
  .footer-socials .social .ico{ width: 20px; height: 20px; }

  /* Títulos algo más compactos */
  .footer-title{ margin: 4px 0 8px; font-size: 18px; }

  /* Dirección y contacto centrados */
  .footer-address, .footer-contact{ line-height: 1.7; }

  /* 5) Copyright queda ya debajo por el flujo del DOM */
  .footer-bottom{
    margin-top: 22px;
    padding: 12px 0 16px;
  }
}

/* Altura del header y desplazamiento global para anclas */
:root{ --header-h: 80px; }           /* ajusta tu altura real de header desktop */
@media (max-width: 900px){ :root{ --header-h: 64px; } } /* móvil/tablet */

[id^="section-"], #hero {
  scroll-margin-top: calc(var(--header-h) + 16px);  /* acolchado extra para respirar */
}

/* Suaviza TODO el scroll por CSS */
html { scroll-behavior: smooth; }
