
/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: auto; width: 100%; margin-top: -100px !important; }
.hero-carousel { position: relative; inset: 0; z-index: 1; }
.hero-carousel .carousel-indicators { z-index: 30; bottom: -60px; }
.hero-carousel .carousel-item { height: 100vh; }
.hero-carousel .carousel-item::after { content: ""; position: absolute; inset: 0;  }
.video-container { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.bg-video { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; transform: translate(-50%, -50%); object-fit: cover; }
.bg-image { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-content { position: absolute; inset: 0; z-index: 10; height: 100%; display: flex; flex-direction: column; }
.hero-center { flex: 1; display: flex; align-items: center; }
.logo-img { max-width: 400px; }
.hero-text { color: white; font-size: 50px; font-weight: 100; text-transform: lowercase; padding-top: 22px; }
.text-end { margin-top: 100px; }
.text-end a { text-decoration: underline; }

/* ===== TEXTO HERO (esquina baja izquierda) ===== */
.hero-texto {
  position: absolute;
  left: 60px;
  bottom: 80px;
  max-width: 620px;
  z-index: 15;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .3px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-texto {
    left: 20px;
    right: 20px;
    bottom: 120px;
    max-width: none;
    font-size: 20px;
    line-height: 1.2;
  }
}

/* Auspiciador desktop */
.auspicia-desktop { position: absolute; top: 120px; right: 40px; z-index: 20; text-align: right; color: #fff; }
.auspicia-desktop .auspicia-label { font-size: 13px; font-weight: 300; letter-spacing: .5px; margin-top: 30px; }
.auspicia-desktop .auspicia-logo { max-width: 130px; height: auto; display: inline-block; }
.auspicia-desktop .auspicia-logo-tvn { max-height: 18px; height: auto; display: inline-block; }
.auspicia-desktop .auspicia-logo-coop { max-height: 18px; height: auto; display: inline-block; margin: 0 15px;}
.auspicia-desktop .auspicia-logo-lun { max-height: 18px; height: auto; display: inline-block; }

/* Auspiciador mobile */
.auspicia-mobile { display: none; width: 100%; background-color: #1D6060; padding: 10px 15px 10px 15px; text-align: center; color: #fff; }
.auspicia-mobile .auspicia-label { font-size: 13px; font-weight: 300; letter-spacing: .5px; margin-bottom: 0px; }
.auspicia-mobile .auspicia-logo { max-width: 100px; height: auto; display: inline-block; margin-bottom:20px}
.auspicia-mobile .auspicia-logo-tvn { max-height: 12px; height: auto; display: inline-block; }
.auspicia-mobile .auspicia-logo-coop { max-height: 12px; height: auto; display: inline-block; margin: 0 15px;}
.auspicia-mobile .auspicia-logo-lun { max-height: 12px; height: auto; display: inline-block; }

.hero-carousel, .carousel-inner, .carousel-item { width: 100%; height: 100vh; }
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.video-bg video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

@media (max-width: 768px) {
  .hero { height: auto; }
  .hero-carousel .carousel-item { height: 58vh; }
  .video-container iframe { min-height: 500px; }
  .mobile-bg { background-image: url('img/fallback.jpg'); background-size: cover; background-position: center; position: absolute; inset: 0; }
  .logo-img { max-width: 80%; }
  .hero-text { color: white; font-size: 40px; font-weight: 100; text-transform: lowercase; padding-top: 25px; }
  .auspicia-desktop { display: none !important; }
  .auspicia-mobile { display: block; }
  .hero-carousel, .hero-carousel .carousel-item { height: 58vh; }
  .video-bg, video { display: none; width: 100% !important; }
  .carousel-item { background-color: #ffffff !important; }
}

/* ============================================================
   BOX ACCESOS
   ============================================================ */
.box-accesos .row { align-items: stretch; }
.box-accesos .box-accesos-list { display: flex; flex-direction: column; height: auto; }
.box-accesos .box-accesos-list h2 { font-size: 24px !important; margin-left: 19px; margin-bottom: 20px; }
.box-accesos .box-accesos-list .box-accesos-list-body { display: flex; flex: 1 1 auto; align-items: stretch; min-height: 0; }
.box-accesos .box-accesos-list .box-accesos-list-sub-after { background-image: none; background-color: var(--hdc-green); width: 4px; min-width: 4px; align-self: stretch; margin-right: 15px; }
.box-accesos .box-accesos-list .box-accesos-list-sub { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; color: var(--hdc-gray-text); font-size: 16px; line-height: 28px; min-height: 0; }
.box-accesos .box-accesos-list .box-accesos-list-sub p { margin-bottom: 15px; }
.box-accesos .box-accesos-list .box-accesos-list-sub i { color: var(--hdc-dark-text); font-size: 24px; }
.box-accesos .row > [class*="col-"] { display: flex; flex-direction: column; }
.box-accesos .box-accesos-link { display: flex; flex-direction: column; flex: 1 1 auto; color: inherit; text-decoration: none; height: 100%; }
.box-accesos .box-accesos-link:hover, .box-accesos .box-accesos-link:focus, .box-accesos .box-accesos-link:visited { color: inherit; text-decoration: none; }
.box-accesos .box-accesos-link h2 { color: #000000; }
.box-accesos .box-accesos-link p { color: inherit; text-decoration: none; }
.box-accesos .box-accesos-arrow { display: block; margin-top: auto; align-self: flex-start; color: var(--hdc-dark-text); line-height: 1; }
.box-accesos .box-accesos-arrow i { color: var(--hdc-dark-text); font-size: 24px; }
.box-accesos .box-accesos-list { transition: transform .3s ease, box-shadow .3s ease; }
.box-accesos .box-accesos-list:hover { transform: translateY(-8px); }
.box-accesos-list:nth-child(1) .box-accesos-list-sub-after { background-color: #4FC3D9; }
.box-accesos-list:nth-child(2) .box-accesos-list-sub-after { background-color: #FF5A00; }
.box-accesos-list:nth-child(3) .box-accesos-list-sub-after { background-color: #FFD400; }
.box-accesos-list:nth-child(4) .box-accesos-list-sub-after { background-color: #7AC943; }

/* ============================================================
   DOCUMENTALES
   ============================================================ */
#documentales { padding: 80px 0; }
#documentales h1 { margin-bottom: 60px; }
.doc-top { margin-bottom: 60px; }
.doc-titulo { color: var(--hdc-green); font-size: 44px; font-weight: 700; line-height: 1.1; margin-bottom: 30px; }
.doc-bajada { font-size: 15px; line-height: 26px; color: var(--hdc-dark-text); }

.doc-video { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: #000; overflow: hidden; text-decoration: none; }
.doc-video-info { position: absolute; left: 25px; bottom: 25px; right: 25px; display: flex; align-items: center; gap: 15px; z-index: 2; color: #fff; pointer-events: none; }
.doc-video-info .doc-play { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; background: var(--hdc-acqua); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: background .25s ease; }
.doc-video:hover .doc-play { background: var(--hdc-orange); }
.doc-video-info .doc-video-text { display: flex; flex-direction: column; line-height: 1.3; }
.doc-video-info .doc-num { font-weight: 700; font-size: 16px; letter-spacing: .5px; }
.doc-video-info .doc-desc { font-size: 14px; font-weight: 300; }
.doc-video-mp4 video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-video-mp4::after { display: none; }
.doc-video-iframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-video-iframe::after { display: none; }
.doc-intro { max-width: 780px; margin: 0 auto 60px; font-size: 15px; line-height: 24px; color: var(--hdc-dark-text); }
.doc-grid { margin-bottom: 20px; }
.doc-card { display: block; width: 100%; aspect-ratio: 1 / 1; background-size: cover; background-position: center; transition: transform .35s ease, box-shadow .35s ease; }
.doc-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
#documentales .btn.btn-warning { background-color: var(--hdc-orange); border-color: var(--hdc-orange); color: #fff; text-transform: uppercase; font-weight: 700; padding: 15px 60px; border-radius: 0; letter-spacing: .5px; }
#documentales .btn.btn-warning:hover { background-color: var(--hdc-dark-text); border-color: var(--hdc-dark-text); color: #fff; }

/* ============================================================
   CARRUSEL GENÉRICO (documentales + entrevistas)
   ============================================================ */
.doc-carousel-wrap { position: relative; margin-top: 40px; padding: 0 80px; }
.doc-carousel { overflow: hidden; }
.doc-carousel-track { display: flex; transition: transform .4s ease; gap: 20px; }
.doc-carousel-item { flex: 0 0 calc((100% - 40px) / 3); box-sizing: border-box; }
.doc-carousel-item .doc-card { display: block; width: 100%; aspect-ratio: 1 / 1; background-size: cover; background-position: center; transition: transform .35s ease, box-shadow .35s ease; }
.doc-carousel-item .doc-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.doc-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: none; background-color: var(--hdc-orange, #FF5A00); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s ease, opacity .25s ease; }
.doc-carousel-arrow:hover { background-color: var(--hdc-dark-text, #333); }
.doc-carousel-arrow:disabled { opacity: .35; cursor: not-allowed; }
.doc-carousel-prev { left: 15px; }
.doc-carousel-next { right: 15px; }




/* ============================================================
   CANCIÓN / VIDEOCLIP
   ============================================================ */
.btn-audio { background: none; border: 0; padding: 0; cursor: pointer; display: inline-block; transition: transform .2s ease, opacity .2s ease; }
.btn-audio:hover { transform: scale(1.05); }
.btn-audio.is-playing { opacity: .7; }
.btn-audio img { display: block; width: 100%; height: auto; }
.videoclip-letra { max-height: 55vh; overflow-y: auto; padding-right: 10px; font-size: 16px; line-height: 1.7; color: var(--hdc-dark-text); }
.videoclip-letra p { margin-bottom: 18px; }
.btn-descargar-letra { display: inline-block; background-color: var(--hdc-orange, #FF5A00); color: #fff; text-transform: uppercase; font-weight: 700; font-size: 14px; letter-spacing: .5px; padding: 12px 32px; border-radius: 0; border: none; text-decoration: none; transition: background .25s ease; }
.btn-descargar-letra:hover { background-color: var(--hdc-dark-text, #333); color: #fff; }
.btn-descargar-letra i { margin-right: 8px; }

/* ============================================================
   CONTENIDOS / ENTREVISTAS
   ============================================================ */
#contenidos-entrevistas .doc-carousel-item .contenedor { position: relative; width: 100%; aspect-ratio: 415 / 435; background-size: cover; background-position: center; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
#contenidos-entrevistas .doc-carousel-item .contenedor:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
#contenidos-entrevistas .doc-carousel-item .contenedor .texto { position: absolute; left: 0; right: 0; bottom: 0; padding: 15px 18px; color: #fff; font-size: 15px; line-height: 1.3; font-weight: 600; background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%); }
#contenidos-entrevistas .doc-carousel-wrap { margin-top: 40px; }

/* ============================================================
   COLECTA 2026
   ============================================================ */
.colecta-2026 { padding: 80px 0; }
.colecta-2026 h1 { font-size: 58px; font-weight: 900; color: var(--hdc-dark-text); margin-bottom: 70px; text-align: center; }
.colecta-2026 .colecta-top { align-items: stretch; }
.colecta-2026 .colecta-top > .col-md-7 { display: flex; flex-direction: column; justify-content: space-between; }
.colecta-2026 .colecta-top > .col-md-5 { display: flex; align-items: flex-start; }
.colecta-titulo { color: var(--hdc-green); font-size: 42px; font-weight: 700; line-height: 1.1; margin-bottom: 25px; }
.colecta-bajada { font-size: 15px; line-height: 24px; color: var(--hdc-dark-text); font-weight: 500; margin-bottom: 40px; flex: 1; }
.colecta-btn-wrap { text-align: center; padding-right: 80px; margin-top: auto; }
.colecta-btn-wrap .btn-colecta { display: inline-block; background-color: var(--hdc-orange); color: #fff; text-transform: uppercase; font-weight: 700; font-size: 14px; letter-spacing: .5px; padding: 15px 60px; border-radius: 0; border: none; text-decoration: none; transition: background .25s ease; }
.colecta-btn-wrap .btn-colecta:hover { background-color: var(--hdc-dark-text); color: #fff; }
.colecta-imagen { width: 100%; text-align: right; }
.colecta-imagen img { max-width: 100%; height: auto; display: inline-block; width: 100%; }

/* ============================================================
   LOGOS FOOTER (oculto)
   ============================================================ */
.logos-footer { display: none !important; }

/* ============================================================
   RESPONSIVE GLOBAL (mobile)
   ============================================================ */
@media (max-width: 768px) {
  .doc-carousel-wrap { padding: 0 45px; }
  .doc-carousel-item { flex: 0 0 100%; }
  .doc-carousel-arrow { width: 38px; height: 38px; font-size: 16px; }
}

@media (max-width: 767px) {
  .doc-titulo { font-size: 32px; }
  .doc-video { aspect-ratio: 16 / 10; margin-top: 30px; }
  .doc-video-info { left: 15px; bottom: 15px; gap: 10px; }
  .doc-video-info .doc-play { width: 48px; height: 48px; font-size: 16px; }
  .doc-video-info .doc-num { font-size: 14px; }
  .doc-video-info .doc-desc { font-size: 12px; }
  .doc-intro { font-size: 14px; padding: 0 15px; }

  .colecta-2026 { padding: 50px 0; }
  .colecta-2026 h1 { font-size: 36px; margin-bottom: 40px; }
  .colecta-titulo { font-size: 28px; }
  .colecta-bajada { font-size: 14px; line-height: 22px; margin-bottom: 25px; flex: none; }
  .colecta-btn-wrap { padding-right: 0; text-align: left; margin-bottom: 30px; margin-top: 0; }
  .colecta-btn-wrap .btn-colecta { padding: 12px 40px; }
  .colecta-imagen { text-align: center; }
  .colecta-2026 .colecta-top > .col-md-7,
  .colecta-2026 .colecta-top > .col-md-5 { display: block; }
}



/* ============================================================
   OVERLAY PLAY EN CARDS DE DOCUMENTALES
   ============================================================ */
.doc-carousel-item .doc-card {
  position: relative; /* Necesario para posicionar el overlay */
  overflow: hidden;
}

.doc-card-overlay {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

/* Botón circular de Play */
.doc-card-overlay .doc-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--hdc-acqua, #4FC3D9); /* Color por defecto (puedes cambiarlo a naranja si prefieres) */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  padding-left: 4px; /* Ajuste óptico para centrar el triángulo del play */
}

/* Texto "Ver micro documental" */
.doc-card-overlay .doc-play-text {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* Para que no interfiera con el clic */
  text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* Sombra para que se lea bien sobre la imagen */
}

/* Efectos Hover */
.doc-carousel-item .doc-card:hover .doc-play-btn {
  background-color: var(--hdc-orange, #FF5A00); /* Cambia a naranja al hacer hover */
  transform: scale(1.05);
}

.doc-carousel-item .doc-card:hover .doc-play-text {
  opacity: 1;
  transform: translateX(0);
}




/* ============================================================
   NUEVA SECCIÓN VIDEOCLIP (Estilo Imagen)
   ============================================================ */
.videoclip-section {
  padding: 60px 0;
  background-color: #ffffff;
}

/* Título */
.videoclip-titulo {
  font-size: 48px;
  font-weight: 800;
  color: #0f9997; /* Color turquesa del texto */
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

/* Bajada */
.videoclip-bajada {
  font-size: 16px;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 90%;
}

/* Contenedor de Instrucciones */
.videoclip-instrucciones {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.instruccion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 150px;
}

.instruccion-item p {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Íconos */
.icono-circulo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.icono-video {
  background-color: #ffd400; /* Amarillo */
}

.iconos-audio {
  display: flex;
  gap: 15px;
}

.btn-audio svg {
  width: 50px;
  height: 50px;
  color: #000;
  transition: transform 0.2s;
}

.btn-audio:hover svg {
  transform: scale(1.1);
}

/* Separador Vertical */
.instruccion-separador {
  width: 1px;
  height: 60px;
  background-color: #ccc;
}

/* Botón Verde */
.btn-subir-video {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background-color: #0f9997; /* Turquesa */
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-subir-video:hover {
  background-color: #0b7a78;
  color: #ffffff;
  transform: translateY(-3px);
}

/* Imagen Derecha */
.videoclip-imagen {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 991px) {
  .videoclip-titulo {
    font-size: 36px;
  }
  .videoclip-instrucciones {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .videoclip-titulo {
    font-size: 28px;
  }
  .videoclip-instrucciones {
    flex-wrap: wrap;
    gap: 20px;
  }
  .instruccion-separador {
    display: none; /* Ocultar separador en móviles muy pequeños */
  }
  .btn-subir-video {
    font-size: 18px;
    padding: 12px 25px;
    width: 100%;
    justify-content: center;
  }
}