/* =========================================================
   JULIO.CSS — PANELES TEMÁTICOS TECNIA 2026
========================================================= */

.julio-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1312px;
  margin: 60px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.julio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 0;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    155deg,
    rgba(0, 216, 208, 0.12) 0%,
    rgba(7, 61, 79, 0.90) 35%,
    rgba(0, 37, 68, 0.98) 70%,
    rgba(0, 20, 38, 1) 100%
  );
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1), box-shadow 500ms ease;
}

.julio-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 25px 55px rgba(0, 0, 0, 0.45),
    0 0 35px rgba(0, 216, 208, 0.25);
}

.julio-border {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(0, 216, 208, 0.3) 310deg,
    #00e7dc 335deg,
    #ffffff 345deg,
    #d9ff25 352deg,
    rgba(172, 216, 25, 0.4) 358deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: julioBorderSpin 6s linear infinite;
}

@keyframes julioBorderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.julio-pill {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(172, 216, 25, 0.75);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(172, 216, 25, 0.22) 0%, rgba(0, 216, 208, 0.15) 100%);
  font-family: "Sora", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(172, 216, 25, 0.2);
}

.julio-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  padding: 90px 26px 30px;
  box-sizing: border-box;
}

.julio-content h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: "Sora", Arial, sans-serif !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.julio-content h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e7dc 0%, #d9ff25 100%);
  transition: width 500ms cubic-bezier(.22, 1, .36, 1);
}

.julio-card:hover .julio-content h3::after {
  width: 80px;
}

@media (max-width: 1024px) {
  .julio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 50px;
  }
  .julio-card { min-height: 250px; }
  .julio-content h3 { font-size: 18px !important; }
}

@media (max-width: 767px) {
  .julio-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 40px;
    padding: 0 16px;
  }
  .julio-card { min-height: 200px; border-radius: 22px; }
  .julio-pill { top: 20px; left: 20px; padding: 8px 16px; font-size: 11px; }
  .julio-content { padding: 80px 22px 24px; }
  .julio-content h3 { font-size: 18px !important; line-height: 1.3 !important; }
  .julio-content h3::after { margin-top: 12px; }
}

@media (max-width: 380px) {
  .julio-card { min-height: 180px; }
  .julio-content h3 { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .julio-card { transition: none !important; }
  .julio-border { animation: none !important; }
}

/*FOTOS*/
/* =========================================================
    SPEAKERS — RESPONSIVE MÓVIL (1 POR FILA)
   Va en julio.css para no chocar con otros estilos.
========================================================= */

/* =========================================================
  C POR DEFECTO: Grid multi-columna
========================================================= */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1312px;
  margin: 60px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
  justify-content: center;
}

/* =========================================================
  TABLET (≤900px): 2 columnas
========================================================= */
@media (max-width: 900px) {
  .speaker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 640px;
    padding: 0 18px;
  }
}

/* =========================================================
VIL (≤767px): 1 SOLA COLUMNA
========================================================= */
@media (max-width: 767px) {
  .speaker-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 40px auto 0 !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }

  /* Tarjeta del speaker */
  .speaker-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 18px !important;
    box-sizing: border-box !important;
  }

  /* Foto del speaker */
  .speaker-photo-wrap {
    width: 100% !important;
    height: 380px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  .speaker-photo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
  }

  /* Nombre del speaker */
  .speaker-card h3 {
    font-size: 22px !important;
    line-height: 1.15 !important;
    margin: 16px 0 6px !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* Quitar los <br> forzados del nombre en móvil */
  .speaker-card h3 br {
    display: none !important;
  }

  /* País */
  .speaker-card p {
    font-size: 14px !important;
    margin: 0 !important;
  }
}

/* =========================================================
    MÓVIL PEQUEÑO (≤420px): Ajustes finos
========================================================= */
@media (max-width: 420px) {
  .speaker-grid {
    padding: 0 14px !important;
    gap: 18px !important;
  }

  .speaker-card {
    padding: 14px !important;
  }

  .speaker-photo-wrap {
    height: 340px !important;
  }

  .speaker-card h3 {
    font-size: 20px !important;
  }

  .speaker-card p {
    font-size: 13px !important;
  }
}

/* =========================================================
   TÍTULOS DEL PROGRAMA — Todos en verde
========================================================= */
.programa-accordion .programa-content h3 {
  color: #d9ff25 !important; /* Verde lima TECNIA */
}
/**/
/* =========================================================
   CARRUSEL "ORGANIZA" — Centrar la tarjeta única
========================================================= */
.partner-carousel-single {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box !important;
}

.partner-carousel-single .partner-track {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  animation: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

.partner-carousel-single .partner-card {
  margin-right: 0 !important;
  margin-left: 0 !important;
  margin: 0 auto !important;
}

/* =========================================================
   TÍTULO "Conectaremos con las ideas" — Responsive
========================================================= */

.numbers-title {
  font-size: clamp(22px, 3.5vw, 42px) !important;
  line-height: 1.2 !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 16px !important;
  text-align: center !important;
  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
}

/* El <br> se oculta en móvil para que el texto fluya */
@media (max-width: 767px) {
  .numbers-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    padding: 0 14px !important;
  }

  .numbers-title br {
    display: none !important;
  }
}

/* Móvil pequeño */
@media (max-width: 420px) {
  .numbers-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    padding: 0 12px !important;
  }
}

/**/
/* =========================================================
   TÍTULOS data-title — Con tamaño controlado y sin cortes
========================================================= */

/* Título dentro del MODAL */
#tecniaModalTitle {
  font-size: clamp(18px, 2vw, 28px) !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

/* Título dentro de cada tarjeta del ACORDEÓN (no se corta) */
.tecnia-history-info h3 {
  font-size: clamp(13px, 1.1vw, 16px) !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
}

/* Móvil: un poco más chico para que quepa bien */
@media (max-width: 767px) {
  #tecniaModalTitle {
    font-size: 18px !important;
    line-height: 1 !important;
  }
  .tecnia-history-info h3 {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}

/* Móvil muy pequeño */
@media (max-width: 420px) {
  #tecniaModalTitle {
    font-size: 13px !important;
  }
  .tecnia-history-info h3 {
    font-size: 10px !important;
  }
}
/**/
/* =========================================================
   LOGO "ORGANIZA" — Más grande y centrado
========================================================= */

/* Contenedor: centra la tarjeta */
.partner-carousel-single {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 10px 40px !important;
  box-sizing: border-box !important;
}

/* Track: sin animación, centrado */
.partner-carousel-single .partner-track {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  animation: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

/* Tarjeta del organizador: más ancha y alta */
.partner-carousel-single .partner-card.organizer-card {
  flex: 0 0 auto !important;
  width: 380px !important;         /* ← Ancho de la tarjeta */
  height: 380px !important;        /* ← Alto de la tarjeta */
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Caja del logo: ocupa toda la tarjeta y centra la imagen */
.partner-carousel-single .organizer-card .partner-logo {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Imagen: grande, centrada y sin deformar */
.partner-carousel-single .organizer-card .partner-logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 340px !important;    /* ← Tamaño máximo del logo */
  max-height: 340px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Línea decorativa debajo (opcional, ajustada al nuevo tamaño) */
.partner-carousel-single .organizer-card .partner-line {
  display: none !important;
}

/* =========================================================
    MÓVIL: reducir tamaño del logo pero mantener centrado
========================================================= */
@media (max-width: 767px) {
  .partner-carousel-single {
    padding: 10px 20px !important;
  }

  .partner-carousel-single .partner-card.organizer-card {
    width: 260px !important;
    height: 260px !important;
  }

  .partner-carousel-single .organizer-card .partner-logo img {
    max-width: 220px !important;
    max-height: 220px !important;
  }
}

/* =========================================================
   VOCES.CSS — Tarjetas de Speakers TECNIA 2026
   CSS exclusivo para la sección de speakers.
   Layout: 3 arriba + 2 centradas abajo (PC) · 1 por fila (móvil)
========================================================= */

/* =========================================================
   GRID DE SPEAKERS
   Usa 6 columnas internas para poder centrar las 2 de abajo
========================================================= */
.voces-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Las primeras 3 tarjetas ocupan 2 columnas cada una (fila 1) */
.voces-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    155deg,
    rgba(0, 216, 208, 0.08) 0%,
    rgba(7, 61, 79, 0.85) 35%,
    rgba(0, 37, 68, 0.98) 70%,
    rgba(0, 20, 38, 1) 100%
  );
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1), box-shadow 500ms ease;
}

.voces-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(0, 216, 208, 0.22);
}



/* =========================================================
   BORDE DE LUZ ANIMADO
========================================================= */
.voces-border {
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(0, 216, 208, 0.3) 310deg,
    #00e7dc 335deg,
    #ffffff 345deg,
    #d9ff25 352deg,
    rgba(172, 216, 25, 0.4) 358deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: vocesBorderSpin 6s linear infinite;
}

@keyframes vocesBorderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =========================================================
   FOTO DEL SPEAKER
========================================================= */
.voces-photo-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #001a2e;
}

.voces-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 800ms cubic-bezier(.22, 1, .36, 1);
}

.voces-card:hover .voces-photo {
  transform: scale(1.06);
}

/* =========================================================
   NOMBRE Y PAÍS
========================================================= */
.voces-card h3 {
  position: relative;
  z-index: 3;
  margin: 22px 24px 6px !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: "Sora", Arial, sans-serif !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
}

.voces-card p {
  position: relative;
  z-index: 3;
  margin: 0 24px 24px !important;
  padding: 0 !important;
  color: #d9ff25 !important;
  font-family: "Sora", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* =========================================================
   📱 TABLET (≤1024px): 2 columnas
========================================================= */
@media (max-width: 1024px) {
  .voces-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .voces-card,
  .voces-card:nth-child(4),
  .voces-card:nth-child(5) {
    grid-column: auto;
  }

  .voces-photo-wrap {
    height: 300px;
  }
}

/* =========================================================
   📱 MÓVIL (≤767px): 1 por fila
========================================================= */
@media (max-width: 767px) {
  .voces-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    padding: 0 16px;
  }

  .voces-card,
  .voces-card:nth-child(4),
  .voces-card:nth-child(5) {
    grid-column: auto;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .voces-photo-wrap {
    height: 380px;
  }

  .voces-card h3 {
    font-size: 22px !important;
    margin: 18px 20px 6px !important;
  }

  .voces-card h3 br {
    display: none !important;
  }

  .voces-card p {
    margin: 0 20px 20px !important;
    font-size: 12px !important;
  }
}

/* Móvil pequeño */
@media (max-width: 420px) {
  .voces-photo-wrap {
    height: 340px;
  }

  .voces-card h3 {
    font-size: 20px !important;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .voces-card,
  .voces-photo {
    transition: none !important;
  }

  .voces-border {
    animation: none !important;
  }
}