/* =====================================================
   AVI MÁLAGA — Hoja de estilos global
   Versión: 1.0
   ===================================================== */

/* Variables CSS */
:root {
  --azul-avi: #1B4FA8;
  --naranja: #F5A623;
  --teal: #3ABFA3;
  --fondo-suave: #F5F7FF;
  --azul-claro: #E8EFFF;
  --blanco: #FFFFFF;
  --gris-texto: #444444;
  --sombra: 0 4px 20px rgba(0,0,0,0.08);
  --radio: 16px;
  --radio-btn: 50px;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gris-texto);
  background: var(--blanco);
}

h1, h2, h3, h4, h5, h6,
nav, button, .btn-cta {
  font-family: 'Inter', sans-serif;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; line-height: 1.4; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--azul-avi);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--naranja); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* =====================================================
   LAYOUT
   ===================================================== */

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

section {
  padding: 80px 0;
}
section.bg-suave { background: var(--fondo-suave); }
section.bg-azul-claro { background: var(--azul-claro); }

/* =====================================================
   HEADER / NAVEGACIÓN
   ===================================================== */

.site-header {
  background: var(--azul-avi);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-menu a {
  color: rgba(255,255,255,0.88);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
}

.nav-menu a.active {
  background: rgba(255,255,255,0.2);
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.15); }
.nav-toggle:focus { outline: 2px solid var(--naranja); outline-offset: 2px; }

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s;
}

/* Estado abierto del menú hamburguesa */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  background: var(--azul-avi);
  color: rgba(255,255,255,0.9);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-contact p,
.footer-contact a {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-contact a:hover { color: var(--naranja); }
.footer-contact i { margin-top: 3px; min-width: 16px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.8);
  font-size: 22px;
  transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  color: var(--naranja);
  transform: translateY(-2px);
}

.footer-links h4 {
  color: white;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links ul li a:hover { color: var(--naranja); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--naranja); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* =====================================================
   BOTONES
   ===================================================== */

.btn-cta {
  display: inline-block;
  background: var(--naranja);
  /* Texto oscuro en vez de blanco: blanco sobre este naranja da 2.03:1,
     muy por debajo del mínimo de accesibilidad (4.5:1). #444444 da 4.81:1. */
  color: #444444;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radio-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  text-align: center;
}
.btn-cta:hover {
  background: #e09516;
  /* En hover el naranja es más oscuro: #444444 baja a 3.93:1 (no llega
     al mínimo), así que aquí el texto pasa a #1a1a1a (7.03:1). */
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}
.btn-cta:focus {
  outline: 2px solid var(--azul-avi);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--azul-avi);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 31px;
  border-radius: var(--radio-btn);
  border: 2px solid var(--azul-avi);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--azul-avi);
  color: white;
}

/* =====================================================
   WHATSAPP FLOTANTE
   ===================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.whatsapp-float:focus {
  outline: 2px solid white;
  outline-offset: 3px;
}

/* =====================================================
   PLACEHOLDERS
   ===================================================== */

.img-placeholder {
  background: var(--azul-claro);
  border-radius: var(--radio);
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radio);
}

.img-placeholder::after {
  content: '📷 Imagen próximamente';
  color: var(--azul-avi);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.5;
}

.img-placeholder:has(img)::after {
  display: none;
}

/* .img-circle-placeholder, .video-placeholder y .video-wrapper se
   retiraron en la Fase 5: ya no los usa ninguna página (los vídeos
   pasaron todos al facade de YouTube y las fotos de testimonios
   usan <img> directo). CSS muerto eliminado en la limpieza final. */

/* =====================================================
   TARJETAS
   ===================================================== */

.card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 2.4rem;
  color: var(--teal);
  margin-bottom: 16px;
}

.card h3 {
  color: var(--azul-avi);
  margin-bottom: 12px;
}

.card p {
  color: var(--gris-texto);
  font-size: 15px;
}

/* Grid de tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* =====================================================
   LAYOUT DOS COLUMNAS
   ===================================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.two-col.reverse { }

/* =====================================================
   HERO
   ===================================================== */

.hero {
  background: var(--azul-avi);
  color: white;
  padding: 96px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Círculos decorativos de fondo */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(245,166,35,0.08);
  pointer-events: none;
}

/* Contenido del hero por encima de la onda */
.hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

/* Línea naranja decorativa bajo el título */
.hero h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--naranja);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* Onda SVG de transición */
.hero-wave {
  display: block;
  width: 100%;
  height: 72px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-section {
  background: var(--fondo-suave);
  padding: 64px 0;
  text-align: center;
}

.hero-section h1 {
  color: var(--azul-avi);
  margin-bottom: 20px;
}

.hero-section .hero-subtitle {
  color: var(--gris-texto);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto;
}

/* =====================================================
   BADGES DE FASE
   ===================================================== */

.badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-azul { background: var(--azul-avi); color: white; }
/* Blanco sobre teal da 2.29:1; #1a1a1a da 7.59:1. */
.badge-teal { background: var(--teal); color: #1a1a1a; }
/* Blanco sobre naranja da 2.03:1; #444444 da 4.81:1. */
.badge-naranja { background: var(--naranja); color: #444444; }

/* =====================================================
   TIMELINE DE FASES
   ===================================================== */

.timeline-fases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 48px 0;
  flex-wrap: wrap;
}

.fase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radio);
  min-width: 200px;
  flex: 1;
  max-width: 260px;
}

.fase-item.fase-1 { background: var(--azul-avi); color: white; }
.fase-item.fase-2 { background: var(--teal); color: #1a1a1a; }
.fase-item.fase-3 { background: var(--naranja); color: #444444; }

.fase-item .fase-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.fase-item h3 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.fase-item p {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  margin: 0;
}

.fase-arrow {
  font-size: 2rem;
  color: var(--azul-avi);
  padding: 0 8px;
  font-weight: 700;
}

/* =====================================================
   TIMELINE ORIGEN
   ===================================================== */

.timeline-origen {
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
  margin: 48px 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 280px;
  position: relative;
  padding: 0 16px;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 32px;
  width: 32px;
  height: 2px;
  background: var(--azul-claro);
}

.timeline-step .step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: white;
}

.timeline-step .step-icon.teal { background: var(--teal); }
.timeline-step .step-icon.naranja { background: var(--naranja); }
.timeline-step .step-icon.azul { background: var(--azul-avi); }

.timeline-step h3 {
  color: var(--azul-avi);
  font-size: 16px;
  margin-bottom: 8px;
}

.timeline-step p {
  color: var(--gris-texto);
  font-size: 14px;
  margin: 0;
}

/* =====================================================
   CARRUSEL
   ===================================================== */

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 24px;
}

.carousel-track .img-placeholder {
  flex: 0 0 calc(33.333% - 16px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 18px;
  color: var(--azul-avi);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.carousel-btn:hover {
  background: var(--azul-avi);
  color: white;
  transform: translateY(-50%) scale(1.05);
}
.carousel-btn:focus {
  outline: 2px solid var(--azul-avi);
  outline-offset: 2px;
}
.carousel-prev { left: -24px; }
.carousel-next { right: -24px; }

/* =====================================================
   FORMULARIO DE CONTACTO
   ===================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--gris-texto);
}

.form-group input,
.form-group textarea {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: var(--gris-texto);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--azul-avi);
  box-shadow: 0 0 0 3px rgba(27,79,168,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.form-group.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--azul-avi);
}

.form-group.checkbox label {
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.form-group.checkbox label a {
  color: var(--azul-avi);
  text-decoration: underline;
}

/* Mensajes del formulario */
.form-message {
  padding: 16px 20px;
  border-radius: var(--radio);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  display: none;
}

.form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* =====================================================
   MAPA
   ===================================================== */

.map-wrapper iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radio);
  display: block;
}

/* Bloque alternativo mientras no haya una captura real del mapa */
.map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 420px;
  background: var(--fondo-suave);
  border: 1px solid var(--azul-claro);
  border-radius: var(--radio);
  padding: 32px 24px;
  text-align: center;
}

.map-fallback-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--azul-avi);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.map-fallback-address {
  font-size: 16px;
  color: var(--gris-texto);
  max-width: 280px;
  margin: 0;
}

@media (max-width: 680px) {
  .map-fallback {
    height: 320px;
  }
}

/* =====================================================
   TABLA HORARIO
   ===================================================== */

.horario-wrapper {
  overflow-x: auto;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.horario-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: white;
  border-radius: var(--radio);
  overflow: hidden;
}

.horario-table th {
  background: var(--azul-avi);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 16px 12px;
  text-align: center;
}

.horario-table td {
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--azul-claro);
  vertical-align: top;
}

.horario-table tr:nth-child(even) td { background: var(--fondo-suave); }
.horario-table tr:nth-child(odd) td { background: var(--blanco); }

/* Celda fusionada (p. ej. Lunes 11:15–13:30): centrada en toda
   su altura para que no se vea "vacía" en la mitad inferior. */
.horario-table td[rowspan] {
  vertical-align: middle !important;
  background: var(--blanco) !important;
}

.horario-table .hora-col {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--azul-avi);
  background: var(--azul-claro) !important;
  min-width: 70px;
}

.taller-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.4;
}

.tag-azul { background: var(--azul-claro); color: var(--azul-avi); }
/* #1a8a78 daba 3.79:1 sobre este fondo; #0f766e da 4.89:1. */
.tag-teal { background: #e0f7f4; color: #0f766e; }
/* #b97d1a daba 3.21:1 sobre este fondo; #8a5d13 da 5.27:1. */
.tag-naranja { background: #fff4e0; color: #8a5d13; }
.tag-gris { background: #f3f4f6; color: #666; }

/* =====================================================
   SECCIONES DE TALLERES (mañanas)
   ===================================================== */

.taller-section {
  padding: 64px 0;
}

.taller-section:nth-child(even) {
  background: var(--fondo-suave);
}

.taller-icon-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.taller-icon-title i {
  font-size: 2rem;
  color: var(--teal);
  min-width: 40px;
}

.taller-icon-title h2 {
  color: var(--azul-avi);
}

/* =====================================================
   DOCUMENTOS (TRANSPARENCIA)
   ===================================================== */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doc-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.doc-card i {
  font-size: 3rem;
}

.doc-card h3 {
  color: var(--azul-avi);
}

.doc-card p {
  font-size: 14px;
  color: var(--gris-texto);
  flex: 1;
}

/* =====================================================
   TESTIMONIOS
   ===================================================== */

.testimonio-voluntario {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonio-voluntario blockquote {
  font-style: italic;
  color: var(--gris-texto);
  line-height: 1.7;
  font-size: 15px;
  margin: 12px 0 16px;
  position: relative;
  padding: 0 8px;
}

.testimonio-voluntario blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--azul-claro);
  font-family: Georgia, serif;
  position: absolute;
  top: -12px;
  left: -8px;
  line-height: 1;
}

.testimonio-voluntario .nombre {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--azul-avi);
  font-size: 15px;
}

.testimonio-voluntario .rol {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

/* =====================================================
   ENTIDADES COLABORADORAS
   ===================================================== */

.logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.logo-slot {
  background: var(--fondo-suave);
  border-radius: var(--radio);
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--azul-claro);
}

.logo-slot::after {
  content: 'Logo colaborador';
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--azul-avi);
  opacity: 0.4;
  font-weight: 600;
}

/* =====================================================
   BENEFICIOS (chips)
   ===================================================== */

.beneficios-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.beneficio-chip {
  background: var(--azul-claro);
  color: var(--azul-avi);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* =====================================================
   PÁGINAS LEGALES
   ===================================================== */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px;
}

.legal-content h1 {
  color: var(--azul-avi);
  margin-bottom: 8px;
}

.legal-date {
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 40px;
}

.legal-content h2 {
  color: var(--azul-avi);
  font-size: 1.2rem;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--azul-claro);
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gris-texto);
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1rem;
}

/* =====================================================
   FRASE DESTACADA / QUOTE
   ===================================================== */

.quote-destacada {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--azul-avi);
  text-align: center;
  font-style: italic;
  max-width: 700px;
  margin: 32px auto;
  line-height: 1.4;
}

/* =====================================================
   SECCIÓN MISIÓN / VALORES ICONOS
   ===================================================== */

.icon-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.icon-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.icon-item .icon-box {
  width: 48px;
  height: 48px;
  background: var(--azul-claro);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--azul-avi);
  font-size: 1.2rem;
}

.icon-item h4 {
  color: var(--azul-avi);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.icon-item p {
  font-size: 14px;
  margin: 0;
}

/* =====================================================
   CTA BANNER
   ===================================================== */

.cta-banner {
  background: var(--azul-claro);
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--azul-avi);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--gris-texto);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   VOLUNTARIOS — LISTA DE TAREAS
   ===================================================== */

.tareas-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tarea-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: var(--sombra);
}

.tarea-item i {
  font-size: 1.3rem;
  color: var(--teal);
  min-width: 24px;
}

.tarea-item span {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--gris-texto);
}

/* =====================================================
   RESPONSIVE — NAV TABLET/MÓVIL (≤1024px)
   Con 8 ítems en el menú, "Las Mañanas de AVI" no cabe en
   horizontal a partir de tablet: se activa el hamburguesa antes.
   ===================================================== */

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--azul-avi);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    width: 100%;
  }

  .site-header { position: sticky; }
}

/* =====================================================
   RESPONSIVE — TABLET (≤960px)
   ===================================================== */

@media (max-width: 960px) {
  section { padding: 64px 0; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Las 3 tarjetas de "Otros talleres de la semana" se mantienen en fila
     también en tablet: con 2 columnas, la tercera quedaría sola y descolgada. */
  .otros-talleres-grid { grid-template-columns: repeat(3, 1fr); }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col { gap: 36px; }
  .tareas-list { grid-template-columns: 1fr; }
  .timeline-fases { gap: 12px; }
}

/* =====================================================
   RESPONSIVE — MÓVIL (≤680px)
   ===================================================== */

@media (max-width: 680px) {
  section { padding: 48px 0; }

  /* Layouts */
  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: 1fr; }
  .icon-list { grid-template-columns: 1fr; }
  .timeline-origen { flex-direction: column; align-items: center; }
  .timeline-step { margin-bottom: 36px; }
  .timeline-step:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -28px;
    width: 2px;
    height: 24px;
    transform: translateX(-50%);
  }
  .timeline-fases { flex-direction: column; align-items: center; }
  .fase-arrow { transform: rotate(90deg); }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Carrusel */
  .carousel-track .img-placeholder {
    flex: 0 0 100%;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }

  /* Hero */
  .hero { padding: 64px 0 56px; }
  .hero-subtitle { font-size: 16px; }

  /* Testimonio vídeo */
  .testimonio-video-row {
    flex-direction: column !important;
  }
}

/* =====================================================
   ACCESIBILIDAD — FOCUS
   ===================================================== */

:focus-visible {
  outline: 2px solid var(--naranja);
  outline-offset: 3px;
}

/* =====================================================
   UTILIDADES
   ===================================================== */

.text-center { text-align: center; }
.text-azul { color: var(--azul-avi); }
.text-teal { color: var(--teal); }
.text-naranja { color: var(--naranja); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.section-label {
  display: inline-block;
  background: var(--azul-claro);
  color: var(--azul-avi);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.nota-info {
  background: var(--azul-claro);
  border-left: 4px solid var(--azul-avi);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--gris-texto);
  margin-top: 24px;
  font-style: italic;
}

/* =====================================================
   BLOQUE ORIGEN DE LA ASOCIACIÓN
   ===================================================== */

.origen-grafico {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(27,79,168,0.06), rgba(58,191,163,0.08), rgba(245,166,35,0.06));
  border: 1px solid var(--azul-claro);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 40px 20px 32px;
  height: 100%;
  min-height: 300px;
  gap: 24px;
}

.origen-pasos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
}

.origen-paso {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.origen-circulo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.origen-circulo svg {
  width: 44px;
  height: 44px;
}

.origen-circulo img {
  width: 52px;
  height: auto;
}

.origen-etiqueta {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--azul-avi);
  margin-bottom: 4px;
}

.origen-desc {
  font-size: 12px;
  color: var(--gris-texto);
  margin: 0;
  line-height: 1.5;
  max-width: 88px;
}

.origen-arrow {
  display: flex;
  align-items: center;
  padding-bottom: 44px;
  flex-shrink: 0;
  color: var(--azul-avi);
  opacity: 0.3;
}

.origen-arrow svg {
  width: 44px;
  height: 20px;
}

.origen-anyo {
  display: inline-block;
  background: var(--azul-avi);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 5px 18px;
  border-radius: 20px;
}

@media (max-width: 680px) {
  .origen-pasos {
    flex-direction: column;
    gap: 0;
  }

  .origen-arrow {
    padding-bottom: 0;
    transform: rotate(90deg);
    padding: 2px 0;
  }

  .origen-circulo {
    width: 76px;
    height: 76px;
  }

  .origen-circulo svg { width: 38px; height: 38px; }
  .origen-circulo img { width: 44px; }
}

/* =====================================================
   FOOTER — BLOQUE "COLABORA" (LOGOS INSTITUCIONALES)
   Fase 1 (corregido): fila de logos de entidades que respaldan
   a AVI. Cada logo va en su propia caja blanca ajustada (no un
   bloque compartido gigante), con max-height + object-fit para
   que nunca se muestren a tamaño natural. Todo centrado, con el
   mismo contenedor/padding lateral que el resto de la página.
   ===================================================== */

.footer-colabora {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-colabora-title {
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0;
}

.footer-colabora-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
}

.footer-colabora-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 8px;
  border-radius: 8px;
  line-height: 0;
}

.footer-colabora-logo img {
  max-height: 45px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 680px) {
  .footer-colabora-logo img {
    max-height: 35px;
  }
}

/* =====================================================
   BOTÓN "VER HORARIO COMPLETO" (Actividades)
   En móvil, esta tarjeta cae justo en la esquina inferior
   derecha, donde vive el WhatsApp flotante (60px + 28px de
   margen). Se reserva espacio para que no se solapen.
   ===================================================== */

@media (max-width: 680px) {
  .btn-ver-horario {
    margin-bottom: 100px;
  }
}

/* =====================================================
   FASE 2 — INICIO: IMAGEN PRINCIPAL (HERO)
   ===================================================== */

.hero-image-wrapper {
  padding-top: 32px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* =====================================================
   FASE 2 — INICIO: NUESTRO PROGRAMA (sin imagen, a una
   columna). Ancho limitado a ~70-75 caracteres por línea
   para mantener un buen ritmo de lectura.
   ===================================================== */

.programa-texto {
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================================
   FASE 2 — INICIO: PRINCIPIOS Y VALORES (imagen collage)
   ===================================================== */

.principios-collage {
  width: 100%;
  height: auto;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* =====================================================
   FASE 2 — INICIO: GALERÍA ROTATIVA (carrusel existente)
   2 fotos visibles en tablet. Rango explícito (no solo
   max-width) para no chocar con la regla de móvil, que
   sigue mostrando 1 sola foto a ≤680px.
   ===================================================== */

@media (min-width: 681px) and (max-width: 1024px) {
  .carousel-track .img-placeholder {
    flex: 0 0 calc(50% - 12px);
  }
}

/* =====================================================
   FASE 2 — INICIO: VÍDEO FINAL (facade de YouTube)
   Muestra la miniatura y carga el iframe solo al hacer
   clic, con dominio youtube-nocookie.com para no cargar
   cookies de YouTube hasta que la persona lo pida.
   ===================================================== */

.youtube-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.youtube-facade iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.youtube-facade-play {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: var(--azul-claro);
  display: block;
}

.youtube-facade-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.youtube-facade-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(27,79,168,0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: background 0.2s, transform 0.2s;
}

.youtube-facade-play:hover .youtube-facade-icon,
.youtube-facade-play:focus-visible .youtube-facade-icon {
  background: var(--naranja);
  transform: translate(-50%, -50%) scale(1.08);
}

.youtube-facade-play:focus-visible {
  outline: 2px solid var(--naranja);
  outline-offset: 3px;
}

/* =====================================================
   FASE 3 — ACTIVIDADES: TARJETAS HORIZONTALES CON IMAGEN
   Cada actividad lleva una imagen pequeña/mediana al lado
   del contenido (icono + título + texto + chips, igual
   que las tarjetas .card de siempre). Los bloques sin foto
   usan .actividad-visual con degradado + icono SVG, mismas
   proporciones que los que sí tienen foto.
   ===================================================== */

.actividades-lista {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.actividad-item {
  display: flex;
  gap: 24px;
  align-items: stretch;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.actividad-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.actividad-media {
  flex: 0 0 220px;
  border-radius: 12px;
  overflow: hidden;
}

.actividad-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.actividad-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: linear-gradient(135deg, var(--azul-avi), var(--teal));
  border: 1px solid rgba(255,255,255,0.25);
}

.actividad-visual::after {
  content: none;
}

.actividad-contenido {
  flex: 1;
  min-width: 0;
}

@media (max-width: 680px) {
  .actividad-item {
    flex-direction: column;
    padding: 20px;
  }

  .actividad-media {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .actividad-media img {
    min-height: 0;
  }

  .actividad-visual {
    min-height: 0;
  }
}

/* .taller-visual se usaba en Las Mañanas de AVI para los talleres
   sin foto (Fase 3). En la Fase 5 esos tres talleres se agruparon
   en un bloque compacto de tarjetas sin hueco de imagen, así que
   la clase ya no se usa en ningún HTML. CSS muerto eliminado. */

/* =====================================================
   FASE 3 — LAS MAÑANAS DE AVI: HORARIO NUEVO
   La franja de desayuno se distingue con un color propio
   (.tag-descanso / .fila-descanso) en toda la tabla. En
   móvil (≤680px) la tabla se sustituye por tarjetas
   apiladas por día para evitar el scroll horizontal.
   ===================================================== */

.tag-descanso {
  background: #FFE8C2;
  color: #8a5a10;
}

.tag-descanso i {
  margin-right: 4px;
}

.horario-table .fila-descanso td {
  background: #FFF4E0 !important;
}

.horario-table .fila-descanso .hora-col {
  background: #FFE8C2 !important;
  color: #8a5a10;
}

/* Tarjetas por día (solo móvil) */
.horario-dias-movil {
  display: none;
}

.horario-dia {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 20px;
  margin-bottom: 16px;
}

.horario-dia:last-child {
  margin-bottom: 0;
}

.horario-dia-nombre {
  color: var(--azul-avi);
  margin-bottom: 12px;
}

.horario-franja {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--azul-claro);
}

.horario-franja:last-child {
  border-bottom: none;
}

.horario-hora {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--azul-avi);
  flex-shrink: 0;
}

.horario-franja-descanso {
  background: #FFF4E0;
  margin: 0 -4px;
  padding: 10px 4px;
  border-radius: 8px;
}

.horario-franja-descanso .horario-hora {
  color: #8a5a10;
}

@media (max-width: 768px) {
  .horario-wrapper {
    display: none;
  }

  .horario-dias-movil {
    display: block;
  }
}

/* =====================================================
   FASE 4 — COLABORA: TARJETAS "¿QUÉ ME LLEVO?" (5)
   Variante flex de .cards-grid para un número de tarjetas
   que no encaja en una cuadrícula perfecta: 3 arriba + 2
   centradas abajo en escritorio, sin ninguna suelta.
   ===================================================== */

.cards-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.cards-flex > .card {
  flex: 0 0 calc(33.333% - 16px);
}

@media (max-width: 960px) {
  .cards-flex > .card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 680px) {
  .cards-flex > .card {
    flex: 0 0 100%;
  }
}

/* =====================================================
   FASE 4 — COLABORA: LOGOS DE ENTIDADES COLABORADORAS
   Los PNG originales vienen en proporciones muy distintas
   (algunos opacos, sin canal alfa) — se normalizan con
   max-height + object-fit, sin aplicar ningún filtro de
   color que pueda romper los que no tienen transparencia.
   ===================================================== */

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fondo-suave);
  border-radius: var(--radio);
  padding: 16px;
  min-height: 100px;
}

.logo-item img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* =====================================================
   FASE 4 — TRANSPARENCIA: BLOQUE DE 2 TARJETAS (CUENTAS)
   Modificador de .docs-grid para cuando solo hay 2
   documentos (cuentas anuales), centrado y sin la columna
   vacía que dejaría la cuadrícula de 3 columnas de base.
   A tablet (2 col) y móvil (1 col) ya coincide con
   .docs-grid, así que no hace falta repetir esos niveles.
   ===================================================== */

.docs-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   FASE 5 — PÁGINAS LEGALES: SUBTÍTULOS Y TABLAS
   Los textos definitivos de Aviso legal, Privacidad y
   Cookies traen subapartados (h3) y tablas que .legal-content
   no tenía estilizados todavía.
   ===================================================== */

.legal-content h3 {
  color: var(--azul-avi);
  font-size: 1rem;
  margin: 24px 0 8px;
}

.legal-table-wrapper {
  overflow-x: auto;
  margin: 16px 0 24px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}

.legal-content th,
.legal-content td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--azul-claro);
  vertical-align: top;
}

.legal-content th {
  background: var(--fondo-suave);
  color: var(--azul-avi);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.legal-content table tr:nth-child(even) td {
  background: var(--fondo-suave);
}

.legal-content strong {
  color: var(--gris-texto);
  font-weight: 700;
}

/* =====================================================
   FASE 5 — BANNER DE COOKIES
   Barra fija inferior, discreta. Cuando está visible,
   sube el botón de WhatsApp (vía la variable
   --cookie-banner-height) para que no se solapen.
   ===================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  background: var(--azul-avi);
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text {
  flex: 1 1 320px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner-text a {
  color: white;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner-actions button {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: var(--radio-btn);
  cursor: pointer;
  border: 2px solid white;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cookie-banner-accept {
  background: var(--naranja);
  border-color: var(--naranja);
  /* Blanco sobre naranja da 2.03:1; #444444 da 4.81:1. */
  color: #444444;
}

.cookie-banner-accept:hover {
  background: #e09516;
  border-color: #e09516;
  /* En hover el naranja es más oscuro: #444444 baja a 3.93:1, así que
     aquí el texto pasa a #1a1a1a (7.03:1). */
  color: #1a1a1a;
  transform: translateY(-1px);
}

.cookie-banner-reject {
  background: transparent;
  color: white;
}

.cookie-banner-reject:hover {
  background: rgba(255,255,255,0.15);
}

.cookie-banner button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

body.cookie-banner-open .whatsapp-float {
  bottom: calc(var(--cookie-banner-height, 90px) + 16px);
}

@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px;
  }

  .cookie-banner-actions {
    justify-content: center;
  }
}

/* =====================================================
   FASE 5 — VÍDEO YOUTUBE: AVISO SI SE RECHAZAN COOKIES
   Se superpone a la miniatura ya cargada, sin quitarla.
   ===================================================== */

.youtube-facade-play--blocked {
  cursor: not-allowed;
}

.youtube-facade-notice {
  position: absolute;
  inset: 0;
  background: rgba(27,79,168,0.9);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
  z-index: 1;
}

.youtube-facade-notice p {
  font-size: 14px;
  margin: 0;
  max-width: 320px;
}

.youtube-facade-notice a {
  color: white;
  font-weight: 600;
  text-decoration: underline;
}

.youtube-facade-notice a:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

/* =====================================================
   FASE 5 — FORMULARIO DE CONTACTO: HONEYPOT ANTISPAM
   Oculto de forma visual (no display:none ni type="hidden",
   que algunos bots detectan y evitan), pero fuera del flujo
   de teclado y de lectores de pantalla.
   ===================================================== */

.form-group-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
