/* =========================================================
   1) VARIABLES, RESET & UTILIDADES
   ========================================================= */
:root{
  --principal:#253a34;
  --fondo:#ffffff;
  --grisv:#404a3d;
  --header-height:56px; /* altura fija header por defecto */
}

*{ margin:0; padding:0; box-sizing:border-box; }

body{
  background:var(--fondo);
  color:var(--principal);
  font-family:sans-serif,'Inter',system-ui;
}

/* Small, unobtrusive hover for links: scale slightly without changing layout.
   By default links inherit surrounding text color and are not underlined.
   More specific rules (e.g. .footer a:hover) can still override this. */
a,
a:link,
a:visited{
  /* Keep links inline within paragraphs so they don't force line breaks.
     Inherit color from surrounding text and remove underlines by default. */
  display: inline;
  vertical-align: baseline;
  color: #8B4513;
  text-decoration: none;
}

/* Image links: add a slight scale on hover for linked images only. We apply the
   transition/transform to the image element so text links remain static. */
a img,
a:link img,
a:visited img{
  display:inline-block;
  transition: transform 160ms cubic-bezier(.2,.9,.3,1);
  will-change: transform;
}

a:hover img,
a:focus img{
  transform: scale(1.04);
}

.no-scroll{ overflow:hidden; }
.hidden{ display:none !important; }

/* Reveal-on-scroll (progresivo) */
.js .reveal{
  opacity:0; transform:translateY(12px);
  transition:opacity 620ms cubic-bezier(.2,.9,.3,1), transform 620ms cubic-bezier(.2,.9,.3,1);
  will-change:opacity, transform;
}
.js .reveal.in-view{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  .js .reveal, .js .reveal.in-view{ transition:none !important; transform:none !important; opacity:1 !important; }
}


/* =========================================================
   2) INTRO / TITLE SECTION + HEADER + COMPARTIR
   ========================================================= */
.title-section{
  min-height:100vh; width:100vw; position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  background:rgba(13,13,13,0.7);
}

/* Reserve space at top so the absolute header does not overlap centered title */
.title-section { padding-top: var(--header-height); }

/* Header dentro de la intro */
.title-section__header{
  /* Place header at the top of the title-section but not fixed to viewport */
  position: absolute; top: 0; left: 0; right: 0;
  z-index:1300;
  width:100%; height:var(--header-height); line-height:var(--header-height);
  display:flex; align-items:center; justify-content:center;
  padding:18px 4vw; background:rgba(37,58,52,0.55); backdrop-filter:blur(6px);
  opacity:0; pointer-events:auto; transform:none;
  transition:opacity 320ms ease, transform 320ms ease;
}
.title-section.header-visible .title-section__header{ opacity:1; pointer-events:auto; transform:none; }

/* When the header is not yet visible we still want the mobile share toggle to be interactive.
   Keep other header controls inert until header-visible is applied. */
.title-section:not(.header-visible) .title-section__header a,
.title-section:not(.header-visible) .title-section__header .share-column {
  pointer-events: none;
}
/* Ensure the skip-intro button remains clickable even before the header becomes visible */
.title-section:not(.header-visible) #skip-intro { pointer-events: auto; }

/* Logo en header */
.title-section__header a{ line-height:0; }
.logo{ display:block; margin:0; max-height:40px; width:auto; }

/* Pair two logos side-by-side while preserving their individual sizing rules
   Usage: wrap images in an inline element with class .logo-pair */
.logo-pair{ display:inline-flex; align-items:center; gap:10px; line-height:0; }
.logo--el-universal{ /* small tweak to keep the EL UNIVERSAL mark visually balanced */
  max-height:32px; width:auto;
}

/* Default logo-pair: flow-left (desktop). Mobile centering handled in media queries. */
.title-section__header .logo-pair{
  display:inline-flex; align-items:center; gap:10px;
}

/* Botón saltar intro */
#skip-intro{
  position:fixed; top:10px; right:68px; z-index:1400;
  background:rgba(37,58,52,0.72); color:#f0f0f0; border:1px solid rgba(255,255,255,0.06);
  padding:6px 10px; border-radius:8px; font-weight:700; cursor:pointer;
  box-shadow:0 8px 26px rgba(0,0,0,0.18); backdrop-filter:blur(4px);
  transition:transform 160ms ease, opacity 160ms ease;
}
#skip-intro:hover{ transform:translateY(-2px); }
#skip-intro:focus{ outline:3px solid rgba(255,255,255,0.12); }
.title-section.header-visible #skip-intro{ display:none !important; }

/* Compartir */
.share-column{
  display:flex; flex-direction:row; gap:10px; align-items:center;
}
.share-btn{
  width:44px; height:44px; border-radius:8px; border:none; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; font-weight:700;
  background:rgba(37,58,52,0.95); box-shadow:0 6px 18px rgba(0,0,0,0.18);
  transition:transform 180ms cubic-bezier(.2,.9,.3,1), box-shadow 180ms ease, background 180ms ease;
  will-change:transform;
}
.share-btn img{ width:24px; height:24px; display:block; object-fit:contain; transition:transform 160ms ease; }
.share-btn:hover, .share-btn:focus{ transform:translateY(-6px) scale(1.04); box-shadow:0 18px 46px rgba(37,58,52,0.22); background:linear-gradient(180deg, rgba(37,58,52,1), rgba(37,58,52,0.95)); }
.share-btn:hover img{ transform:scale(1.08); }
.share-btn:focus{ outline:3px solid rgba(255,255,255,0.08); }

/* Toggle compartir (móvil) */
.share-toggle{
  display:none; border:none; background:transparent; width:44px; height:44px; padding:6px;
  align-items:center; justify-content:center; cursor:pointer;
}
.share-toggle img{ width:28px; height:28px; display:block; }


/* =========================================================
   3) ESCENAS DE INTRO (FONDOS)
   ========================================================= */
.fixed-bg{ position:fixed !important; inset:0; z-index:0; opacity:1 !important; background-size:cover; background-position:center; pointer-events:none; }
.stage{ position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.5s ease-in-out; }
.scene3-faded{ opacity:0.4 !important; transition:opacity 1.2s cubic-bezier(.77,0,.18,1); }

#scene1{ background-image:url("../assets/oferta_falsa.jpg"); }
#scene2{ background-image:url("../assets/camino.jpg"); }
#scene3{ background-image:url("../assets/izaguirre.jpg"); }

/* Título principal */
.title{
  position:static; display:block; width:80%;
  margin:50px auto 0; text-align:center;
  font-size:clamp(30px,7vw,80px); font-family:"Changa One",sans-serif; text-transform:uppercase;
  letter-spacing:3px; color:#f0f0f0; opacity:0; transition:opacity 2s ease-in-out; z-index:1;
  text-shadow:0 8px 32px rgba(0,0,0,0.85), 0 2px 8px rgba(0,0,0,0.7), 0 0 2px #fff, 0 0 8px #fff;
}
/* Complemento: smaller, subtle line used inside H1 to add context or subtitle */
.complemento{
  /* Inline element so background can be applied per visual line when text wraps */
  display:inline;
  font-size: 0.55em;
  font-family:"changa one",sans-serif;
  font-weight:200;
  letter-spacing:1px;
  text-transform:none;
  margin-top:6px;
  color:rgba(240,240,240,0.95);
  opacity:0.95;
  /* Background per-line: use padding and clone the box for each line fragment.
    Use a gradient so the colored background begins at the vertical midpoint of the text line */
  background: linear-gradient(to bottom, rgba(37,58,52,0) 50%, rgba(37,58,52,0.95) 50%);
  padding:0.12em 0.5em;
  border-radius:6px;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
  /* Slight negative letter-spacing compensation to keep small caps tidy */
  line-height:1.05;
}

/* If .complemento is used as a block-level element (below H1), encourage wrapping the text
   into an inner inline span so the per-line background still applies: */
.complemento--block > span { display:inline; background: linear-gradient(to bottom, rgba(255,255,255,0) 50%, rgba(255,255,255,0.06) 50%); padding:0.12em 0.5em; border-radius:6px; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.show{ opacity:1; }



/* =========================================================
   4) TIPOGRAFÍA Y BLOQUES DE TEXTO
   ========================================================= */
h2{
  font:700 35px/1.2 'Inter',sans-serif;
  margin:40px 0 24px; padding:8px 0; letter-spacing:1px;
  border-bottom:2.5px solid rgba(37,58,52,0.35);
}
h3{ margin-bottom:18px; }

.texto{ max-width:920px; margin:24px auto 0; padding:0 5vw; }
.texto__inner p{ margin-bottom:20px; line-height:1.65; font-size:20px; }

/* Drop cap primer párrafo primera .texto */
.texto:first-of-type .texto__inner > p:first-of-type::first-letter{
  float:left; font-size:clamp(48px,6vw,96px); line-height:0.72; padding-top:6px; padding-right:12px;
  font-weight:800; font-family:"Changa One",serif; color:var(--principal);
}

/* Cita */
.cita{ max-width:920px; margin:24px auto 0; padding:8px 0 32px; position:relative; }
.cita__inner{ position:relative; padding:16px 32px 16px 24px; border:1.5px solid rgba(37,58,52,0.35); }
.cita p{ margin:0; font-size:20px; font-style:italic; line-height:1.2; text-align:left; }
.cita__autor{ display:block; text-align:right; font-size:0.95em; margin:8px 12px 0; font-style:italic; letter-spacing:0.5px; padding-top:8px; }
.cita__inner::before{ content:"\201C"; position:absolute; left:-32px; top:0; font-size:72px; opacity:.7; line-height:1; font-family:"Changa One",sans-serif; }
.cita__inner::after { content:"\201D"; position:absolute; right:-32px; bottom:0; font-size:72px; opacity:.7; line-height:1; font-family:"Changa One",sans-serif; }

/* Sumario */
.summary{ position:relative; margin-bottom:2px; }
.summary::before{ content:""; position:absolute; inset:0; z-index:0; pointer-events:none; }
.summary__inner, .summary p{ position:relative; z-index:1; padding:clamp(20px,4vw,32px) 5vw; margin-top:0; }
.summary__inner{ max-width:920px; margin-inline:auto; }
.summary p{ font:bold clamp(16px,2.1vw,20px)/1.65 'Inter',sans-serif; text-align:center; }

/* Separador ♠ */
.separador-spade{ text-align:center; }
.separador-spade span{
  font-size:3.5em; color:transparent; -webkit-text-stroke:2px var(--principal); display:inline-block;
}

/* Emphasis ligero */
.cursiva{ font-weight:bold; }


/* =========================================================
   5) IMÁGENES / VIDEO / GALERÍA / LIGHTBOX
   ========================================================= */
/* Foto suelta */
.foto-container{
  display:flex; flex-direction:column; align-items:center;
  margin:40px 0; padding:0 4vw;
}
.foto{
  display:block; width:100%; max-width:750px; height:auto;
  border-radius:10px; box-shadow:0 6px 20px rgba(37,58,52,0.12);
  transition:transform .3s, box-shadow .3s;
}
.foto:hover{ transform:translateY(-6px) scale(1.01); box-shadow:0 18px 48px rgba(37,58,52,0.16); }
.leyenda, .galeria-leyenda, .foto__caption{
  display:block; text-align:center; color:#555; font-size:1em !important;
  margin:8px auto 0; background:none;
}

/* Video */
.video-container{
  display:flex; justify-content:center; align-items:center;
  margin:32px 0; padding:32px 0; transition:box-shadow .6s, background .6s;
}
.video-container video{
  display:block; max-width:90vw; height:auto; border-radius:16px;
  box-shadow:0 4px 16px rgba(250,250,250,.123); border:2px solid #e6e6e6;
}

/* Galería (desktop) */
.galeria-container{
  display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:340px 180px;
  gap:18px; max-width:1100px; margin:48px auto 10px; padding:0 8px;
}
.galeria-container .galeria-img:nth-child(1){ grid-column:1 / span 3; grid-row:1; height:100%; object-fit:cover; }
.galeria-container .galeria-img:nth-child(2){ grid-column:1; grid-row:2; height:100%; object-fit:cover; }
.galeria-container .galeria-img:nth-child(3){ grid-column:2; grid-row:2; height:100%; object-fit:cover; }
.galeria-container .galeria-img:nth-child(4){ grid-column:3; grid-row:2; height:100%; object-fit:cover; }

.galeria-img{
  width:100%; height:220px; border-radius:12px; object-fit:cover;
  box-shadow:0 2px 12px rgba(0,0,0,0.10); transition:transform .3s, box-shadow .3s; aspect-ratio:1/1;
}
.galeria-img.vertical{ aspect-ratio:3/4; }
.galeria-img.horizontal{ aspect-ratio:4/3; }
.galeria-img:hover{ transform:scale(1.03); box-shadow:0 8px 32px rgba(37,58,52,0.18); }

/* Lightbox */
.glightbox-overlay{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.75); z-index:2000; padding:20px;
}
.glightbox-overlay.open{ display:flex; }
.glightbox-modal{
  width:100%; max-width:1200px; max-height:90vh;
  display:flex; align-items:center; justify-content:center; background:transparent; position:relative;
}
.glightbox-img{
  max-width:100%; max-height:90vh; object-fit:contain; border-radius:6px;
  box-shadow:0 8px 40px rgba(0,0,0,0.6); background:#111;
}
.glightbox-caption{ color:#fff; text-align:center; margin-top:12px; font-size:.95rem; }
.glightbox-close, .glightbox-prev, .glightbox-next{
  position:absolute; background:rgba(255,255,255,0.06); color:#fff; border:none;
  padding:8px 10px; border-radius:6px; cursor:pointer; backdrop-filter:blur(4px);
}
.glightbox-close{ top:12px; right:12px; }
.glightbox-prev{ left:12px; top:50%; transform:translateY(-50%); }
.glightbox-next{ right:12px; top:50%; transform:translateY(-50%); }
.glightbox-close:focus, .glightbox-prev:focus, .glightbox-next:focus{ outline:2px solid rgba(255,255,255,0.2); }


/* =========================================================
   6) SCROLL-ANIM (STICKY IMG + TEXTO)
   ========================================================= */
.scroll-anim-section{
  position:relative; min-height:120vh; background:#f0d8b6; padding-top:0;
}
.fixed-panel{
  position:sticky; top:0; left:0; width:100vw; min-height:64px;
  background:rgba(37,58,52,0.92); color:#fff; padding:20px 0 10px; text-align:center; z-index:10;
  box-shadow:0 2px 12px rgba(37,58,52,0.12);
}
.anim-block{
  opacity:0; transform:translateY(40px); transition:opacity 1s, transform 1s;
  max-width:700px; margin:160px auto 0; padding:32px; font-size:1.2em;
}
.anim-block.visible{ opacity:1; transform:translateY(0); }

/* Bloque sticky img + texto */
.scroll-block{
  display:flex; align-items:flex-start;
  /* Make the container flow normally to avoid overlapping sticky children */
  position:relative; z-index:2;
  width:100%; max-width:1200px; margin:120px auto 0; background:none; border-radius:12px; padding:32px;
}
.sticky-img{
  flex:0 0 60%;
  /* Keep only this container sticky; nested images should flow inside it */
  position:sticky; top:120px; min-height:520px; height:auto; display:flex; align-items:center; overflow:visible;
}
.sticky-img img{
  /* Ensure images do not create an additional sticky stacking context */
  position:static; width:100%; height:auto; max-height:800px; object-fit:cover; transition:opacity .7s;
}
.sticky-img img.hide{ opacity:0; pointer-events:none; }

.scroll-text{
  flex:0 0 30%; margin-left:48px; padding-left:10px; font-size:20px; line-height:1.7;
}
.scroll-text p{ margin-bottom:18px; }
.scroll-text.visible{ opacity:1; transform:translateY(0); }

/* Bloque final sticky con texto superpuesto */
.scroll-block-final{
  position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; min-height:1400px;
}
.sticky-img-final{
  position:sticky; top:120px; min-height:700px; height:700px; display:flex; align-items:center; justify-content:center; width:100%; z-index:1;
}
.sticky-img-final-img{ display:block; margin:0 auto; width:100%; max-width:900px; border-radius:0; }
.scroll-text-final{
  position:absolute; left:50%; transform:translateX(-50%);
  top:1200px; width:40%; background:rgba(37,58,52,0.8); color:#fff; font-weight:bold;
  padding:32px; text-align:center; box-shadow:0 4px 32px rgba(0,0,0,0.12); z-index:2; transition:top .2s;
}
.scroll-block-final.scrolled .scroll-text-final{ top:180px; }


/* =========================================================
   7) LÍNEA DE TIEMPO VERTICAL
   ========================================================= */
.timeline-vertical{
  width:100%; max-width:480px; margin:80px auto 40px; display:flex; flex-direction:column; align-items:center;
  overflow-y:auto; padding:0 0 40px; scroll-behavior:smooth;
}
.timeline-card{
  background:#fff; border-radius:16px; box-shadow:0 2px 16px rgba(0,0,0,0.10);
  padding:32px 24px; width:100%; display:flex; flex-direction:column; align-items:center; position:relative;
  opacity:0; transform:translateY(40px); transition:opacity .8s cubic-bezier(.77,0,.18,1), transform .8s cubic-bezier(.77,0,.18,1);
}
.timeline-card.visible{ opacity:1; transform:translateY(0); }
.timeline-img{ width:100%; height:auto; margin-bottom:16px; display:flex; align-items:center; justify-content:center; }
.timeline-img img{ width:100%; height:100%; object-fit:cover; border-radius:12px; }
.timeline-content{ text-align:center; font-size:1.1em; color:#253a34; }
.timeline-line{ width:6px; height:60px; margin:0 auto; border-radius:3px; background:linear-gradient(to bottom, #253a34 60%, #f0d8b6 100%); }

.timeline-card ul{ list-style:none; padding-left:0; margin:18px 0 0; }
.timeline-card ul li{
  font-size:1.08em; margin-bottom:12px; display:flex; align-items:center; gap:10px; color:#253a34;
  background:#f7f3ea; border-radius:8px; padding:8px 14px 8px 32px; box-shadow:0 1px 6px rgba(0,0,0,0.06);
  position:relative; opacity:0; transform:translateY(30px);
  transition:opacity .7s cubic-bezier(.77,0,.18,1), transform .7s cubic-bezier(.77,0,.18,1);
}
.timeline-card ul li.visible{ opacity:1; transform:translateY(0); }
.timeline-card ul li::before{
  content:'\2022'; position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#888; font-size:1.3em;
}


/* =========================================================
   8) BLOQUES MISC: STORYMAP WRAPPER, MULTIMEDIA, ANOTACIÓN, FOOTER, INCRUSTADOS
   ========================================================= */
.storymap{ width:100vw; margin:0; padding:0; background:none; }
.storymap__inner{ max-width:100vw; margin:0 auto; padding:32px 0; text-align:center; }

.multimedia-container{
  width:100vw; height: 100vh !important; display:flex; justify-content:center; background:#253a34;
}


/* Ensure the Tableau iframe is rendered in its desktop layout on wide viewports by
   giving it a larger minimum width when the viewport is wide. This avoids forcing
   Tableau to fall back to a mobile layout when the embed is narrow. */
@media (min-width:900px){
  .grafico{
    width:40vw;
    max-width:1200px;
    min-width:900px;
    height:1000px; /* keep previous height */
    border: none; display:block; margin:0 auto; padding: auto;
    align-items: center;
  }
}

.anotacion{
  min-height:20vh; width:100vw; background:var(--principal); color:#f0d8b6;
  display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center;
  font-size:1.1em; font-family:'Inter',Arial,sans-serif; padding:15px 5vw;
}
.anotacion__texto{
  width:40vw; min-width:320px; max-width:600px; margin:0 auto; text-align:left; padding:10px 0;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center; background:none;
}
.anotacion__texto p{ line-height:1.7; }

/* Notas */
.nota{
  font-size:.92em; font-style:italic; color:var(--principal);
  margin:6px 0; display:block; line-height:1.4; text-align:center;
}

/* Footer */
.footer{
  width:100vw; background:rgba(37,58,52,0.92); color:#f0d8b6;
  padding:32px 0 24px; text-align:center; font-size:1.1em; letter-spacing:.5px;
}
.footer__inner{ max-width:900px; margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:12px; }
.footer a:hover{ color:#ffd700; }
.logo_footer{ display:block; margin:0; max-height:100px; width:auto; }

/* Footer: make El Universal mark smaller so it doesn't overpower CONNECTAS mark */
.logo_footer.logo--el-universal{ max-height:56px; width:auto; }

/* Place share buttons in the footer under the logos. Keep them centered and compact. */
.footer .share-column{
  display:flex; gap:10px; align-items:center; justify-content:center;
  margin-top:12px;
}
.footer .share-btn{ width:44px; height:44px; }

/* Incrustado redes */
.incrustado-redes{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:100%; max-width:1000px; margin:40px auto; padding:0;
}
.incrustado-redes iframe{
  width:100%; max-width:900px; min-height:600px; border:none; border-radius:12px;
  box-shadow:0 2px 16px rgba(0,0,0,0.10); display:block;
}


/* =========================================================
   9) RESPONSIVE ≤ 720px
   ========================================================= */
@media (max-width:720px){
  /* Fondos verticales */
  #scene1{ background-image:url("../assets/oferta_falsa_vertical.jpg"); background-position:center top; }
  #scene2{ background-image:url("../assets/camino_vertical.jpg"); background-position:center top; }
  #scene3{ background-image:url("../assets/izaguirre_vertical.jpg"); background-position:center top; }

  .title-section{ min-height:100vh; }
  .title{ font-size:36px !important; font-weight:normal !important; margin-top:30px !important; }

  /* Skip intro más cerca del borde */
  #skip-intro{ right:20px !important; padding:6px 8px !important; }

  /* Drop cap más discreto */
  .texto:first-of-type .texto__inner > p:first-of-type::first-letter{
    font-size:60px; line-height:.85; padding-top:3px;
  }

  /* Galería móvil: layout adaptativo */
  .galeria-container{
    display:grid; grid-template-columns:1fr; grid-auto-rows:auto; gap:0; padding:0; border-radius:0;
    max-width:100%; margin:0 auto;
    --gallery-large:56vw; --gallery-mid:40vw;
  }
  .galeria-container .galeria-img{
    width:100%; margin:0; border-radius:0; box-shadow:none; object-fit:cover; grid-column:auto; grid-row:auto;
    visibility:visible; opacity:1;
  }
  /* neutralizar orientaciones */
  .galeria-img.vertical, .galeria-img.horizontal{ aspect-ratio:auto; }

  /* 3 imágenes: 1 fila full + 2 medias */
  .galeria-container.count-3{ grid-template-columns:1fr 1fr; grid-template-rows:var(--gallery-large) var(--gallery-mid); }
  .galeria-container.count-3 .galeria-img:nth-child(1){ grid-column:1 / -1; grid-row:1; height:var(--gallery-large); }
  .galeria-container.count-3 .galeria-img:nth-child(2){ grid-column:1; grid-row:2; height:var(--gallery-mid); }
  .galeria-container.count-3 .galeria-img:nth-child(3){ grid-column:2; grid-row:2; height:var(--gallery-mid); }

  /* 4 imágenes: full / dos col / full */
  .galeria-container.count-4{
    grid-template-columns:1fr 1fr;
    grid-template-rows:var(--gallery-large) var(--gallery-mid) var(--gallery-large);
  }
  .galeria-container.count-4 .galeria-img:nth-child(1){ grid-column:1 / -1; grid-row:1; height:var(--gallery-large); }
  .galeria-container.count-4 .galeria-img:nth-child(2){ grid-column:1; grid-row:2; height:var(--gallery-mid); }
  .galeria-container.count-4 .galeria-img:nth-child(3){ grid-column:2; grid-row:2; height:var(--gallery-mid); }
  .galeria-container.count-4 .galeria-img:nth-child(4){ grid-column:1 / -1; grid-row:3; height:var(--gallery-large); }

  /* Texto y títulos más compactos */
  .texto{ padding-left:8vw !important; padding-right:8vw !important; }
  .galeria-leyenda, .foto__caption{ font-size:.88rem !important; line-height:1.25 !important; padding-top:6px !important; margin-bottom:8px !important; color:#555; }
  h2{ font-size:24px; }
  h2.metodo{ font-size:20px; padding:6px 12px; }
  .texto__inner p, .scroll-text p, .cita p, .anotacion p{ font-size:18px; line-height:1.6; }

  /* Scroll-anim móvil: apilar, sticky image arriba */
  .scroll-anim-section{ padding-top:0px; }
  .scroll-block{
    display:block !important; width:94% !important; max-width:720px !important;
    margin:36px auto !important; padding:0 !important; position:relative !important; top:auto !important;
  }
  .sticky-img{
    width:100% !important; position:sticky !important; top:250px !important; min-height:200px !important; max-height:520px !important;
    display:flex !important; align-items:center !important; justify-content:center !important; overflow:hidden !important; margin-bottom:8px !important;
    border-radius:8px !important; z-index:1 !important;
  }
  .sticky-img img{
    width:100% !important; height:auto !important; max-height:520px !important; object-fit:cover !important; display:block !important;
  }
  .scroll-text{
    width:100% !important; margin:6px auto 28px !important; padding:10px 6vw 28px !important;
    font-size:18px !important; line-height:1.6 !important; background:rgba(255,255,255,0.4) !important; color:var(--principal) !important;
    border-radius:12px !important; box-shadow:0 8px 24px rgba(0,0,0,0.12) !important; border:1px solid rgba(37,58,52,0.06) !important;
    position:relative !important; z-index:5 !important;
  }

  /* Invertir orden del 2º anim-block (imagen primero) */
  .scroll-anim-section .anim-block:nth-of-type(3){
    display:flex !important; flex-direction:column-reverse !important; align-items:stretch !important; padding:0 !important;
  }
  .scroll-anim-section .anim-block:nth-of-type(3) .sticky-img{ order:1 !important; }

  /* Bloque final sticky móvil */
  .sticky-img.sticky-img-final{
    top:120px !important; min-height:180px !important; max-height:420px !important; margin-bottom:6px !important; border-radius:6px !important;
  }
  .sticky-img.sticky-img-final img{ max-height:420px !important; width:100% !important; height:auto !important; object-fit:cover !important; display:block !important; }

  /* Compartir en móvil */
  .share-toggle{
    display:inline-flex; position:fixed; top:5px; right:12px; z-index:1350;
    background:rgba(37,58,52,0.95); border-radius:8px; padding:6px;
    box-shadow:0 6px 18px rgba(0,0,0,0.18); width: 40px; height: 40px;
  }
  .share-toggle:focus{ outline:3px solid rgba(255,255,255,0.12); }

  .share-column{
    position:fixed; top:calc(8px + 35px + 8px); right:12px; z-index:1340;
    display:flex; flex-direction:column; gap:8px; align-items:flex-end;
    background:transparent; padding:4px; border-radius:8px; transform-origin:top right;
    transition:opacity 180ms ease, transform 180ms ease;
    opacity:0; pointer-events:none; transform:translateY(-6px) scale(0.98);
  }
  .title-section.shares-open .share-column{ opacity:1; pointer-events:auto; transform:translateY(0) scale(1); }
  .share-btn{ width:35px; height:35px; border-radius:6px; }

  /* Ensure footer share buttons remain visible on mobile: override the
     floating (header) `.share-column` rules when the column is inside the footer. */
  .footer .share-column{
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    padding: 0 !important;
    margin-top: 12px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  .footer .share-btn{ width:44px !important; height:44px !important; }

  /* Multimedia */
  .multimedia-container{ width:100% !important; height: 50vh !important; margin:0 !important; padding-top:10px !important; background:#253a34; }

  .grafico{
  width: 100%; height: 900px; border:none; display:block; object-fit:cover; margin:0 auto;
  }

  .logo-pair{
    justify-content:center !important; margin:0 auto !important;
    width: 100%;
  }
  .logo--el-universal, .logo{
    width: auto !important; height:50px !important;
  }
  /* Footer logo sizing (mobile): balance proportions so CONNECTAS isn't oversized
     and EL UNIVERSAL remains legible. These values override desktop defaults
     only for small screens. */
  .footer .logo_footer {
    max-height: 40px !important;
    width: auto !important;
  }
  /* Make El Universal mark slightly smaller than CONNECTAS in the footer on mobile */
  .footer .logo_footer.logo--el-universal {
    max-height: 30px !important;
    width: auto !important;
  }
}

/* Mini: ≤ 420px */
@media (max-width:420px){
  :root{ --header-height:48px; }
  .title-section__header{ padding-inline:0; height:var(--header-height); line-height:var(--header-height); }
  /* Make header logos even smaller on very small screens and keep them centered */
  .title-section__header{ justify-content:center !important; }
  .title-section__header .logo-pair{ position:static !important; transform:none !important; left:auto !important; top:auto !important; margin:0 auto !important; }
  .logo{ max-height:28px; }
  .logo--el-universal{ max-height:22px; }
  .share-btn{ width:34px; height:34px; }
}


/* =========================================================
   10) METODO (BLOQUE AVISO)
   ========================================================= */
.metodo-container{ text-align:center; }
h2.metodo{
  display:block !important; margin:0 auto 14px !important; text-align:center !important;
  background:linear-gradient(90deg, rgba(37,58,52,0.97), rgba(37,58,52,0.85));
  color:var(--fondo); padding:10px 20px; border-radius:6px; box-shadow:0 8px 18px rgba(37,58,52,0.18);
  font-weight:700; letter-spacing:.6px; font-family:'Inter',Arial,sans-serif;
}
h2.metodo + p{ margin-top:8px; }
