/* =========================================================
   EXCURSIÓN — BIO MAR CHIQUITA
   Ajustes:
   - Hero full width
   - Card más angosta (línea 7–10 palabras aprox)
   ========================================================= */

html, body { height: 100%; }

* { font-family: Lato, sans-serif; }

body {
  margin: 0;
  color: #111;
  /* background: url("../imagenes/general/Fondo_Liso.png") no-repeat center center fixed; */
  background-size: cover;
}

/* =========================
   LAYOUT
   ========================= */
.ex-page{
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 34px 0;
}

.ex-footer-space{ margin-top: 18px; }

/* =========================
   HERO FULL WIDTH
   ========================= */
.ex-hero{
  position: relative;
  height: 420px;              /* ajustable */
  overflow: hidden;
}

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

/* “Break out” del contenedor para ocupar toda la pantalla */
.ex-hero--full{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* overlay centrado */
.ex-hero__overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 16px;
}

/* Drop shadow pedido: x:5 y:5 blur:2.3 color #000 65% */
.ex-hero__title{
  margin: 0;
  color: #fff;
  /* font-family: "Poppins", sans-serif; */
  font-family: "Knewave", cursive;
  /* font-weight: 900; */
  font-size: 56px;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 5px 5px 2.3px rgba(0,0,0,0.65);
}

.ex-hero__subtitle{
  margin: 10px 0 0 0;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-shadow: 5px 5px 2.3px rgba(0,0,0,0.65);
}

/* =========================
   CARD (recuadro blanco)
   ========================= */
.ex-card{
  /* background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08); */
  padding: 18px 18px 20px 18px;

  /* sube un poco sobre el hero */
  margin-top: -14px;
}

/* Más angosta en desktop (similar a tu captura)
   60ch aprox = 7–10 palabras por línea según idioma */
.ex-card--narrow{
  max-width: 80ch;     /* clave: controla longitud de línea */
  margin-left: auto;
  margin-right: auto;
}



/* =========================
   CONTENIDO TIPADO
   ========================= */
.ex-content{
  padding: 6px 14px 6px 14px;
}

.ex-h2{
  margin: 0 0 10px 0;
  /* font-family: "Poppins", sans-serif; */
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.1px;
  color: #007cb0;
  padding-top: 18px;
}

.ex-p{
  margin: 0 0 22px 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #1a1a1a;

}

#acompanamiento{
  font-size: 1.1rem;
  text-align: center;
  font-weight: 600;
}
.ex-ul{
  margin: 0 0 22px 18px;
  padding: 0;
}

.ex-ul li{
  margin: 0 0 10px 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #1a1a1a;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px){
  .ex-page{ width: min(1100px, calc(100% - 20px)); }
  .ex-hero{ height: 360px; }
  .ex-hero__title{ font-size: 44px; }
  .ex-hero__subtitle{ font-size: 22px; }

  /* en tablet dejamos que respire un poco más */
  .ex-card--narrow{ max-width: 80ch; }
  .ex-content{ padding: 6px 10px; }
}

@media (max-width: 640px){
  .ex-page{ width: calc(100% - 16px); }

  .ex-hero{ height: 260px; }
  .ex-card{
    padding: 14px 12px;
    margin-top: -10px;
  }

  /* mobile siempre full del contenedor */
  .ex-card--narrow{
    max-width: none;
  }

  .ex-hero__title{ font-size: 45px; }
  .ex-hero__subtitle{ font-size: 16px; margin-top: 6px; }

  .ve-warning{ padding: 12px 14px; gap: 12px; }
  .ve-warning__title{ font-size: 18px; }
  .ve-warning__text{ font-size: 13px; }
  .ve-warning__icon{ width: 30px; height: 30px; }

  .ex-h2{ font-size: 1.4rem; }
  .ex-p, .ex-ul li{ font-size: 14px; line-height: 1.7; }
}



/* =========================
   GALERÍA FULL WIDTH (sale del recuadro angosto)
   Desktop: 1 grande izq + 2 apiladas der
   Mobile: 1 arriba + 2 abajo
   ========================= */

/* Break-out a ancho de viewport */
.ex-gallery-wrap{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* separación respecto al texto */
  margin-top: 18px;
  margin-bottom: 22px;

  /* opcional: para que “casi todo” el ancho tenga aire */
  padding: 0 28px;  /* ajusta el “casi” */
}

/* Contenedor interno con máximo (para que no se vaya a infinito en monitores enormes) */
.ex-gallery{
  max-width: 1400px;    /* ajustable */
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

/* Grande ocupa 2 filas */
.ex-gallery__item--big{
  grid-column: 1;
  grid-row: 1 / span 2;
}

.ex-gallery__item{
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e9e9e9;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

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

/* Alturas similares a referencia */
/* Proporciones horizontales estilo referencia */
.ex-gallery__item--big{
  aspect-ratio: 16 / 10;   /* imagen grande */
}

.ex-gallery__item--small{
  aspect-ratio: 16 / 7.6;   /* imágenes chicas */
}


/* Mobile: 1 arriba + 2 abajo */
@media (max-width: 640px){
  .ex-gallery-wrap{
    padding: 0 16px; /* mismo aire que el sitio en mobile */
  }

  .ex-gallery{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }

    .ex-gallery__item--big{
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
    }

    .ex-gallery__item--small{
    aspect-ratio: 16 / 10;
    }

}

/* =========================
   CTA GALERÍA
   ========================= */
.ex-gallery-cta{
  display: flex;
  justify-content: center;
  margin: 10px 0 22px 0;
}

/* Botón estilo sitio (azul + sombra) */
.ex-btn{
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;
  min-width: 220px;

  border-radius: 6px;
  border: 0;

  user-select: none;
}

.ex-btn--primary{
  background: linear-gradient(180deg, #009de0 0%, #006c9b 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,0.20);
}


.ex-btn--primary:hover{
  filter: brightness(0.98);
}



/* =========================
   VIDEO SECTION
   ========================= */
.ex-video{
  margin: 10px auto 26px auto;
  max-width: 62ch;            /* respeta el “texto angosto” */
}

.ex-video__title{
  text-align: left;
  margin-bottom: 12px;
}

/* Frame responsive 16:9 con portada */
.ex-video__frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

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

/* Botón play centrado */
.ex-video__play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ex-video__play::before{
  content: "";
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
}

.ex-video__play::after{
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 20px solid #ffffff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: translateX(2px);
}

/* CTA debajo */
.ex-video__cta{
  display: flex;
  justify-content: center;
  margin: 14px 0 0 0;
}

/* Mobile: que el bloque respire igual que el contenido */
@media (max-width: 640px){
  .ex-video{
    max-width: none;
  }
}

/* =========================
   FOOTER FULL WIDTH
   ========================= */
#footer-container{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}
/* Elimina espacio debajo del footer */
.ex-page{
  padding-bottom: 0;
}

.ex-footer-space{
  margin-top: 0;
}





/* =========================
   HOVER EN IMÁGENES (galería 3)
   ========================= */
@media (hover: hover){
  .ex-gallery__item{
    transition: transform 220ms ease, box-shadow 220ms ease;
    transform-origin: center;
    will-change: transform;
  }

  .ex-gallery__item:hover{
    transform: scale(1.04);
    z-index: 2;
    box-shadow: 0 16px 28px rgba(0,0,0,0.18);
  }
}

/* =========================
   MODAL GALERÍA FULLSCREEN
   ========================= */
.ex-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none; /* se activa con .is-open */
}

.ex-modal.is-open{
  display: block;
}

.ex-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
}

.ex-modal__panel{
  position: relative;
  height: 100%;
  overflow: auto;            /* scroll dentro del modal */
  -webkit-overflow-scrolling: touch;
  padding: 70px 16px 24px 16px; /* espacio para la X */
}

/* Botón cerrar (X) */
.ex-modal__close{
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 30px;
  line-height: 44px;
  text-align: center;

  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
}

.ex-modal__close:hover{
  filter: brightness(1.08);
}

/* Contenido centrado y “normal” */
/* Contenedor: centrado y vertical */
.ex-modal__content{
  max-width: 100%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 24px;
}

/* Cada imagen ocupa como máximo el viewport */
.ex-modal__img{
  max-width: 100vw;
  max-height: 92vh;   /* deja aire para la X */

  width: auto;
  height: auto;

  object-fit: contain;
  display: block;

  border-radius: 8px;
  background: #111;
}


.ex-modal__empty{
  color: #fff;
  font-size: 14px;
  margin: 0;
  text-align: center;
  opacity: 0.9;
}


@media (hover: hover){
  .ex-gallery__item{
    transition: transform 220ms ease, box-shadow 220ms ease;
    transform-origin: center;
    will-change: transform;
  }

  .ex-gallery__item:hover{
    transform: scale(1.04);
    z-index: 2;
    box-shadow: 0 16px 28px rgba(0,0,0,0.18);
  }
}






/* =========================
   SEPARADOR "PAPEL CORTADO" (HTML)
   ========================= */


.ex-paper-divider{
  position: relative;
  z-index: 20;     /* CLAVE: lo sube por encima del fondo */

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  margin-top: -66px; /* pega al hero */
  line-height: 0;
  pointer-events: none;
}

.ex-paper-divider img{
  width: 100%;
  height: 90px;  /* ajustá */
  display: block;
  object-fit: cover;
}

.ex-page{
  position: relative;
  z-index: 1;
}


/* imagen periodico */
/* .ex-gallery-bg{
  position: relative;
  z-index: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 30px;
  padding-bottom: 20px;
}

.ex-gallery-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background-image: var(--bg-img);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-size: 100% 100%;
}

.ex-gallery-bg > *{
  position: relative;
  z-index: 1;
} */


.ex-gallery-bg{
  position: relative;
  z-index: 0;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding-top: 90px;
  padding-bottom: 70px;

  /* altura del papel */
  --paper-h: 90px;

  /* periódico como fondo del contenedor */
  background-image: var(--bg-img);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* papel arriba (invertido) */
.ex-gallery-bg::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--paper-h);
  z-index: 1;
  pointer-events: none;

  background-image: var(--paper-img);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;

  transform: scaleY(-1);
  transform-origin: center;
}

/* papel abajo (normal) */
.ex-gallery-bg::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--paper-h);
  z-index: 1;
  pointer-events: none;

  background-image: var(--paper-img);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* Asegura contenido por encima */
.ex-gallery-bg > *{
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}


/* =========================
   WARNING → IMAGEN
   ========================= */
.warning-img-wrap{
  display: flex;
  justify-content: center;
  margin: -30px 0 0px 0;
  /* padding-top: 30px; */
}

.warning-img{
  width: min(460px, 100%);
  height: auto;
  display: block;
}


/* =========================
   IMAGEN QUIÉNES SOMOS
   ========================= */
.quienes-img-wrap{
  display: flex;
  justify-content: center;
  margin: 30px 0 10px 0;
}

.quienes-img{
  width: min(980px, 100%);
  height: auto;
  display: block;
}


.ex-video__frame--instagram {
  background: transparent !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: auto;
  aspect-ratio: auto !important;
  padding: 0;
}

.ex-video__frame--instagram .instagram-media {
  width: 100% !important;
  max-width: 540px !important;
  min-width: 280px !important;
  margin: 0 auto !important;
}

.ex-quote{
  font-style: italic;
  margin: 20px 0;
  padding-left: 15px;
  border-left: 3px solid #ccc;
}

.ex-title-block{
  text-align: center;
  margin-bottom: 20px;
}


.ex-title-img{
  max-width: 300px;
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}