/* =========================================================
   ACORDEÓN DEL PROGRAMA - ESTILO TECNIA 2026
   Aislado para evitar conflictos con otros estilos.
========================================================= */

/* --- CONTENEDOR PRINCIPAL --- */
.programa-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 55px auto 0;
  padding: 0 16px; /* Margen de seguridad en móviles */
  box-sizing: border-box;
}

/* --- TARJETA BASE (Cerrada) --- */
.programa-card {
  position: relative;
  background: linear-gradient(160deg, rgba(7, 61, 79, 0.95) 0%, rgba(0, 37, 68, 1) 55%, rgba(0, 27, 49, 1) 100%);
  border-radius: 24px;
  overflow: hidden;
  min-height: 85px; /* Altura cuando está cerrada */
  transition: min-height 0.5s cubic-bezier(.22, .68, 0, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  isolation: isolate;
}

/* --- TARJETA ABIERTA --- */
.programa-card.is-open {
  min-height: auto; /* Crece automáticamente según el contenido */
  box-shadow: 0 10px 30px rgba(0, 185, 159, 0.15);
}

/* --- BORDE ANIMADO (Efecto de luz giratoria) --- */
.programa-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg,
    rgba(0, 216, 208, 0.4) 320deg,
    #00e7dc 340deg,
    #d9ff25 355deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: programaBorderSpin 5s linear infinite;
}

@keyframes programaBorderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- ETIQUETA (BLOQUE 01, 02, etc.) --- */
.programa-pill {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1px solid var(--lime, #acd819);
  border-radius: 999px;
  background: rgba(172, 216, 25, 0.18);
  font-family: "Sora", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

/* --- BOTÓN INVISIBLE (Hace clicable toda la tarjeta) --- */
.programa-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* --- SIGNO + / − --- */
.programa-btn::before {
  content: "+";
  position: absolute;
  top: 18px;
  right: 28px;
  color: var(--lime, #acd819);
  font-size: 32px;
  font-weight: 200;
  line-height: 1;
  transition: transform 0.3s ease;
}

.programa-card.is-open .programa-btn::before {
  content: "−";
  transform: rotate(180deg);
}

/* --- CONTENIDO INTERNO (Oculto por defecto) --- */
.programa-content {
  position: relative;
  z-index: 3;
  padding: 90px 32px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

/* --- CONTENIDO VISIBLE CUANDO ESTÁ ABIERTO --- */
.programa-card.is-open .programa-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   TIPOGRAFÍA FORZADA (Para que no herede estilos feos)
   Usamos !important para asegurar que se vea bien siempre.
========================================================= */

/* Título del bloque (Ej: Economía Circular...) */
.programa-content h3 {
  margin: 0 0 20px 0 !important;
  color: #fff !important;
  font-family: "Sora", Arial, sans-serif !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
}

/* Lista principal */
.programa-content ul {
  margin: 0 !important;
  padding: 0 0 0 20px !important;
  list-style: disc !important;
  color: #fff !important;
}

.programa-content ul li {
  margin-bottom: 10px !important;
  font-family: "Sora", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  font-weight: 300 !important;
  color: #fff !important;
}

/* Sub-lista (Ej: Integrantes del Panel 1) */
.programa-content ul ul {
  margin: 10px 0 8px !important;
  padding-left: 22px !important;
  list-style: circle !important;
}

.programa-content ul ul li {
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 6px !important;
}

/* =========================================================
   RESPONSIVE (Móvil)
========================================================= */
@media (max-width: 767px) {
  .programa-accordion {
    margin-top: 35px;
    gap: 12px;
  }

  .programa-card {
    border-radius: 20px;
    min-height: 75px;
  }

  .programa-pill {
    top: 18px;
    left: 20px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .programa-btn::before {
    top: 16px;
    right: 20px;
    font-size: 28px;
  }

  .programa-content {
    padding: 80px 20px 25px;
  }

  .programa-content h3 {
    font-size: 22px !important;
    margin-bottom: 14px !important;
  }

  .programa-content ul li {
    font-size: 14px !important;
  }

  .programa-content ul ul li {
    font-size: 13px !important;
  }
}

/* =========================================================
   ACCESIBILIDAD (Para usuarios que prefieren menos animaciones)
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .programa-card, 
  .programa-content, 
  .programa-border {
    transition: none !important;
    animation: none !important;
  }
}
/* =========================================================
   TARJETAS DE TEMAS / EJES TEMÁTICOS - ESTILO TECNIA 2026
   Clases renombradas con prefijo "temas-" para evitar conflictos.
=========================================================

/* --- CONTENEDOR (GRID DE 5 COLUMNAS) --- 
.temas-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1312px;
  margin: 55px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

/* --- TARJETA BASE --- 
.temas-card {
  position: relative;
  min-height: 260px;
  padding: 0;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    160deg,
    rgba(7, 61, 79, 0.85) 0%,
    rgba(0, 37, 68, 0.95) 55%,
    rgba(0, 27, 49, 1) 100%
  );
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 400ms ease, box-shadow 400ms ease;
  display: flex;
  flex-direction: column;
}

.temas-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(0, 185, 159, 0.18);
}

/* --- BORDE ANIMADO (Luz giratoria) --- 
.temas-border {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg,
    rgba(0, 216, 208, 0) 310deg,
    rgba(0, 216, 208, 0.5) 322deg,
    #00e7dc 334deg,
    #ffffff 342deg,
    #d9ff25 350deg,
    rgba(172, 216, 25, 0.55) 356deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: temasBorderSpin 5s linear infinite;
}

@keyframes temasBorderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- ETIQUETA (PANEL 1, 2, ...) --- 
.temas-pill {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--lime, #acd819);
  border-radius: 999px;
  background: rgba(172, 216, 25, 0.18);
  font-family: "Sora", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

/* --- CONTENIDO --- 
.temas-content {
  position: relative;
  z-index: 3;
  padding: 110px 26px 32px;
  flex: 1;
  box-sizing: border-box;
}

.temas-content h3 {
  margin: 0 !important;
  color: #fff !important;
  font-family: "Sora", Arial, sans-serif !important;
  font-size: 20px !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere !important;
}

/* =========================================================
   RESPONSIVE
========================================================= 

/* TABLET (≤1024px): 3 columnas */
@media (max-width: 1024px) {
  .temas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .temas-card {
    min-height: 220px;
  }

  .temas-content h3 {
    font-size: 18px !important;
  }
}

/* MÓVIL (≤767px): 1 columna */
@media (max-width: 767px) {
  .temas-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 40px;
  }

  .temas-card {
    min-height: auto;
  }

  .temas-pill {
    top: 20px;
    left: 22px;
    padding: 7px 14px;
    font-size: 12px;
  }

  .temas-content {
    padding: 80px 22px 26px;
  }

  .temas-content h3 {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= 
@media (prefers-reduced-motion: reduce) {
  .temas-card {
    transition: none !important;
  }

  .temas-border {
    animation: none !important;
  }
}

/* =========================================================
   FIX FINAL: REDUCIR ANCHO DEL CARRUSEL (con márgenes laterales)
   Va al final para sobrescribir las reglas anteriores.
========================================================= */

.partner-carousel {
    max-width: 1100px !important;   /* ← Ancho máximo del carrusel */
    margin-left: auto !important;   /* ← Centrado a la izquierda */
    margin-right: auto !important;  /* ← Centrado a la derecha */
    padding-left: 40px !important;  /* ← Aire a la izquierda */
    padding-right: 40px !important; /* ← Aire a la derecha */
    box-sizing: border-box !important;
}

.partner-carousel-single {
    max-width: 1100px !important;   /* ← Mismo ancho máximo */
    margin-left: auto !important;   /* ← Centrado */
    margin-right: auto !important;  /* ← Centrado */
    padding-left: 40px !important;  /* ← Aire a la izquierda */
    padding-right: 40px !important; /* ← Aire a la derecha */
    box-sizing: border-box !important;
}
/* =========================================================
   TARJETAS DE PANELES / EJES TEMÁTICOS - ESTILO TECNIA 2026
========================================================= */

/* --- CONTENEDOR (GRID DE 5 COLUMNAS) --- */
.temas-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1312px;
  margin: 55px auto 0;
  padding: 0 16px;
  box-sizing: border-box;
}

/* --- TARJETA BASE --- */
.temas-card {
  position: relative;
  min-height: 260px;
  padding: 0;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    160deg,
    rgba(7, 61, 79, 0.85) 0%,
    rgba(0, 37, 68, 0.95) 55%,
    rgba(0, 27, 49, 1) 100%
  );
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 400ms ease, box-shadow 400ms ease;
  display: flex;
  flex-direction: column;
}

.temas-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(0, 185, 159, 0.18);
}

/* --- BORDE ANIMADO (Luz giratoria) --- */
.temas-border {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg,
    rgba(0, 216, 208, 0) 310deg,
    rgba(0, 216, 208, 0.5) 322deg,
    #00e7dc 334deg,
    #ffffff 342deg,
    #d9ff25 350deg,
    rgba(172, 216, 25, 0.55) 356deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: temasBorderSpin 5s linear infinite;
}

@keyframes temasBorderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- ETIQUETA (PANEL 1, 2, ...) --- */
.temas-pill {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--lime, #acd819);
  border-radius: 999px;
  background: rgba(172, 216, 25, 0.18);
  font-family: "Sora", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

/* --- CONTENIDO --- */
.temas-content {
  position: relative;
  z-index: 3;
  padding: 110px 26px 32px;
  flex: 1;
  box-sizing: border-box;
}

.temas-content h3 {
  margin: 0 !important;
  color: #fff !important;
  font-family: "Sora", Arial, sans-serif !important;
  font-size: 20px !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* TABLET (≤1024px): 3 columnas */
@media (max-width: 1024px) {
  .temas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .temas-card {
    min-height: 220px;
  }

  .temas-content h3 {
    font-size: 18px !important;
  }
}

/* MÓVIL (≤767px): 1 columna */
@media (max-width: 767px) {
  .temas-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 40px;
  }

  .temas-card {
    min-height: auto;
  }

  .temas-pill {
    top: 20px;
    left: 22px;
    padding: 7px 14px;
    font-size: 12px;
  }

  .temas-content {
    padding: 80px 22px 26px;
  }

  .temas-content h3 {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  .temas-card {
    transition: none !important;
  }

  .temas-border {
    animation: none !important;
  }
}
/* =========================================================
   FIX CARRUSEL ALIADOS — ANCHO REDUCIDO CON MÁRGENES
   Versión reforzada para producción (Hostinger).
========================================================= */

/* Contenedor con animación (apoyo, auspicio, aliados, media, participan) */
.partner-section .partner-carousel,
.partner-carousel {
  max-width: 1100px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Fila simple sin animación (Organiza) */
.partner-section .partner-carousel-single,
.partner-carousel-single {
  max-width: 1100px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* --- TABLET --- */
@media (max-width: 1024px) {
  .partner-section .partner-carousel,
  .partner-carousel,
  .partner-section .partner-carousel-single,
  .partner-carousel-single {
    max-width: 850px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
}

/* --- MÓVIL --- */
@media (max-width: 767px) {
  .partner-section .partner-carousel,
  .partner-carousel,
  .partner-section .partner-carousel-single,
  .partner-carousel-single {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

