/* customized.css */
@font-face {
  font-family: 'Raleway';
  src: url('../font/Raleway/Raleway-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Raleway';
  src: url('../font/Raleway/Raleway-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Raleway';
  src: url('../font/Raleway/Raleway-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Gentium Plus', serif;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Gentium Plus', serif;
}

.title-header h1 {
  font-family: 'Tiro Bangla', serif;
  font-size: 3.5vw;
}

.overlay-title {
  font-family: 'Tiro Bangla', serif;
  font-size: 3.5vw;
}

.main-content {
  padding-top: 0; /* Eliminado padding superior para evitar margen blanco debajo del navbar */
}


main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Comienza desde el principio */
}

body {
  position: relative; /* Asegura que el contenido principal se posicione correctamente */
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  background-color: white;
  overflow-x: hidden;
}

.navbar .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.navbar .nav-link {
  color: #223d71 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.navbar-brand {
  padding: 0;
  display: block;
}

.img-original {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  object-fit: contain;
}

.navbar-collapse > .navbar-nav:first-child {
  margin-left: auto;
}

/* ── Imagen de cabecera ──────────────────────────────────── */
.main-content {
  width: 100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2));
  overflow-x: hidden;
}

.main-content .hero-image {
  margin-top: var(--navbar-height, 80px) !important;
  width: 100%;
  position: relative;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.overlay-text-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

.title-header {
  margin-top: 90px; /* distancia desde el top de la imagen */
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.subtitle2-header {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.subtitle2-header h3 {
  font-size: 38px;
}

.elogio-texto {
  color: #223d71  !important;
}

.unizar-texto {
  color: #223d71 !important;
}

.subtitle-header {
  margin-top: auto; /* empuja la fecha al fondo */
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.subtitle-header h3 {
  font-size: 2.2vw;
  font-weight: 400;
}


/* ── Sección descripción con imagen lateral ─────────────── */
.descripcion-layout {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: stretch;
}

.descripcion-imagen {
  flex: 0 0 40%;
  max-width: 40%;
}

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

.descripcion-texto h1 {
  font-size: 35px;
}

.descripcion-texto {
  flex: 1;
  font-family: 'Gentium Plus', serif;
  background-image: url('../img/decoracionLateral.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

@media (max-width: 767.98px) {
  .descripcion-layout {
    flex-direction: column;
  }

  .descripcion-imagen {
    flex: unset;
    max-width: 100%;
  }

  .descripcion-img {
    height: 200px;
  }
}

/* ── Sección directores ─────────────────────────────────── */
#contenidoDirectores {
  background-image: url('../img/decoracionDirectores.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* ── Banners home ───────────────────────────────────────── */
.home-banner {
  display: block;
  text-decoration: none;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.home-banner .card {
  margin: 0;
  border-radius: 0;
  width: 100%;
}

.home-banner-hr {
  margin-left: -15%;
  margin-right: -15%;
}

.home-banner img {
  width: 100% !important;
  height: 30vw !important;
  object-fit: cover !important;
  display: block;
}

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

.overlay-title {
  padding-bottom: 2vw;
  padding-left: 4vw;
}

.card-img-overlay {
  padding: 0;
}

@media (max-width: 991.98px) {
  .col-md-4.d-none.d-lg-flex { display: none !important; }
  .col-md-4.d-flex.align-items-stretch { display: none !important; }
}

/* ── Separador entre secciones ──────────────────────────── */
.separador-articulo {
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.separador-articulo img {
  display: block;
  width: 100%;
  height: 10vw;
  object-fit:cover;
}

.carrouselFrame{
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.carrouselSize{

  width: 100%;
  max-width: 700px;
}

.mainFrame{
  padding: 30px 10%;
}

.content{
  margin-top: 20px;
  text-align: justify;
}


.footerContent {
  padding-bottom: 10px;
  margin-top: 20px;
}

.footer-layout {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: left;
  gap: 40%;
  text-align: left;
}

.title{
  /* margin-top: 20px; */
  text-align: center;
}

.titleLeft{
  text-align: left;
}
.colorBlue{
  color: #223d71;
}
.titleCard{
  text-align: center;
  text-decoration: solid;
}
.redLine{
  margin: 15px auto;
  color: #ffaa05;
  max-width: 90%;
}
.spaceBottomXS{
  padding-bottom: 30px;
}

.spacebottomXL{
  padding-bottom: 80px;
}
.text{
  margin-bottom: 20px;
}

.contactFrame{

  padding: 15px;
  margin: 0 auto;
  max-width: 600px;
}
.rowCard{
  padding-bottom: 30px;
}

.card {
  margin: 15px auto;
}

.BackColorBlue{
  background-color: #223d71;
}

.BackColorYellow{
  background-color: #ffaa05;
}

.FontColorYellow{
  color: #ffaa05;
}






/* ── Mobile event header (reemplaza hero image en móvil) ─── */
.mobile-event-header {
  margin-top: var(--navbar-height, 80px);
  padding: 20px 20px 16px;
  text-align: center;
  background-color: #f4f6fb;
  border-bottom: 3px solid #7796AD;
}

.mobile-event-title {
  color: #223d71;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2px;
}

.mobile-event-subtitle {
  color: #223d71;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 6px;
}

.mobile-event-place {
  color: #555;
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 4px;
}

.mobile-event-date {
  color: #223d71;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* Media Queries para pantallas pequeñas */
@media (max-width: 767.98px) {

  .hero-image img {
    height: 200px;
  }


  .navbar-nav {
    flex-direction: column;
    text-align: center;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 10px 0;
  }
  .row.text-center .col-4,
  .row .col-3 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card {
    margin-bottom: 20px;
  }

  /* Reducción general de márgenes y paddings en móvil */
  .mainFrame {
    padding: 16px 20px;
  }

  .content {
    margin-top: 10px;
    text-align: justify;
  }

  .carrouselSize {
    max-width: 50%;
  }

  .rowCard {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Optimiza el footer */
  .footerContent {
    padding: 0;
    margin-top: 10px;
  }

  .title, .titleCard {
    font-size: 19px;
    margin: 10px auto;
  }

  /* Ajusta textos */
  .text, .redLine {
    font-size: 14px;
    margin: 5px auto;
  }

  /* Ajusta contacto */
  .contactFrame {
    max-width: 100%;
    padding: 10px;
  }

  /* ── Banners home: altura mínima usable en móvil ──────── */
  .home-banner img {
    height: 45vw !important;
  }

  .overlay-title {
    font-size: 7vw;
  }

  /* ── Footer: apila columnas en móvil ─────────────────── */
  .footer-layout {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Media Queries para pantallas medianas */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-image img {
    height: 250px;
  }

  .mainFrame {
    padding: 20px 40px;
  }

  .content {
    margin-top: 16px;
  }

  .carrouselSize {
    max-width: 300px;
  }
  .row.text-center .col-4,
  .row .col-3 {
    width: 50%; /* Dos tarjetas por fila */
    flex: 0 0 50%; /* Ajusta el tamaño al 50% */
    max-width: 50%; /* Asegura el ancho máximo */
  }

  .card {
    margin-bottom: 20px; /* Espaciado entre tarjetas */
  }
}


.letraNegrita{
    font-weight: bold;
}

/* ── Tipografías del congreso ───────────────────────────── */
.font-titulo {
  font-family: 'Tiro Bangla', serif;
}

.font-texto {
  font-family: 'Gentium Plus', serif;
}

.titulo-azul {
  font-family: 'Tiro Bangla', serif;
  color: #223d71;
  font-size: 22px;
}

/* ── Programa: línea de tiempo ──────────────────────────── */
.day-header {
  background-color: #7796AD;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  margin-bottom: 0;
  margin-left: 40px;
}

.timeline {
  position: relative;
  padding: 16px 0 8px 180px;
  margin-bottom: 16px;
  margin-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 164px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #223d71;
  opacity: 0.25;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  min-height: 24px;
}

.timeline-time {
  position: absolute;
  left: -174px;
  top: 2px;
  width: 120px;
  text-align: right;
  color: #223d71;
  white-space: nowrap;
}

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #7796AD;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot--panel {
  width: 16px;
  height: 16px;
  left: -24px;
  top: 3px;
  background-color: #c0392b;
}

.timeline-dot--break {
  background-color: #BEC5CE;
  width: 10px;
  height: 10px;
  left: -21px;
  top: 6px;
}

.timeline-content { flex: 1; }

.panel-role-label {
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ponentes-list {
  list-style: none;
  padding-left: 8px;
  margin: 4px 0 6px 0;
  border-left: 2px solid #e0e0e0;
}

.ponentes-list li {
  padding: 2px 0 2px 8px;
}

/* ── Comunicaciones: pestañas y bases ───────────────────── */
.nav-tabs .nav-link {
  padding: 8px 16px;
}

.nav-tabs .nav-link.active {
  color: #223d71;
  border-top: 2px solid #223d71;
}

.comm-tab-content {
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 20px 24px;
  border-radius: 0 0 6px 6px;
  margin-bottom: 1.5rem;
}

.base-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.base-row--aviso {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  padding: 12px 16px;
}

.base-num {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #223d71;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.base-num--aviso {
  background-color: #faad14;
}

.comm-email-link {
  color: #223d71;
  text-decoration: none;
  border-bottom: 1px dashed #223d71;
  margin-right: 16px;
}

.comm-email-link:hover {
  border-bottom-style: solid;
  color: #1a2f57;
}

/* ── Inscripción: tarifas ───────────────────────────────── */
.tarifas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tarifa-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.tarifa-card:hover {
  box-shadow: 0 4px 16px rgba(34, 61, 113, 0.12);
}

.tarifa-precio {
  font-size: 2rem;
  font-weight: 300;
  color: #223d71;
  line-height: 1;
  margin-bottom: 8px;
}

.tarifa-nombre {
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 6px;
}

.tarifa-detalle {
  font-size: 0.8rem;
  font-weight: 300;
  color: #777;
}

.alergias-nota {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  background-color: #f8f9fa;
  border-left: 3px solid #223d71;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: #444;
}

.btn-inscripcion {
  display: inline-flex;
  align-items: center;
  background-color: #223d71;
  color: white;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: background-color 0.2s;
}

.btn-inscripcion:hover {
  background-color: #1a2f57;
  color: white;
}

/* ── Alojamiento: servicios de hotel ────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.services-grid-single {
  grid-template-columns: 1fr;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 300;
  color: #333;
}

.service-item svg {
  flex-shrink: 0;
}

/* ── Header: logos apilados en móvil ───────────────────── */
.navbar-brands {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .navbar-brands {
    flex: 1;
    min-width: 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .navbar-brands .navbar-brand {
    padding: 0;
    margin-right: 0;
  }

  .header-logo-unizar {
    width: 85px !important;
    margin: 6px 0 !important;
  }

  .header-logo-derecho {
    width: 105px !important;
    margin: 6px 0 !important;
  }

  .header-logo-serra {
    width: 58px !important;
    margin: 6px 0 !important;
  }
}

/* ── Comunicaciones: pestañas en móvil ─────────────────── */
@media (max-width: 767.98px) {
  #salasTabs {
    flex-wrap: nowrap;
  }

  #salasTabs .nav-item {
    flex: 1;
  }

  #salasTabs .nav-link {
    text-align: center;
    padding: 8px 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ── Programa: timeline en móvil (debe ir DESPUÉS del CSS de escritorio) ── */
@media (max-width: 767.98px) {
  .day-header {
    margin-left: 0;
    font-size: 0.95rem;
  }

  .timeline {
    padding: 12px 0 8px 32px;
    margin-left: 0;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    flex-direction: column;
    margin-bottom: 1.2rem;
  }

  .timeline-time {
    position: static;
    width: auto;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
  }

  .timeline-dot {
    left: -22px;
    top: 4px;
  }

  .timeline-dot--panel {
    left: -23px;
    top: 3px;
  }

  .timeline-dot--break {
    left: -21px;
    top: 5px;
  }
}

