/* ==========================================================================
   Galería LATAM Partner Summit FY26
   ========================================================================== */

:root {
  /* ---- Paleta de marca ---- */
  --br-orange:        #FA582D; /* primario */
  --br-orange-dark:   #B23808; /* hover / degradados */
  --br-orange-light:  #FF724D; /* acentos */
  --br-peach:         #FFBF9C; /* fondos suaves */
  --br-terracota:     #C84727; /* apoyo */
  --br-yellow:        #FFCB06; /* acento */
  --br-cyan:          #00C0E8; /* acento */
  --br-green:         #00CC66; /* acento */
  --br-black:         #190000; /* texto y superficies oscuras */

  --br-orange-rgb:    250, 88, 45;

  /* Alias usados por el resto de la hoja */
  --hv-red:   var(--br-orange);
  --hv-black: var(--br-black);
  --hv-bg:    #000000;
  --hv-surface: #0D0D0D; /* superficies de la estructura */
  --hv-line:    #262626; /* bordes sobre negro */
  --hv-text:    #F2F2F2; /* texto sobre negro */
}

/* Tipografia de marca: TT Hoves (font/fonts.css). No se toca [class^="icon-"]
   ni flaticon/icomoon/lightgallery, que dependen de sus propias fuentes. */
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.topbar-nav .topbar-link,
.nav-btn, .day-btn, .sub-btn,
.gallery-count,
.fy26-footer,
.lg-sub-html {
  font-family: "TT Hoves", "FF Celeste", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  background: var(--hv-bg);
  color: var(--hv-text);
}

.site-section h1,
.site-section h2,
.site-section h3,
.site-section h4 { color: var(--hv-text); }

.site-section p { color: #B8B8B8; }

/* ---------- Header ---------- */
.IDB_header {
  position: relative;
  width: 100%;
  height: 350px;
  background-color: #0b0b0b;
  background-image: linear-gradient(135deg, #000000 0%, #1a1a1a 55%, #3a0000 100%); /* respaldo si no hay banner */
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  display: flex;
  align-items: center;
}

.IDB_header .texto {
  position: relative;
  text-align: center;
}

.IDB_header .texto img {
  width: 60%;
  max-width: 620px;
  margin: 10px auto;
  display: block;
}

/* ---------- Navegación ---------- */
.navigation-section {
  background: var(--hv-surface);
  padding: 40px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  margin-bottom: 30px;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  background: #141414;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .25);
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.nav-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--hv-red);
  transition: left .3s ease;
  z-index: 1;
}

.nav-btn:hover:before { left: 0; }
.nav-btn span { position: relative; z-index: 2; }

.nav-btn:hover {
  color: var(--br-black);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--br-orange-rgb), .35);
}

.nav-btn.active {
  background: var(--hv-red);
  color: var(--br-black);
  box-shadow: 0 4px 15px rgba(var(--br-orange-rgb), .3);
}

.nav-btn i { margin-right: 8px; font-size: 18px; }

/* ---------- Filtros por día ---------- */
.day-filters {
  background: var(--hv-surface);
  padding: 25px 0;
  margin-bottom: 30px;
}

.day-filters h4 { margin-bottom: 20px; color: var(--hv-text); }

.day-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: #1A1A1A;
  color: #EDEDED;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  min-width: 120px;
  margin: 5px;
  border: 2px solid var(--hv-line);
  cursor: pointer;
}

.day-btn:hover {
  color: var(--hv-red);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  border-color: var(--hv-red);
}

.day-btn.active,
.day-btn.active:hover {
  background: var(--hv-red);
  color: #FFFFFF;
  border-color: var(--hv-red);
}

.day-btn i { margin-right: 8px; font-size: 16px; }

/* ---------- Grid de la galería ---------- */
.gallery-grid { padding-bottom: 40px; }

.gallery-item {
  margin-bottom: 20px;
  transition: all .3s ease;
}

.gallery-item .gallery-thumb {
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 6px;
  background: #141414;
  cursor: zoom-in;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .gallery-thumb:after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--br-orange-rgb), 0);
  transition: background .3s ease;
}

.gallery-item:hover .gallery-thumb:after { background: rgba(var(--br-orange-rgb), .18); }

/* Aviso de carpeta vacía */
.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: #ADADAD;
}

.gallery-empty i { font-size: 48px; display: block; margin-bottom: 15px; color: #555; }

/* Contador de fotos */
.gallery-count {
  text-align: center;
  color: #A8A8A8;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ---------- Videos ---------- */
.video-card {
  margin-bottom: 25px;
}

.video-card .ratio-box {
  padding: 56.25% 0 0 0; /* 16:9 */
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

.video-card .ratio-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Portada (index) ---------- */
.cover-card {
  display: block;
  background: #0F0F0F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  text-decoration: none;
  color: var(--hv-text);
  transition: transform .3s ease, box-shadow .3s ease;
  margin-bottom: 30px;
}

.cover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  text-decoration: none;
  color: var(--hv-text);
}

.cover-card .cover-img {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #000 0%, #3a0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 54px;
  overflow: hidden;
}

/* Portada con imagen real (foto del evento o miniatura de video):
   la imagen va de fondo y el icono queda encima con un velo oscuro. */
.cover-card .cover-img.con-foto {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover-card .cover-img.con-foto::before,
.cover-card .cover-img.con-pdf.cargado::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%);
  transition: background .3s ease;
}

.cover-card:hover .cover-img.con-foto::before,
.cover-card:hover .cover-img.con-pdf.cargado::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .42) 100%);
}

.cover-card .cover-img.con-foto i,
.cover-card .cover-img.con-pdf i {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

/* Portada de "Presentaciones": primera pagina del PDF renderizada con pdf.js */
.cover-card .cover-img.con-pdf canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  z-index: 1;
}

.cover-card .cover-img.con-pdf.cargado i {
  display: none;
}

.cover-card .cover-body { padding: 20px; text-align: center; }
.cover-card .cover-body h3 { font-size: 20px; margin-bottom: 6px; color: var(--hv-text); }
.cover-card .cover-body p { color: #A8A8A8; font-size: 14px; margin: 0; }

/* ---------- Video de fondo del footer (igual al de la pagina principal) ---------- */
.fabric-zone {
  position: relative;
}

.fabric-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.fabric-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, .72);
}

.fabric-zone > footer {
  position: relative;
  z-index: 2;
  background: transparent;
  margin-top: 0;
}

/* ---------- Footer siempre al fondo ----------
   Con poco contenido (un dia sin fotos, por ejemplo) el footer se pegaba
   a la ultima seccion y dejaba un hueco blanco debajo. La columna flexible
   lo empuja al borde inferior de la ventana sin taparlo cuando hay scroll. */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-wrap > .fabric-zone { margin-top: auto; }

/* ---------- Footer (igual al de la pagina principal) ---------- */
.fy26-footer {
  padding: 48px 0 30px;
  border-top: 1px solid var(--hv-line);
  margin-top: 56px;
  background: rgba(0, 0, 0, .75);
}

.fy26-footer .footer-brand {
  width: min(92%, 1180px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.fy26-footer .brand-logo--footer {
  background: transparent;
  padding: 0;
  height: 46px;
  width: auto;
  display: block;
}

/* ---------- Responsivo ---------- */
@media (min-width: 768px) and (max-width: 992px) {
  .IDB_header { height: 250px; }
  .IDB_header .texto img { width: 50%; }
  .nav-btn { min-width: 180px; padding: 12px 25px; font-size: 14px; }
  .day-btn { min-width: 100px; padding: 10px 20px; font-size: 13px; }
  .gallery-item .gallery-thumb { height: 220px; }
}

@media (max-width: 767.98px) {
  .IDB_header { height: 200px; background-position: left top; }
  .IDB_header .texto img { width: 80%; }
  .nav-buttons { flex-direction: column; align-items: center; gap: 15px; }
  .nav-btn { min-width: 250px; padding: 12px 20px; font-size: 14px; }
  .navigation-section { padding: 30px 0; }
  .day-btn { min-width: 120px; margin: 5px 10px; }
  .gallery-item .gallery-thumb { height: 200px; }
  .video-card .ratio-box { padding: 56.25% 0 0 0; }
}

/* ---------- Topbar (igual al de la pagina principal) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #000000;
  border-bottom: 3px solid var(--br-orange);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.topbar-wrap {
  width: min(92%, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 74px;
}

.topbar .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.topbar .brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

@media (max-width: 767.98px) {
  .topbar-wrap { min-height: 60px; }
  .topbar .brand-logo { height: 22px; }
}

/* ---------- Banner del evento (mismo GIF de la pagina principal) ---------- */
.event-banner { padding: 28px 0 8px; }

.event-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(10, 10, 10, .14);
}

/* ---------- Hero del evento ----------
   El arte se ve completo y centrado: nada de recortes, porque el banner
   trae logo y tipografia. El alto se limita con vh para que no se coma
   la pantalla y los filtros de dia queden a la vista sin bajar tanto.
   El min-height reserva el hueco mientras baja el GIF y evita el salto. */
.event-hero {
  width: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  overflow: hidden;
}

.event-hero img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .event-hero { min-height: 42vh; }
  .event-hero img { max-height: 42vh; }
}

@media (max-width: 575px) {
  .event-hero { min-height: 32vh; }
  .event-hero img { max-height: 32vh; }
}

@media (max-width: 767.98px) {
  .event-banner { padding: 16px 0 4px; }
  .event-banner img { border-radius: 12px; }
}
/* ---------- Navegacion en dos niveles ----------
   Nivel 1 (.day-btn): los dias del evento, en pildoras grandes.
   Nivel 2 (.sub-btn): las secciones del dia activo. */
.day-nivel-1 { margin-bottom: 4px; }
.day-nivel-2 { margin-top: 16px; }

.gallery-grid .sub-btn,
.day-filters .sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  margin: 5px;
  background: #141414;
  color: #C9C9C9;
  text-decoration: none;
  border: 1px solid var(--hv-line);
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: all .25s ease;
}

.day-filters .sub-btn:hover {
  color: var(--hv-red);
  border-color: var(--hv-red);
  text-decoration: none;
}

.day-filters .sub-btn.active,
.day-filters .sub-btn.active:hover {
  background: var(--hv-red);
  border-color: var(--hv-red);
  color: #FFFFFF;
}

/* ---------- Mosaico de fotos ----------
   Columnas CSS: cada foto conserva su proporcion real, se ve completa y sin
   franjas. El contenedor se acota porque a pantalla completa (2000px) las
   columnas salian de ~500px y las fotos se veian gigantes. */
.gallery-grid .container-fluid {
  max-width: 1360px;
  margin: 0 auto;
}

.gallery-grid #lightgallery.row {
  display: block;
  column-count: 4;
  column-gap: 12px;
  margin: 0;
}

.gallery-grid #lightgallery .gallery-item {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  float: none !important;
  padding: 0 !important;
  display: block;
  margin: 0 0 12px 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.gallery-grid #lightgallery .gallery-item .gallery-thumb {
  height: auto;
  background: #141414;
  display: block;
}

.gallery-grid #lightgallery .gallery-item img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
  display: block;
}

@media (max-width: 1199.98px) {
  .gallery-grid #lightgallery.row { column-count: 3; }
}

@media (max-width: 767.98px) {
  .gallery-grid #lightgallery.row { column-count: 2; column-gap: 8px; }
  .gallery-grid #lightgallery .gallery-item { margin-bottom: 8px; }
}

@media (max-width: 479.98px) {
  .gallery-grid #lightgallery.row { column-count: 1; }
}

/* ---------- Portada con fotos que se alternan ----------
   Las imagenes se apilan y solo la activa queda visible; el cambio es un
   fundido suave. El velo oscuro y el icono van por encima. */
.cover-card .cover-img.con-slides .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.cover-card .cover-img.con-slides .slide.visible { opacity: 1; }

.cover-card .cover-img.con-foto::before { z-index: 1; }
.cover-card .cover-img.con-foto i { z-index: 2; }

/* ---------- Menu de la barra roja ---------- */
.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Mismo boton fantasma que el de documentos.php */
.topbar-nav .topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #141414;
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, transform .12s ease;
}

.topbar-nav .topbar-link:hover,
.topbar-nav .topbar-link:focus {
  background: var(--br-orange);
  color: #FFFFFF;
  text-decoration: none;
}

.topbar-nav .topbar-link:active { transform: translateY(1px); }

.topbar-nav .topbar-link:focus-visible {
  outline: 2px solid var(--br-orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .topbar-nav .topbar-link { transition: none; }
}

@media (max-width: 575px) {
  .topbar-nav .topbar-link { font-size: .82rem; padding: 9px 14px; }
}
