:root{
  --primary:#d94b3f;
  --bg:white;
  --muted:#6c757d;
  --max-width:1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin:0;
  color:#222;
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ---------- HERO HEADER ---------- */
.hero-header {
  background: url("../img/fondo-header.jpg") center center/cover no-repeat;
  padding: 5rem 1rem; /* espacio arriba y abajo */
  display: flex;
  align-items: center;
}

/* Logos superiores (al inicio del hero) */
.hero-top-logos {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem; /* separación con los textos */
  justify-content: flex-start; /* alineados a la izquierda en desktop */
}

.hero-top-logos .hero-logo {
  max-height: 30px; /* tamaño ajustable */
  transition: transform 0.3s ease;
}

.hero-top-logos .hero-logo:hover {
  transform: scale(1.1);
}

.hero-header .hero-text {
  display: block;
}

/* TITULOS — Inter */
.hero-title-light { 
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 3rem;
  color: white;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title-bold { 
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: white;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

/* SUBTÍTULOS — Soleil */
.hero-date { 
  font-family: 'soleil', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 1.8rem;
  text-transform: lowercase;
  display: block;
  margin-bottom: 0.5rem;
}

.hero-location { 
  font-family: 'soleil', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #fcf7cd;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

/* BOTONES — Soleil */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-buttons .btn {
  padding: 1rem 2.5rem;
  font-family: 'soleil', sans-serif;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

/* Botón Ver suplemento */
.btn-suplemento {
  background-color: #05a49e;
  color: #fcf7cd;
  border: none;
}
.btn-suplemento:hover {
  background-color: #037C77;
  color: #fcf7cd;
}

/* Botón Consulta el programa */
.btn-programa {
  background-color: #fcf7cd;
  color: #173754;
  border: none;
}
.btn-programa:hover {
  background-color: #fabe4b;
  color: #173754;
}

/* ---------- HERO SPONSORS ---------- */
.hero-sponsors {
  margin-top: 5rem; /* más espacio entre botones y logos */
  padding-left: 0;
  padding-right: 0;
}

/* Texto "Con el patrocinio de:" / "Colabora:" */
.sponsor-text {
  font-family: 'soleil', sans-serif;
  font-weight: 300;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

/* Contenedor de logos */
.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* logos alineados a la izquierda */
  gap: 2.5rem; /* separación entre logos */
  margin-bottom: 2rem;
  padding-left: 1rem;
}

/* Logos */
.sponsor-logo {
  max-height: 50px;
  transition: transform 0.3s ease;
}

.sponsor-logo:hover {
  transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 991px){

    .hero-top-logos {
    justify-content: center; /* centra los logos en móvil */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .hero-top-logos .hero-logo { max-height: 50px; }
  /* TITULOS */
  .hero-title-light { font-size: 1.75rem; }
  .hero-title-bold { font-size: 2rem; margin-bottom: 1.5rem; }
  .hero-date { font-size: 1rem; margin-bottom: 0.5rem; }
  .hero-location { font-size: 0.95rem; margin-bottom: 1.5rem; }

  /* BOTONES centrados y uno al lado del otro */
  .hero-buttons { 
    justify-content: center; 
    flex-wrap: nowrap; 
  }
  .hero-buttons .btn { 
    padding: 0.85rem 2rem; 
    font-size: 0.95rem; 
  }

  /* HERO SPONSORS responsive */
  .hero-sponsors {
    margin-top: 4rem;
    text-align: center; /* centra los textos */
  }
  .sponsor-text {
    font-size: 0.85rem;
    text-align: center; /* centra los textos */
  }
  .sponsor-logos {
    gap: 2rem;
    justify-content: center; /* centra los logos */
    padding-left: 0.5rem;
  }
  .sponsor-logo { max-height: 40px; }
}



/* ---------- SECCIÓN SUPLEMENTO ---------- */
.suplemento-section {
  background-color: white; /* color de fondo opcional */
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.suplemento-label {
  font-family: 'soleil', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #173754;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: left;
}

.suplemento-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #173754;
  text-align: left;
}

.suplemento-description {
  font-family: 'soleil', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #173754;
  text-align: left;
}

.btn-ver-suplemento {
  padding: 0.8rem 2rem;
  font-family: 'soleil', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #fcf7cd;
  background-color: #05a49e;
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-ver-suplemento:hover {
  background-color: #037C77;
  color: #fcf7cd;
}

.suplemento-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* opcional */
}

/* RESPONSIVE */
@media (max-width: 991px){
  .suplemento-section {
    text-align: center;
  }
  .suplemento-label,
  .suplemento-title,
  .suplemento-description {
    text-align: center;
  }
  .btn-ver-suplemento {
    display: inline-block;
  }
}



/* ============================
      SECCIÓN NOTICIAS
============================ */
.noticias-section {
  background-color: #fcf7cd;
  padding: 5rem 0;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #173754;
  text-align: center;
  margin-bottom: 2rem;
}

/* -------------------------
      CARDS CON ALTURA FIJA
------------------------- */
.noticia-card {
  display: flex;
  flex-direction: column;
  height: 500px; /* altura fija de la card */
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* -------------------------
        IMAGEN
------------------------- */
.noticia-card img.card-img-top {
  width: 100%;
  height: 300px; /* altura fija de la imagen */
  object-fit: cover;
  object-position: top;
  flex: none;
}

/* -------------------------
        TEXTO
------------------------- */
.noticia-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
}

/* Título truncado a 3 líneas */
.noticia-card .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #173754;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* Subtítulo truncado con puntos suspensivos */
.noticia-card .card-text {
  font-size: 0.9rem;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;        /* necesario para ellipsis multiline */
  -webkit-line-clamp: 3;       /* máximo 3 líneas */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  margin-top: 0.5rem;          /* espacio arriba */
  flex-shrink: 0;              /* evita que se reduzca en flex */
}

/* Link completo */
.noticia-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ============================
          FLECHAS
============================ */
.carousel-control-prev,
.carousel-control-next {
  width: 3rem;
  height: 3rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(23, 54, 84, 0.9);
  border-radius: 50%;
  z-index: 10;
}

.carousel-control-prev {
  left: -3rem;
}

.carousel-control-next {
  right: -3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 50% 50%;
}

/* ============================
         INDICADORES
============================ */
.carousel-indicators {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  gap: 0.5rem;
  position: relative;
}

.carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: #ccc !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.carousel-indicators button.active {
  background-color: #173754 !important;
}

/* ============================
           RESPONSIVE
============================ */
@media (max-width: 991px) {
  .carousel-control-prev,
  .carousel-control-next {
    width: 2.5rem;
    height: 2.5rem;
    left: -1.5rem;
    right: -1.5rem;
  }

  .carousel-indicators {
    gap: 0.35rem;
  }
}

@media (max-width: 768px) {
  .noticia-card {
    height: 480px;
  }

  .noticia-card img.card-img-top {
    height: 220px;
  }
}

/* ===================================== SECCIÓN PROGRAMA ===================================== */
.programa-fee {
  background: url('../img/fondo_programa.jpg') repeat-y center top;
  background-size: cover;
  padding: 5rem 0;
  font-family: 'Inter', sans-serif;
  color: #fff;
  position: relative;
  z-index: 1;

  /* Animación de fondo */
  animation: fondo-anim 300s linear infinite;
}

/* Filtro opcional para mejorar contraste */
.programa-fee::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 47, 71, 0.7);
  z-index: -1;
}

/* Animación keyframes */
@keyframes fondo-anim {
  0% {
    background-position: center top;
  }
  100% {
    background-position: center bottom;
  }
}

/* Día */
.programa-dia {
  margin-bottom: 4rem;
}

/* Fecha en amarillo */
.programa-fecha {
  color: #f5c85b;
  font-weight: 600;
  font-size: 1.2rem;
  font-family: 'Inter', sans-serif;
}

/* Lugar */
.programa-fecha span {
  color: #f5c85b;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
}

/* Título principal */
.programa-titulo {
  font-size: 2.5rem;
  margin: 0.2rem 0 1rem;
  color: #FCF7CD;
  font-family: 'dystopian', sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Subtítulo descriptivo */
.programa-subtitulo {
  font-size: 1.1rem;
  color: #e6e6e6;
  max-width: 900px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Línea */
.programa-linea {
  border: none;
  border-top: 3px solid #05A49E;
  margin: 1rem 0;
  width: 250px;
}

/* Bloques */
.programa-bloque {
  margin-bottom: 2.5rem;
}

/* Hora */
.programa-hora {
  color: #f5c85b;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* Título del bloque */
.programa-bloque-titulo {
  color: #05A49E;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Ponentes */
.ponente {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

/* Ponentes detalles */
.ponente span {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: #fff;
  text-transform: uppercase;
}

/* Cargos con menos peso */
.ponente strong {
  font-weight: 700;
}

/* ================= RESPONSIVE ================= */

/* Tablets y móviles */
@media (max-width: 992px) {
  .programa-titulo {
    font-size: 2rem;
  }

  .programa-subtitulo {
    font-size: 1rem;
    max-width: 100%;
  }

  .programa-bloque-titulo {
    font-size: 1.2rem;
  }

  .programa-linea {
    width: 200px;
  }
}

@media (max-width: 576px) {
  .programa-titulo {
    font-size: 1.6rem;
  }

  .programa-subtitulo {
    font-size: 0.95rem;
  }

  .programa-bloque-titulo {
    font-size: 1rem;
  }

  .programa-linea {
    width: 150px;
  }

  .programa-fecha {
    font-size: 1rem;
  }

  .programa-hora {
    font-size: 0.85rem;
  }

  .ponente {
    font-size: 0.9rem;
  }

  .ponente span {
    font-size: 0.7rem;
  }
}



/* ==============================
   FOOTER
============================== */
.footer-section {
  background-color: #1F1F1F;
  color: #b1b9bb;
  font-family: 'soleil', sans-serif;
}

.footer-logo {
  width: 170px;
  height: auto;
  display: block;
}

.footer-web,
.footer-email {
  font-size: 1.3rem;
  color: #b1b9bb;
  margin: 0;
}

.footer-title {
  font-family: 'soleil', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #b1b9bb;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-icons a {
  color: #b1b9bb;
  font-size: 1.8rem;
  margin-left: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-icons a:hover {
  color: #E5312E;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-logo {
    margin: 0 auto 1rem;
  }

  .footer-title {
    margin-top: 2rem;
  }

  .footer-icons a {
    margin: 0 0.5rem;
  }
}