/* ==========================
   GENERAL
========================== */
body {
  margin: 0;
  font-family: 'futura-pt', 'Inter', sans-serif;
  background: #F7EFDF;
  color: #111;
  overflow-x: hidden;
}

/* Subir solo el contenido de la columna izquierda */
.left-content {
  position: relative;
  top: -150px;
}

.custom-header {
  background-image: url('../img/fondo-header.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #000;
  position: relative;
}

.custom-header .container {
  width: 100%;
}

/* ==========================
   TEXTOS HEADER
========================== */
.header-xv {
  font-family: 'Antonio', sans-serif;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.header-xv .xv {
  color: #e5302b;
}

.header-xv .jornadas {
  color: #000;
}

.header-logo {
  max-width: 250px;
}

.header-city {
  font-family: 'Futura PT', sans-serif;
  font-weight: bold;
  margin-bottom: 0.2rem;
  font-size: 1.5rem;
}

.header-date {
  font-family: 'Antonio', sans-serif;
  font-weight: 600;
  color: #e5302b;
  text-transform: uppercase;
  font-size: 4rem;
}

.header-location {
  font-family: 'Futura PT', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.header-title {
  font-family: 'Antonio', sans-serif;
  font-weight: 300;
  color: #000;
  font-size: 4rem;
  margin-bottom: 4rem;
}

/* ==========================
   LOGOS PRINCIPALES
========================== */
.header-partner-logo,
.sponsor-logo {
  transition: transform 0.3s ease;
}

.header-partner-logo:hover,
.sponsor-logo:hover {
  transform: scale(1.1);
}

.header-partner-logo {
  max-height: 60px;
}

/* ==========================
   PATROCINADORES SECUNDARIOS
========================== */
/* Contenedor general alineado a la derecha */
.sponsor-section {
  display: flex;
  flex-direction: column; /* Apilar contenido interno */
  align-items: flex-end;  /* Sección a la derecha */
  text-align: left;       /* Texto dentro alineado a la izquierda */
  gap: 0.5rem;
}

/* Texto "Con el patrocinio de:" */
.sponsor-text {
  font-family: 'Futura PT', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: left;       /* texto alineado a la izquierda */
  width: 100%;
  padding-left: 48%;
}

/* Logos debajo del texto */
.sponsor-logos {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start; /* logos alineados a la izquierda dentro de la sección */
}

.sponsor-logo {
  max-height: 50px;
}

/* ==========================
   RESPONSIVE (MÓVIL)
========================== */
@media (max-width: 991px) {

  .left-content {
    position: relative;
    top: -50px;
  }

  .custom-header {
    background-image: url('../img/fondo-header-mobile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1rem;
  }

  .custom-header .row {
    flex-direction: column;
    align-items: stretch;
  }

  .col-md-6.text-left {
    text-align: left;
    margin-bottom: 0rem;
    position: relative;
    top: 0;
  }

  .col-md-6.text-md-end {
    text-align: right;
    margin-bottom: 2rem;
  }

  .header-xv {
    font-size: 2rem;
    display: flex;           /* usar flex para que XV y JORNADAS estén en la misma fila */
    flex-wrap: nowrap;       /* evitar que se rompa la línea */
    align-items: center;     /* alinear verticalmente si hay diferencia de tamaño de fuente */
    gap: 0.5rem;             /* opcional, espacio entre XV y JORNADAS */
  }

  .header-xv .xv {
    font-size: 2.5rem;
    display: inline;         /* eliminar el display:block que forzaba salto de línea */
    color: #e5302b;
  }

  .header-xv .jornadas {
    font-size: 2rem;
    color: #000;
  }

  .header-logo {
    max-width: 180px;
    margin-bottom: 1rem;
  }

  .header-city {
    font-size: 1.2rem;
  }

  .header-date {
    font-size: 2.5rem;
  }

  .header-location {
    font-size: 1rem;
  }

  .header-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  /* Logos principales */
  .d-flex.justify-content-end {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  /* Patrocinadores secundarios en móvil */
  .sponsor-section {
    align-items: flex-start;  /* Texto a la izquierda */
    text-align: left;
  }

  .sponsor-logos {
    justify-content: center !important; /* Logos centrados en móvil */
    flex-wrap: wrap;
    gap: 1rem;
  }

  .sponsor-logo {
    max-height: 40px;
  }
  .sponsor-text {
  padding-left: 0%;
}

.header-partner-logo {
  max-height: 40px;
}

}



/* ==============================
   PROGRAMA
============================== */
.programa-section {
  padding: 60px 15px;
  background-color: #fff;
  font-family: 'Futura PT', 'Inter', sans-serif;
  color: #111;
}

.programa-section h2 {
  font-family: 'Antonio', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 50px;
  color: #111;
}

/* ============================
   TABS DEL PROGRAMA
============================ */

.nav-tabs {
  border-bottom: none;
  justify-content: center;
  margin-bottom: 15px;
}

.nav-tabs .nav-link {
  font-family: 'Antonio', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: #fff;
  border: none;
  margin: 0 5px;
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s;
  text-transform: uppercase;
  background-color: #e5302b;

  /* Necesario para mostrar día + lugar en dos líneas */
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-tabs .nav-link.active {
  background-color: #6e1815;
  color: #fff;
}

.nav-tabs .nav-link:hover {
  background-color: #2e0a08;
}

/* Subtítulo dentro de cada tab (el lugar) */
.nav-tabs .nav-link .tab-lugar {
  font-family: 'Futura PT', sans-serif; /* Futura Light */
  font-weight: 300;
  font-size: 0.85rem;
  text-transform: none;
  color: #f5f5f5;
  margin-top: 10px;
  opacity: 0.9;
}


/* ============================
   TÍTULO Y SUBTÍTULO DEL DÍA
============================ */

.titulo-dia {
  font-family: 'Antonio', sans-serif;
  font-weight: 300;
  font-size: 2.2rem;
  color: #e5302b;
  margin-bottom: 5px;
}

.subtitulo-dia {
  font-family: 'Futura PT', sans-serif;
  font-size: 1.2rem;
  color: #3b3b3b;
  margin-bottom: 30px;
  text-transform: uppercase;
}




/* ==============================
   Cards de sesión
============================== */
.card-sesion {
  background-color: #f5eedc27;
  border: none;
  border-radius: 12px;
  box-shadow: 1px 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-sesion:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-sesion .row {
  margin: 0;
  align-items: flex-start;
}

.card-sesion .col-2 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 0;
}

.hora {
  font-family: 'Antonio', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #e5302b;
  line-height: 1.2;
  text-align: center;
  min-width: 90px;
  margin: 0;
}

.card-sesion .card-body {
  padding: 1rem 1.25rem;
}

.card-title {
  font-family: 'Antonio', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #111;
}

/* Etiqueta tipo "Conversación" */
.etiqueta-tipo {
  font-family: 'Antonio', sans-serif;
  font-size: 1.3rem; /* más pequeño */
  font-weight: 100;
  background-color: #F5EEDC; /* #E5302B con opacidad baja */
  color: #E5302B;
  padding: 4px 12px;
  border-radius: 4px;
  margin-right: 6px;
  display: inline-block;
}

.card-text {
  font-family: 'Futura PT', sans-serif;
  font-size: 1rem;
  color: #1a2122;
  margin-bottom: 6px;
}

.btn-outline-danger {
  border-color: #e5302b;
  color: #e5302b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.btn-outline-danger:hover {
  background-color: #e5302b;
  color: #fff;
  border-color: #e5302b;
}

.card-sesion img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal-content {
  border-radius: 12px;
}

.modal-body img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* ==============================
   Responsive
============================== */
@media (max-width: 992px) {
  .hora {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .programa-section {
    margin-top: 100px;
  }

  /* Las columnas pasan a vertical y hora arriba */
  .card-sesion .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-sesion .col-2 {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 0.5rem;
    justify-content: flex-start;
  }

  .hora {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .card-sesion .col-12.col-md-10 {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card-sesion .card-body {
    padding: 0.75rem 0;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {


  .programa-section {
    margin-top: 100px;
  }
  
  .programa-section h2 {
    font-size: 2.2rem;
  }

  .nav-tabs .nav-link {
    font-size: 1.1rem;
    padding: 8px 14px;
  }

  .nav-tabs {
    flex-wrap: wrap; /* permite que las tabs hagan salto de línea */
    gap: 10px 0;     /* 10px vertical entre filas, 0 horizontal entre items */
  }

  .nav-tabs .nav-link {
    flex: 1 1 auto;  /* para que ocupen todo el ancho disponible si hace falta */
    text-align: center;
  }

  .hora {
    text-align: center;
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }
}



/* ==============================
   PONENTES
============================== */
.ponentes-section {
  background-color: #f5eedc;
  padding: 80px 15px;
  color: #111;
  font-family: 'Futura PT', 'Inter', sans-serif;
}

.ponentes-section .titulo {
  font-family: 'Antonio', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contenedor general */
.ponentes25 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem; /* espacio entre items */
}

/* Cada ponente */
.ponentes25 .item {
  width: calc(20% - 1.5rem); /* 5 por fila */
  max-width: 220px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.6s ease;
  padding-top: 240px; /* espacio para la imagen absoluta */
}

/* Textura overlay */
.ponentes25 .item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 240px; /* igual que la imagen */
  background-image: url("../img/ponente-textura.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
  transition: all 0.6s ease;
}

/* Imagen (posición absoluta para mantener layout original) */
.ponentes25 .imagen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0 0 0 82px;
  filter: grayscale(0.7);
  transition: all 0.6s ease;
  z-index: 1;
}

/* Nombre debajo de la imagen */
.ponentes25 .nombre {
  width: 100%;
  text-align: center;
  font-family: 'Antonio', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5302b;
  margin-top: 10px; /* separación de la imagen */
  z-index: 3;
  position: relative;
}

/* Cargo debajo del nombre */
.ponentes25 .cargo {
  width: 100%;
  text-align: center;
  font-family: 'Futura PT', sans-serif;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 10px;
  z-index: 3;
  position: relative;
}

/* Hover efectos */
.ponentes25 .item:hover .imagen img {
  filter: grayscale(0);
  transform: scale(1.08);
}

.ponentes25 .item:hover::before {
  opacity: 0;
}

/* ==============================
   Responsive
============================== */

/* 4 por fila */
@media (max-width: 1200px) {
  .ponentes25 .item {
    width: calc(25% - 1.5rem);
    padding-top: 240px;
  }
}

/* 3 por fila */
@media (max-width: 992px) {
  .ponentes25 .item {
    width: calc(33.33% - 1.5rem);
    padding-top: 240px;
  }
  .ponentes25 .nombre {
    font-size: 1.1rem;
  }
  .ponentes25 .cargo {
    font-size: 0.9rem;
  }
}

/* 2 por fila */
@media (max-width: 768px) {
  .ponentes25 .item {
    width: calc(50% - 1rem);
    padding-top: 200px;
  }
  .ponentes25 .imagen img,
  .ponentes25 .item::before {
    height: 200px;
  }
  .ponentes25 .nombre {
    font-size: 1rem;
  }
  .ponentes25 .cargo {
    font-size: 0.85rem;
  }
}

/* 1 por fila */
@media (max-width: 576px) {
  .ponentes25 .item {
    width: 100%;
    padding-top: 180px;
  }
  .ponentes25 .imagen img,
  .ponentes25 .item::before {
    height: 180px;
  }
  .ponentes25 .nombre {
    font-size: 1rem;
  }
  .ponentes25 .cargo {
    font-size: 0.85rem;
  }
}


/* ==============================
   CARRUSEL DE NOTICIAS
============================== */
.noticias-section {
  width: 100%;
  padding: 50px 20px;
  background-color: #e5302b;
  color: #fff;
}

.noticias-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.noticias-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Antonio', sans-serif;
  font-size: 2.5rem;
  color: #fff;
}

.carousel-container {
  position: relative;
}

.carousel-wrapper {
  overflow: hidden; /* oculta el resto de tarjetas */
}

.carousel {
  display: flex;
  transition: transform 0.4s ease;
  gap: 20px;
}

.noticia-card {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 visibles desktop */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  color: #111;
}

.noticia-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.noticia-card h3 {
  margin: 10px;
  font-size: 1.3rem;
  color: #e5302b;
}

.noticia-card p {
  margin: 0 10px 10px;
  font-size: 0.95rem;
  color: #333;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none; /* sin fondo */
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn svg {
  stroke: #fff;
  width: 28px;
  height: 42px;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover svg {
  stroke: #e5302b;
  transform: scale(1.2);
}

.carousel-btn.prev { 
  left: -50px; 
}
.carousel-btn.next { 
  right: -50px; 
}


@media (max-width: 768px) {
  .noticia-card {
    flex: 0 0 80%; /* 1 visible en móvil */
  }
  .carousel-btn.prev { 
    left: -40px; 
  }
  .carousel-btn.next { 
    right: -40px; 
  }
}

/* ==============================
   EDICIONES ANTERIORES
============================== */
.ediciones-section {
  width: 100%;
  padding: 50px 20px;
  background-color: #f5f5f5; /* fondo claro */
  color: #111;
}

.ediciones-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Antonio', sans-serif;
  font-size: 2.5rem;
  color: #111;
}

.ediciones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.edicion-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: calc(20% - 16px); /* 5 por fila en desktop */
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.edicion-card:hover {
  transform: translateY(-5px);
}

.edicion-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.edicion-card h3 {
  margin: 10px 0 15px;
  font-size: 1.2rem;
  color: #e5302b;
}

/* Responsive */
@media (max-width: 1200px) {
  .edicion-card { width: calc(25% - 15px); } /* 4 por fila */
}

@media (max-width: 992px) {
  .edicion-card { width: calc(33.33% - 14px); } /* 3 por fila */
}

@media (max-width: 768px) {
  .edicion-card { width: calc(50% - 10px); } /* 2 por fila */
}

@media (max-width: 480px) {
  .edicion-card { width: 100%; } /* 1 por fila */
}






/* ==============================
   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;
  }
}


