/* =========================
   FOOTER
========================= */
.site-footer{
  position:relative;
  padding:clamp(56px,7vw,96px) 0 28px;
  color:#fff;
  background:linear-gradient(135deg,#2f74b2 0%,#3b87c9 45%,#4a96d8 100%);
  overflow:hidden;
}

.site-footer::after{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    linear-gradient(120deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(300deg, rgba(255,255,255,.06) 25%, transparent 25%);
  background-size:240px 240px;
  opacity:.35;
  pointer-events:none;
}

.footer__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 clamp(16px,4vw,32px);
  position:relative;
  z-index:1;
}

.footer__collab-title{
  margin:0 0 18px;
  font-size:clamp(22px,2.2vw,28px);
  font-weight:900;
  letter-spacing:.02em;
  text-shadow:0 10px 30px rgba(0,0,0,.25);
  text-align:center;
}

/* =========================
   COLABORADORES (sin recuadro)
========================= */
/* =========================
   COLABORADORES (tamaño REAL, tipo "iconos grandes")
   - Funciona con logos rectangulares
   - Evita que se vean "enanos" por márgenes transparentes del PNG
========================= */
.footer__logos{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:clamp(14px, 3.4vw, 32px);
  margin:0 0 clamp(28px, 4vw, 42px);
}

/* Contenedor más ancho (logo-friendly) */
.footer__logo{
  width:clamp(140px, 18vw, 220px);
  height:clamp(64px, 7vw, 90px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  text-decoration:none;
  outline:none;
}

/* La imagen ocupa TODO el contenedor (clave) */
.footer__logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  opacity:.98;
  transition:filter .25s ease, transform .25s ease;
  filter:drop-shadow(0 0 0 rgba(0,0,0,0));
  transform:scale(1.08); /* “come” el margen transparente típico */
  transform-origin:center;
}

/* Hover elegante */
.footer__logo:hover img{
  transform:scale(1.10);
  filter:
    drop-shadow(0 0 2px rgba(255,255,255,.40))
    drop-shadow(0 0 10px rgba(255,255,255,.22))
    drop-shadow(0 0 18px rgba(0,0,0,.12));
}

.footer__logo:focus-visible{
  outline:2px solid rgba(255,255,255,.40);
  outline-offset:6px;
  border-radius:12px;
}

/* MÓVIL: más compacto pero NO enano */
@media (max-width:880px){
  .footer__logo{
    width:clamp(150px, 60vw, 120px);
    height:clamp(70px, 22vw, 95px);
  }
  .footer__logo img{
    transform:scale(1.12);
  }
}

/* =========================
   COLABORADORES - TITULO BAJO LOGO
========================= */

.footer__logo-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  text-align:center;
}

/* El texto tiene un ancho ligeramente mayor que el logo */
.footer__logo-title{
  width:110%;               /* ligeramente más ancho que la imagen */
  max-width:260px;          /* límite elegante */
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  color:rgba(255,255,255,.95);
  opacity:.95;
  text-align:center;
  word-wrap:break-word;
  white-space:normal;       /* permite salto automático */
}

/* En escritorio un pelín más fino */
@media (min-width:980px){
  .footer__logo-title{
    font-size:15px;
  }
}

/* En móvil que respire mejor */
@media (max-width:880px){
  .footer__logo-item{
    gap:8px;
  }

  .footer__logo-title{
    font-size:15px;
    width:115%;
  }
}


/* =========================
   GRID
========================= */
.footer__grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:28px;
  align-items:start;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.22);
}

.footer__brand{
  display:flex;
  gap:14px;
  align-items:center;
}

.footer__brand img{
  height:52px;
  width:auto;
  object-fit:contain;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.25));
}

.footer__brand p{
  margin:2px 0 0;
  max-width:42ch;
  font-size:14px;
  line-height:1.55;
  color:rgba(255,255,255,.92);
}

.footer__h{
  margin:0 0 12px;
  font-size:14px;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:rgba(255,255,255,.95);
}

.footer__links{
  display:grid;
  gap:10px;
  font-size:14px;
  color:rgba(255,255,255,.92);
}

.footer__links a{
  display:inline-flex;
  width:fit-content;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  transition:.15s ease;
}

.footer__links a:hover{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.28);
  text-decoration:none;
  transform:translateY(-1px);
}

.footer__contact{
  display:grid;
  gap:10px;
  font-size:14px;
  line-height:1.5;
  color:rgba(255,255,255,.92);
}

.footer__contact a{ text-decoration:underline; }

/* =========================
   BOTTOM
========================= */
.footer__bottom{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.18);
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  font-size:15px;
  color:rgba(255,255,255,.85);
}

.footer__slogan{
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:rgba(255,255,255,.95);
}

.footer__slogan--hand{
  font-family:"Comic Sans MS","Segoe Print","Bradley Hand",cursive;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:none;
  opacity:.95;
  line-height:1.15;
  font-size:clamp(16px, 1.2vw, 20px);
}

/* =========================
   AJUSTES SOLO ESCRITORIO
========================= */
@media (min-width: 980px){
  /* Logos grandes en escritorio */
  .footer__logo{
    width:clamp(110px, 13vw, 180px);
    height:clamp(70px, 8vw, 110px);
  }

  /* Slogan: punto intermedio */
  .footer__slogan--hand{
    font-size:clamp(16px, 1vw, 24px);
    line-height:1.2;
  }
}

/* =========================
   RESPONSIVE (solo footer)
========================= */
@media (max-width:880px){
  .footer__grid{ grid-template-columns:1fr; }

  .footer__brand{
    justify-content:center;
    align-items:center;
    flex-direction:column;
    text-align:center;
  }

  .footer__brand img{ height:60px; }

  .footer__brand p{
    font-size:16px;
    line-height:1.6;
    text-align:center;
    max-width:52ch;
  }

  .footer__h{
    text-align:center;
    font-size:16px;
    margin:18px 0 10px;
  }

  .footer__links{
    justify-items:center;
    font-size:16px;
  }

  .footer__links a{
    width:100%;
    max-width:320px;
    justify-content:center;
    padding:12px 14px;
    font-size:16px;
  }

  .footer__contact{
    justify-items:center;
    text-align:center;
    font-size:16px;
  }

  .footer__contact a{ font-size:16px; }

  .footer__bottom{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:14px;
    font-size:14px;
  }

  .footer__slogan--hand{
    font-size:26px;
    line-height:1.15;
  }
}