/* ============================================
   FOOTER — Compact
   ============================================ */

.footer {
  /* Fondo turquesa profundo-medio de marca (blanco AA >= 4.5:1) con
     destellos #00b6bb: cierre visual de la web sin llegar al negro. */
  background:
    radial-gradient(620px 380px at 92% -12%, rgba(0, 182, 187, 0.55) 0%, transparent 62%),
    radial-gradient(480px 320px at 6% 112%, rgba(0, 182, 187, 0.25) 0%, transparent 55%),
    linear-gradient(160deg, #045F65 0%, #05666C 100%);
  color: rgba(255,255,255,0.85);
  padding: var(--space-3xl) 0 0;
  position: relative;
  isolation: isolate;
}
/* Velo turquesa muy tenue: textura del degradado sin oscurecer el teal base. */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 182, 187, 0.1) 0%, transparent 45%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
  max-width: 280px;
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-top: var(--space-sm);
  max-width: 260px;
}

.footer__logo {
  height: 42px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
}

/* Mención de acreditación oficial en el bloque de marca */
.footer__accreditation {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: var(--space-sm) 0 0;
  font-size: var(--text-xs);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 280px;
}

.footer__accreditation-check {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(0, 182, 187, 0.3);
  color: var(--brand-light);
  padding: 3px;
}

.footer__accreditation-check path { fill: currentColor; }

.footer__heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.88);
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer__link:hover {
  color: var(--white);
}

/* Contact */
.footer__contact {
  font-style: normal;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.footer__contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  display: block;
}

.footer__contact-item > span:last-child {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.88);
  transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
  color: var(--white);
}

/* Bottom */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer__brands {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.82);
  margin: 0;
}

.footer__brands strong {
  color: rgba(255,255,255,0.9);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin: 0;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.85);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  font-size: var(--text-xs);
  margin-top: var(--space-sm);
}

/* rgba(255,255,255,0.4) sobre --charcoal daba 3.26:1. Con 0.72 sube a
   4.9:1 (AA) manteniendo el tono apagado de los enlaces legales. */
.footer__legal a,
.footer__legal .footer__link--btn {
  color: rgba(255,255,255,0.88);
  transition: color var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: inline;
}

.footer__legal a:hover,
.footer__legal .footer__link--btn:hover {
  color: var(--white);
}

.footer__legal a:focus-visible,
.footer__legal .footer__link--btn:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
  border-radius: 2px;
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer__brand {
    text-align: center;
  }
  .footer__logo {
    margin: 0 auto var(--space-sm);
  }
  .footer__brand p {
    max-width: none;
    margin: var(--space-sm) auto 0;
  }
  .footer__social {
    justify-content: center;
  }
  .footer__legal {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .footer__contact-item {
    text-align: center;
  }
}
/* ============================================================
   SEPARACIÓN CON EL FOOTER
   ------------------------------------------------------------
   `.cta-banner` se pinta con --charcoal, el MISMO fondo que
   `.footer`. Cuando el banner cerraba `<main>` se quedaba pegado
   al footer y los dos se leían como un único bloque oscuro.

   Este margen mete aire entre ambos sin tocar el HTML: aplica a
   cualquier página que termine en un cta-banner (contacto,
   formación oficial, la academia, trabajos de alumnas,
   productos...), incluida la 404.
   ============================================================ */
main .cta-banner:last-child {
  margin-bottom: var(--space-3xl);
}

@media (max-width: 768px) {
  main .cta-banner:last-child {
    margin-bottom: var(--space-2xl);
  }
}

/* Móvil: la mención de acreditación del bloque de marca se centra junto al resto */
@media (max-width: 640px) {
  .footer__accreditation {
    justify-content: center;
    margin: var(--space-sm) auto 0;
  }
}
