/* ===== Paleta basada en tu logo ===== */
:root{
  --brand:#147B73;          /* verde principal */
  --brand-dark:#0f3d3e;     /* verde profundo */
  --brand-ghost:#e8f3f1;    /* fondo suave */
  --ink:#152126;            /* texto principal */
  --muted:#5e6b70;          /* texto secundario */
  --paper:#ffffff;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--paper);
}

/* ===== NAV ===== */

/* Centrar textos del header */
.nav-shell {
  display: flex;
  align-items: center;
}

.nav ul {
  display: flex;
  align-items: center;
}

.nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 8px 0;
}
/* ===== HEADER TRANSPARENTE SOBRE EL HERO + FONDO AL SCROLL ===== */
header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0px);
  transition: background .4s ease, backdrop-filter .4s ease, box-shadow .3s ease;
}

header.scrolled{
  background: var(--brand-dark);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* Colores del menú visibles sobre la foto */
.brand span,
.nav a{ color:#fff; }

/* Mantén tu layout del header */
.nav-shell{
  max-width:1100px; margin:auto; padding:12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none}
.brand img{height:46px; width:auto}
.brand span{font-weight:700}

.nav ul{display:flex; gap:22px; list-style:none; margin:0; padding:0}
.nav a{ text-decoration:none; font-weight:600; opacity:.95 }
.nav a:hover{ opacity:1; text-decoration:underline }

.hamburger{display:none; background:none; border:0; width:44px; height:44px}
.hamburger span{display:block; height:2px; background:#fff; margin:8px 7px}

/* ===== HERO ===== */
.hero{
  --overlay: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.45));
  background: var(--overlay), url('Museo_sitio_2.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color:#fff;
}

.hero .wrap{
  max-width:1100px;
  margin:auto;
  padding:160px 20px 160px;
  text-align:center;
}

.hero h1{
  font-family: Merriweather, serif;
  font-weight:700;
  font-size:clamp(38px,4.8vw,62px);
  margin:0 0 12px;
}

.hero p{
  max-width:760px;
  margin:0 auto 24px;
  color:#eaf7f5;
}

.cta{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}
/* ===== Secciones ===== */
.section{padding:88px 20px; background:var(--paper)}
.section.alt{background:var(--brand-ghost)}
.section .wrap{max-width:900px; margin:auto}
.section h2{
  font-family: Merriweather, serif;
  font-size:clamp(28px,3vw,42px);
  color:var(--brand-dark);
  text-align:center;
  margin:0 0 8px;
}
.lead{color:var(--muted); text-align:center; margin:0 0 28px}

/* ===== Grillas ===== */
.grid{display:grid; gap:24px}
.g2{grid-template-columns:1.2fr 1fr}
.g3{grid-template-columns:repeat(3,1fr)}
.panel{
  background:var(--paper);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:22px;
}
.panel h3{margin:0 0 6px; color:var(--brand-dark)}

/* ===== Equipo ===== */
.team{
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  align-items: start;
}

.person{
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.person img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
}

.person .role{
  color: var(--brand);
  font-weight: 700;
  margin: .3rem 0 .6rem;
}

/* ===== NUEVA SECCIÓN: Colaboradores ===== */
.collab-grid{
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

@media(max-width:900px){
  .collab-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px){
  .collab-grid{
    grid-template-columns: 1fr;
  }
}

/* ==== Logos iguales ==== */
.logos{
  display:grid;
  gap:22px;
  grid-template-columns:repeat(auto-fit, minmax(160px,1fr));
  align-items:center;
  justify-items:center;
}

.logos img{
  width:100%;
  max-height:160px;
  object-fit:contain;
  object-position:center;
  filter:grayscale(.08);
  opacity:.95;
}

/* ===== Formulario ===== */
.form{display:grid; gap:10px; background:var(--paper); border-radius:12px; box-shadow:var(--shadow); padding:18px}
.form label{display:grid; gap:6px; font-weight:600}
.form input,.form textarea{border:1px solid #dfe7e6; border-radius:10px; padding:11px; font:inherit}
.mini{color:var(--muted); font-size:.9rem; margin-top:.4rem}

/* ===== Botones ===== */
.btn{display:inline-block; padding:12px 18px; border-radius:12px; font-weight:700; text-decoration:none; cursor:pointer; border:2px solid transparent; transition:.2s}
.btn.primary{background:var(--brand); color:#fff}
.btn.primary:hover{background:#0f6f67}
.btn.ghost{background:transparent; color:#fff; border-color:rgba(255,255,255,.7)}
.btn.ghost:hover{background:rgba(255,255,255,.12)}
.btn.outline{background:transparent; color:var(--brand-dark); border-color:var(--brand-dark)}
.btn.outline:hover{background:var(--brand-dark); color:#fff}

/* ===== Footer ===== */
footer{background:var(--brand-dark); color:#d7f1ef}
footer .foot{max-width:900px; margin:auto; padding:18px 20px; display:flex; align-items:center; justify-content:space-between}
.to-top{color:#d7f1ef; text-decoration:none; font-weight:700}

/* ===== Responsive ===== */
@media (max-width: 900px){
  .team{grid-template-columns:1fr 1fr;}
}

@media (max-width: 720px){
  .team{grid-template-columns:1fr !important;}

  .nav ul{display:none}
  .hamburger{display:block}
  .nav.open ul{
    display:flex; position:absolute; left:0; right:0; top:64px;
    background:var(--brand-dark); flex-direction:column; padding:14px 5%; gap:12px;
    border-bottom:1px solid rgba(255,255,255,.15)
  }
}

/* ===== ESTILO PÁGINA AGENDAR ===== */
.agenda-shell{
  max-width:700px;
  margin:auto;
  padding:80px 20px;
}
.agenda-shell h1{
  text-align:center;
  font-family:Merriweather, serif;
  font-size:clamp(32px,4vw,46px);
  margin-bottom:6px;
  color:var(--brand-dark);
}
.agenda-shell .lead{
  text-align:center;
  margin-bottom:30px;
  color:var(--muted);
}
.agenda-shell .panel{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  padding:26px;
}
#bkMsg{
  margin-top:12px;
  font-weight:600;
  color:var(--brand-dark);
}
#bkMsg.error{
  color:#b60000;
}


/* ===== CALENDARIO ===== */
.calendar-day {
  border-radius: 6px;
  padding: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s;
}

.calendar-day.open {
  background: rgba(34, 139, 34, 0.12);
}
.calendar-day.open:hover {
  background: rgba(34, 139, 34, 0.28);
}

.calendar-day.full {
  background: rgba(200, 50, 50, 0.18);
  color: #944;
  cursor: not-allowed;
}

.calendar-day.past {
  background: rgba(0,0,0,0.08);
  color: #777;
  cursor: not-allowed;
}

.calendar-day.selected {
  background: rgba(0, 80, 120, 0.35);
  color: #fff;
  border: 2px solid rgba(0, 80, 120, 0.9);
}

/* ===== Selector de Idiomas ===== */
.lang-switch{
  display:flex;
  gap:6px;
  align-items:center;
}

.lang-switch button{
  background:transparent;
  border:1px solid rgba(255,255,255,.7);
  color:#fff;
  font-size:.85rem;
  padding:4px 8px;
  border-radius:6px;
  cursor:pointer;
  transition:.25s;
}

header.scrolled .lang-switch button{
  border-color:rgba(255,255,255,.9);
}

.lang-switch button:hover,
.lang-switch button.active{
  background:rgba(255,255,255,.25);
}

/* Centrar textos en la sección Horarios */
#horarios .grid .panel {
  text-align: center;
}
#horarios .grid .panel p {
  margin-top: 6px;
  line-height: 1.5;
}
#horarios .grid .panel h3 {
  text-align: center;
  margin-bottom: 10px;
}

/* =========================================================
   NOTICIAS - LAYOUT, BARRA LATERAL Y BUSCADOR
   ========================================================= */

.news-layout{
  max-width:1100px;
  margin:auto;
  padding:96px 20px 80px;
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(0,1.2fr);
  gap:32px;
}

.news-main{
  min-width:0;
}

.news-main h1{
  font-family:Merriweather, serif;
  font-size:clamp(30px,3.4vw,40px);
  color:var(--brand-dark);
  margin:0 0 8px;
}

.news-main .lead{
  text-align:left;
  margin-bottom:22px;
}

/* Tarjetas de noticia */
.news-card{
  background:var(--paper);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:18px 20px;
  margin-bottom:18px;
}

.news-card h3{
  margin-top:0;
  margin-bottom:6px;
  color:var(--brand-dark);
}

.news-meta{
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:8px;
}

.news-card p{
  margin:0 0 6px;
}

/* === IMÁGENES EN LAS NOTICIAS === */
.news-card img{
  width:100%;
  border-radius:12px;
  margin:10px 0 14px;
  object-fit:cover;
  max-height:360px;
}

/* Filtros de búsqueda */
.news-filters{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  align-items:flex-end;
  margin-bottom:16px;
}

.news-filters label{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:.9rem;
  color:var(--muted);
}

.news-filters input,
.news-filters select{
  border:1px solid #dfe7e6;
  border-radius:10px;
  padding:8px 10px;
  font:inherit;
}

/* Barra lateral de últimas noticias */
.news-sidebar{
  background:var(--paper);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:18px 18px 20px;
}

.news-sidebar h3{
  margin-top:0;
  margin-bottom:10px;
  color:var(--brand-dark);
}

.news-sidebar ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.news-sidebar li button{
  background:none;
  border:0;
  padding:0;
  text-align:left;
  font:inherit;
  color:var(--brand-dark);
  cursor:pointer;
}

.news-sidebar li button:hover{
  text-decoration:underline;
}

.news-sidebar li small{
  display:block;
  font-size:.8rem;
  color:var(--muted);
}

@media(max-width:900px){
  .news-layout{
    grid-template-columns:1fr;
  }
  .news-sidebar{
    order:-1;
  }
}

@media(max-width:600px){
  .hero .wrap{
    padding:120px 16px 120px;
  }
}

@media(max-width:480px){
  .team,
  .collab-grid,
  .grid.g3{
    grid-template-columns:1fr !important;
  }
}

@media (max-width: 720px){
  .nav{
    position:relative;
  }
  .nav ul{
    display:none;
  }
  .nav.open ul{
    display:flex;
    position:absolute;
    left:0; right:0; top:64px;
    background:var(--brand-dark);
    flex-direction:column;
    padding:14px 5%;
    gap:12px;
    border-bottom:1px solid rgba(255,255,255,.15);
  }
}

@media(max-width:900px){
  .hero{
    background-attachment:scroll;
  }
}

/* ===============================
   NOVEDADES EN HOME (principal)
   ——— CARRUSEL HORIZONTAL ———
   =============================== */

/* =========================================================
   CARRUSEL NOVEDADES FULL WIDTH
   ========================================================= */

.novedades-carrusel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 25px;
}

.novedades-carrusel {
  display: flex;
  flex-wrap: nowrap;
  gap: 26px;
  overflow: hidden;
  transition: transform 0.35s ease;
  padding: 5px 0;
}

.novedad-slide {
  min-width: 280px;   /* Ajustable */
  flex-shrink: 0;
  list-style: none;
}

.novedad-slide a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.novedad-slide img {
  width: 100%;
  height: 180px;   /* ajusta según diseño */
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.novedad-slide h4 {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* === Flechas CNN-style === */

.novedad-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: white;
  display: none;   /* El JS las activa */
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(2px);
}

.novedad-arrow-left {
  left: 5px;
}

.novedad-arrow-right {
  right: 5px;
}

.novedad-arrow:hover {
  background: rgba(0,0,0,0.6);
}
/* ================================
   Carrusel Novedades — Overlay + Focus Blur
   ================================ */

/* Contenedor del carrusel */
.novedades-carrusel-wrapper {
  position: relative;
  overflow: hidden;
}

/* Lista */
.novedades-carrusel {
  display: flex;
  gap: 26px;
  transition: transform 0.3s ease;
  padding: 0;
  margin: 0;
}

/* Cada ítem */
.novedad-slide {
  list-style: none;
  position: relative;
  flex: 0 0 280px;
}

.novedad-slide a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

/* Imagen */
.novedad-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* TITULAR sobre la imagen */
.novedad-slide h4 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  margin: 0;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

/* EFECTO AL HACER CLIC O FOCO (CNN style) */
.novedad-slide a:focus img,
.novedad-slide a:active img,
.novedad-slide a:hover img {
  filter: brightness(0.6) blur(2px);
  transform: scale(1.05);
}

/* Flechas */
.novedad-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  border: none;
  background: rgba(0,0,0,0.45);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: none; /* Se muestran según JS */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  transition: opacity 0.2s;
}

.novedad-arrow-left  { left: 0; }
.novedad-arrow-right { right: 0; }

.novedad-arrow:hover {
  background: rgba(0,0,0,0.55);
}

/* === LISTA MODERNA DE NOVEDADES === */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.news-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.news-thumb {
  width: 190px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}

.news-info h2 {
  font-size: 1.25rem;
  margin: 0 0 8px 0;
}

.news-info p {
  margin: 0;
  color: #555;
  line-height: 1.4;
}

.news-item:hover h2 {
  text-decoration: underline;
}
/* ============================
   ESTILO PARA PÁGINA DE NOTICIA
   ============================ */

.news-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-article h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #0a3045;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-article .lead {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 30px;
}

.news-article img.news-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin-bottom: 25px;
    object-fit: cover;
}

.news-body {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #222;
}

.news-body p {
    margin-bottom: 18px;
}

.news-body ul {
    margin: 12px 0 24px 25px;
}

.news-body li {
    margin-bottom: 8px;
}

.news-body blockquote {
    padding: 15px 20px;
    border-left: 4px solid #0a3045;
    background: #f4f8fa;
    border-radius: 6px;
    font-style: italic;
    margin: 25px 0;
}

.news-body strong {
    color: #0a3045;
}

@media(max-width: 720px) {
    .news-article {
        padding: 20px 15px;
    }
    .news-article h1 {
        font-size: 1.9rem;
    }
}
/* =========================================================
   AJUSTES SOLO PARA VERSIONES MOVILES - RESPONSIVE REAL
   ========================================================= */
@media(max-width: 720px){

  /* ---- ORDEN DEL HEADER ---- */
  .nav-shell {
    display: flex;
    flex-direction: row-reverse;   /* Logo a la derecha, hamburguesa a la izquierda */
    justify-content: space-between;
    align-items: center;
  }

  /* tamaño del logo en móvil */
  .brand img {
    height: 40px;
    width: auto;
  }

  /* ---- BOTÓN HAMBURGUESA ---- */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 6px;
    background: transparent;
    border: none;
    z-index: 2000;
  }

  .hamburger span {
    background: #fff;
    height: 3px;
    border-radius: 3px;
  }

  /* ---- MENÚ DESPLEGADO ---- */
  .nav.open ul{
    display: flex;
    flex-direction: column;

    position: absolute;
    left: 0;
    right: 0;
    top: 60px;

    background: var(--brand-dark) !important;  /* verde oscuro sólido */

    padding: 24px 7%;
    gap: 18px;

    border-bottom: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: none !important;  /* elimina transparencia */
  }

  .nav.open ul a {
    color: white !important;
    font-size: 1.15rem;
    font-weight: 600;
  }

  /* ---- HERO ADAPTADO ---- */
  .hero {
    background-attachment: scroll !important;
  }

  .hero .wrap {
    padding: 140px 20px 110px;
  }

  .hero h1{
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero p{
    font-size: 1rem;
    line-height: 1.45;
  }

  /* ---- GRILLAS -> 1 COLUMNA ---- */
  .team,
  .collab-grid,
  .grid.g3,
  .g2 {
    grid-template-columns: 1fr !important;
  }

  /* ---- CARRUSEL ---- */
  .novedad-slide img {
    height: 160px !important;
  }
}

/* =========================================================
   EXTRA: MEJORAS PARA PANTALLAS PEQUEÑAS (<= 360px)
   ========================================================= */
@media(max-width: 360px){

  .hero .wrap {
    padding-top: 150px;
  }

  .brand img {
    height: 34px;
  }

  .novedad-slide {
    min-width: 240px !important;
  }
}
/* =========================================================
   AJUSTES SOLO PARA VERSIONES MÓVILES - RESPONSIVE REAL
   ========================================================= */
@media(max-width: 720px){

  /* ---- ORDEN DEL HEADER ---- */
  .nav-shell {
    flex-direction: row-reverse !important;   /* Logo a la derecha, hamburguesa izquierda */
    justify-content: space-between !important;
  }

  .brand img {
    height: 40px;
  }

  /* ---- BOTÓN HAMBURGUESA ---- */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 6px;
    background: transparent;
    border: none;
    z-index: 2000;
  }

  .hamburger span {
    background: #fff;
    height: 3px;
    border-radius: 3px;
  }

  /* ---- MENÚ DESPLEGADO ---- */
  .nav.open ul{
    display:flex !important;
    flex-direction:column;
    position:absolute;
    left:0;
    right:0;
    top:64px;

    background:var(--brand-dark) !important;

    padding:24px 7%;
    gap:18px;

    border-bottom:1px solid rgba(255,255,255,0.2);
    backdrop-filter:none !important;
  }

  .nav.open ul a{
    color:white !important;
    font-size:1.15rem;
  }

  /* ---- HERO ADAPTADO ---- */
  .hero {
    background-attachment: scroll !important;
  }

  .hero .wrap {
    padding:140px 20px 110px;
  }

  .hero h1 {
    font-size:1.9rem;
    line-height:1.2;
  }

  .hero p {
    font-size:1rem;
    line-height:1.45;
  }

  /* ---- GRILLAS ---- */
  .team,
  .collab-grid,
  .grid.g3,
  .g2 {
    grid-template-columns:1fr !important;
  }

  /* ---- CARRUSEL ---- */
  .novedad-slide img {
    height:160px !important;
  }
}

/* =========================================================
   EXTRA PARA PANTALLAS MUY PEQUEÑAS
   ========================================================= */
@media(max-width: 360px){
  .brand img { height: 34px; }
  .novedad-slide { min-width: 240px !important; }
}
/* ============================================
   FIX PARA XIAOMI / REDMI / MIUI
   Evita que el sistema agrande textos o inputs
   ============================================ */

/* 1. Bloquea el autoscale de texto */
html {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

/* 2. Evita que inputs cambien de tamaño */
input, textarea, select {
  font-size: 16px !important;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* 3. Forzar grid estable */
* {
  max-width: 100%;
}

/* 4. Evita zoom accidental en formularios */
@viewport {
  zoom: 1.0;
  width: device-width;
}

@-ms-viewport {
  width: device-width;
}
/* ===== LOADER CON VIDEO CIRCULAR ===== */
#chaiten-loader{
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999999 !important;
  background: #ffffff;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;

  opacity: 1;
  visibility: visible;
  transition: opacity .75s ease, visibility .75s ease;
}

#chaiten-loader.hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loading{
  overflow: hidden;
}

/* Video circular */
.video-wrapper{
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;

  /* ✅ placeholder/fallback si el video demora */
  background: radial-gradient(circle at 35% 30%, rgba(20,123,115,.12), rgba(20,123,115,.03) 60%, rgba(0,0,0,0) 75%);

  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  outline: 1px solid rgba(0,0,0,.10);
}

#eruptionVideo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}


/* Barra progreso */
.progress-container{
  width: min(380px, 84vw);
  text-align: center;
}

.progress-bar-outer{
  width: 100%;
  height: 10px;
  border-radius: 999px;

  /* ✅ visible sobre blanco */
  background: rgba(0,0,0,.08);

  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 14px 30px rgba(0,0,0,.14);
}

.progress-bar-inner{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  transition: width .25s ease-out;
}

.progress-text{
  margin-top: 8px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .9rem;
}

/* TEXTO "Cargando..." */
.loader-text{
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  animation: loaderPulse 1.6s ease-in-out infinite;
}

@keyframes loaderPulse{
  0%,100%{ opacity: 0.65; }
  50%{ opacity: 1; }
}

.loader-text .dots span{
  display: inline-block;
  animation: dotBlink 1.4s infinite both;
}

.loader-text .dots span:nth-child(1){ animation-delay: 0s; }
.loader-text .dots span:nth-child(2){ animation-delay: .2s; }
.loader-text .dots span:nth-child(3){ animation-delay: .4s; }

@keyframes dotBlink{
  0%{ opacity: 0; }
  20%{ opacity: 1; }
  100%{ opacity: 0; }
}
/* ===== COMPATIBILIDAD MÓVIL (iOS/Android) ===== */

/* Usa viewport dinámico cuando existe (iOS 16+, Chrome moderno) */
#chaiten-loader{
  height: 100vh;      /* fallback */
  height: 100dvh;     /* viewport dinámico */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Evita “rebote” y scroll raro detrás del overlay */
body.is-loading{
  overscroll-behavior: none;
  touch-action: none;
}

/* Tamaños más adecuados en pantallas pequeñas */
@media (max-width: 480px){
  .video-wrapper{
    width: 220px;
    height: 220px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18); /* menos pesado en móvil */
  }

  .progress-container{
    width: min(320px, 86vw);
  }

  .loader-text{
    font-size: 0.85rem;
    letter-spacing: 0.07em;
  }
}

/* Muy pequeños (<=360px) */
@media (max-width: 360px){
  .video-wrapper{
    width: 200px;
    height: 200px;
  }
}