/* =====================================================
   style.css
   Estilos generales del sitio SSCJP.
   Depende de las variables definidas en colors.css
   (--paper, --navy, --red, --gold, etc.) — cargar
   colors.css primero en el <head>.
   ===================================================== */

   /* ============ Navegación por secciones (menú tipo pestañas) ============ */
/* Fuerza el ocultamiento aunque .section/.hero definan su propio display */
#main-content > section[hidden]{ display:none !important; }


/* ============ Reset-ish ============ */
  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; overflow-x:hidden; }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
  }
  body{
    margin:0; background:var(--paper); color:var(--ink);
    font-family:var(--font-body); font-size:16px; line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  img,svg{ display:block; max-width:100%; }
  a{ color:inherit; }
  h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; margin:0; text-wrap:balance; color:var(--ink); }
  p{ margin:0; }
  ul{ margin:0; padding:0; list-style:none; }
  button{ font-family:inherit; }
  :focus-visible{ outline:3px solid var(--gold); outline-offset:3px; border-radius:4px; }
  blockquote{ margin:0; }

  .container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
  .eyebrow{
    font-family:var(--font-mono); font-size:12.5px; font-weight:600;
    letter-spacing:0.09em; text-transform:uppercase; color:var(--navy);
  }
  :root[data-theme="dark"] .eyebrow{ color:var(--gold); }
  .stat-num{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }

  .skip-link{
    position:absolute; left:12px; top:-60px; z-index:200;
    background:var(--navy); color:var(--navy-ink);
    padding:12px 18px; border-radius:8px; font-weight:600; transition:top .2s ease;
  }
  .skip-link:focus{ top:12px; }

  /* ============ Top utility bar ============ */
  .topbar{ background:var(--navy-3); color:var(--navy-ink-soft); font-size:13.5px; }
  .topbar .container{
    display:flex; align-items:center; justify-content:flex-end;
    gap:22px; padding-top:8px; padding-bottom:8px; flex-wrap:wrap;
  }
  .topbar a{ text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
  .topbar a:hover{ color:var(--navy-ink); }
  .topbar .phone-line{ margin-right:auto; color:var(--navy-ink); font-weight:600; }
  .topbar svg{ width:14px; height:14px; flex:none; }

  /* ============ Header / nav ============ */
  .site-header{ background:var(--paper); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:100; }
  .site-header .container{
    display:flex; align-items:center; justify-content:space-between;
    padding-top:14px; padding-bottom:14px; gap:20px; flex-wrap:wrap; row-gap:10px;
  }
  .brand{ display:flex; align-items:center; gap:12px; text-decoration:none; min-width:0; flex:1 1 auto; }
  .brand-mark{ width:42px; height:42px; flex:none; object-fit:contain; }
  .brand-name{ font-family:var(--font-display); font-weight:700; font-size:16px; line-height:1.25; color:var(--ink); display:block; overflow-wrap:break-word; }

  .header-actions{ display:flex; align-items:center; gap:10px; flex:0 1 auto; min-width:0; }

  .primary-nav{ display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:2px; row-gap:4px; }
  .primary-nav a.is-active{
  color:var(--ink); background:var(--paper-2);
  box-shadow: inset 0 -3px 0 var(--gold);
  }
  .primary-nav a.nav-cta.is-active{
    box-shadow: inset 0 -3px 0 var(--red-ink);
  }
  .primary-nav a{
    text-decoration:none; font-weight:600; font-size:13.5px; color:var(--ink-soft);
    padding:9px 10px; border-radius:7px; transition:background .15s ease,color .15s ease;
    white-space:nowrap;
  }
  .primary-nav a:hover{ color:var(--ink); background:var(--paper-2); }
  .nav-cta{ background:var(--red) !important; color:var(--red-ink) !important; margin-left:6px; }
  .nav-cta:hover{ filter:brightness(1.08); background:var(--red) !important; }

  .theme-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:50%; border:1px solid var(--line);
    background:var(--paper); color:var(--ink-soft); cursor:pointer; flex:none;
    transition:background .15s ease, color .15s ease;
  }
  .theme-toggle:hover{ background:var(--paper-2); color:var(--ink); }
  .theme-toggle svg{ width:18px; height:18px; }
  .theme-toggle .icon-moon{ display:none; }
  :root[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
  :root[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }

  .nav-toggle{
    display:none; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:8px; border:1px solid var(--line);
    background:var(--paper); cursor:pointer;
  }
  .nav-toggle svg{ width:19px; height:19px; }

  @media (max-width: 1060px){
  .primary-nav{
    position:fixed; inset:0; width:auto; height:100vh;
    background:linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
    flex-direction:column; align-items:stretch; justify-content:flex-start;
    padding:100px 28px 32px; gap:2px;
    opacity:0; pointer-events:none; transform:translateY(-10px);
    transition:opacity .22s ease, transform .22s ease;
    z-index:200; overflow-y:auto;
  }
  .primary-nav[data-open="true"]{ opacity:1; pointer-events:auto; transform:none; }
  .primary-nav a{
    padding:16px 2px; font-size:19px; color:var(--navy-ink);
    border-bottom:1px solid rgba(250,247,240,0.14); border-radius:0;
  }
  .primary-nav a:hover{ background:transparent; color:var(--gold); }
  .primary-nav a.is-active{ color:var(--gold); background:transparent; box-shadow:inset 0 -3px 0 var(--gold); }
  .primary-nav a.nav-cta.is-active{ box-shadow:none; color:var(--red-ink) !important; }
  .nav-cta{ margin-left:0; margin-top:18px; text-align:center; border-bottom:none; }
  .nav-toggle{ display:inline-flex; }
}

  /* El botón debe quedar SIEMPRE encima del panel (incluso abierto), si no,
     una vez abierto el menú tapa al propio botón y ya no se puede volver
     a tocar para cerrarlo. */
  .nav-toggle{ position:relative; z-index:201; }

  /* Fondo oscuro detrás del panel: igual que el patrón que ya usas en tus
     modales (Museo, Cantos, etc.) — toca afuera del panel para cerrarlo. */
  .nav-backdrop{
    position:fixed; inset:0; background:rgba(11,19,34,0.45);
    opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:190;
  }
  .nav-backdrop[data-open="true"]{ opacity:1; pointer-events:auto; }
  @media (min-width:1061px){ .nav-backdrop{ display:none !important; } }

  /* El ícono cambia de "☰" a "✕" para que se note que el menú está abierto */
  .nav-toggle .icon-close{ display:none; }
  .nav-toggle[aria-expanded="true"] .icon-menu{ display:none; }
  .nav-toggle[aria-expanded="true"] .icon-close{ display:block; }

  /* ============ Buttons ============ */
  .btn{
    display:inline-flex; align-items:center; gap:9px; text-decoration:none;
    font-weight:600; font-size:15px; padding:13px 22px; border-radius:9px;
    border:1px solid transparent; cursor:pointer; transition:transform .15s ease,filter .15s ease;
  }
  .btn:hover{ filter:brightness(1.06); }
  .btn:active{ transform:translateY(1px); }
  .btn-red{ background:var(--red); color:var(--red-ink); }
  .btn-outline{ background:transparent; border-color:var(--navy-ink-soft); color:var(--navy-ink); }
  .btn-outline:hover{ background:rgba(250,247,240,0.08); }
  .btn-ink{ background:var(--navy); color:var(--navy-ink); }
  .btn-ghost{ background:transparent; border-color:var(--line); color:var(--ink); }
  .btn-ghost:hover{ background:var(--paper-2); }
  .btn-sm{ padding:9px 16px; font-size:13.5px; border-radius:999px; }

  /* ============ Reveal ============ */
  .reveal{ opacity:0; transform:translateY(16px); transition:opacity .55s ease, transform .55s ease; }
  .reveal.is-visible{ opacity:1; transform:none; }
  @media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

  /* ============ Hero ============ */
  .hero{
    background:
      radial-gradient(760px 440px at 90% -12%, rgba(200,30,53,0.18), transparent 62%),
      /*linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);*/
      linear-gradient(180deg, #21499c 0%, #091329 100%);
    color:var(--navy-ink); padding:30px 0 0;
  }
  .hero-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:48px; align-items:center; padding-bottom:44px; }
  .hero-kicker{ color:var(--gold); }
  .hero h1{ color:var(--navy-ink); font-size:clamp(30px,4vw,46px); line-height:1.12; margin-top:14px; }
  .hero-quote{
    margin-top:22px; padding:16px 18px; border-left:3px solid var(--gold);
    background:rgba(250,247,240,0.06); border-radius:0 10px 10px 0;
    font-family:var(--font-display); font-style:italic; font-size:16px; color:var(--navy-ink-soft);
  }
  .hero-quote cite{ display:block; margin-top:8px; font-family:var(--font-mono); font-style:normal; font-size:11.5px; color:var(--gold); letter-spacing:.03em; }
  .hero-actions{ display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
  .hero-quicklinks{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
  .hero-quicklinks a{
    font-size:13px; font-weight:600; text-decoration:none; color:var(--navy-ink-soft);
    border:1px solid rgba(185,192,209,0.3); padding:8px 14px; border-radius:999px;
    transition:background .15s ease, color .15s ease;
  }
  .hero-quicklinks a:hover{ background:rgba(250,247,240,0.08); color:var(--navy-ink); }

  .hero-art{ position:relative; text-align:center; }
  .hero-emblem-download{
    display:inline-flex; align-items:center; gap:6px; margin-top:16px;
    font-size:12.5px; font-weight:600; text-decoration:none; color:var(--navy-ink-soft);
    border:1px solid rgba(185,192,209,0.3); padding:7px 14px; border-radius:999px;
    transition:background .15s ease, color .15s ease;
  }
  .hero-emblem-download:hover{ background:rgba(250,247,240,0.08); color:var(--navy-ink); }
  .hero-emblem-download svg{ width:14px; height:14px; }
  .hero-emblem{
    position:relative; aspect-ratio:1; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
  }
  .hero-emblem img{
    width:100%; height:100%; object-fit:cover; border-radius:50%;
    filter:drop-shadow(0 10px 26px rgba(0,0,0,0.45));
  }

  .photo-frame{
    margin-top:0; border:1px solid var(--line-soft); border-top:none; background:var(--paper-2);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
    text-align:center; color:var(--ink-soft); padding:34px 24px;
  }
  .photo-frame svg{ width:34px; height:34px; opacity:.55; }
  .photo-frame span{ font-size:13px; max-width:52ch; }
  .photo-frame.hero-photo{ min-height:220px; }
  .media-banner{ margin-top:0; padding:15px; }
  .media-banner img{
    width:100%; aspect-ratio:2/1; object-fit:cover; display:block;
    border:1px solid var(--line-soft); border-top:none; border-radius:20px;
  }
  .portrait-card{ margin:20px 0 0; max-width:220px; }
  .portrait-card img{
    width:100%; aspect-ratio:1; object-fit:cover; display:block;
    border:1px solid var(--line-soft); border-radius:12px;
  }
  .portrait-card figcaption{ margin-top:8px; font-size:12.5px; color:var(--ink-soft); text-align:center; }

  /* ============ Padre Yermo: layout de 2 columnas ============ */
  .column-layout{
    display:flex; gap:40px; align-items:flex-start; margin-top:20px;
  }
  .col-left{ flex:3; display:flex; flex-direction:column; gap:16px; }
  .col-left p{ color:var(--ink-soft); font-size:15.5px; }
  .col-left ul{ display:flex; flex-direction:column; gap:14px; }
  .col-left li{ font-size:15px; color:var(--ink-soft); padding-left:18px; position:relative; }
  .col-left li::before{
    content:''; position:absolute; left:0; top:9px; width:6px; height:6px; border-radius:50%; background:var(--gold);
  }
  .col-left strong{ color:var(--ink); }
  .col-right{ flex:2; display:flex; flex-direction:column; gap:20px; }
  .col-right .portrait-card{ margin:0 auto; max-width:340px; }
  .col-right .info-card{ max-width:none; }
  @media (max-width:768px){
    .column-layout{ flex-direction:column; gap:24px; }
  }



  @media (max-width: 900px){
    .hero-grid{ grid-template-columns:1fr; }
    .hero-art{ order:-1; max-width:260px; margin:0 auto; }
  }

  /* ============ Quick access ============ */
  .quickaccess{ padding:36px 0; border-bottom:1px solid var(--line); }
  .quickaccess ul{ display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }
  .quickaccess a{
    display:flex; flex-direction:column; align-items:center; gap:10px;
    text-decoration:none; text-align:center; padding:16px 8px; border-radius:12px;
    color:var(--ink-soft); font-size:12.5px; font-weight:600;
    transition:background .15s ease, color .15s ease;
  }
  .quickaccess a:hover{ background:var(--paper-2); color:var(--ink); }
  .quickaccess .icon-badge{
    width:44px; height:44px; border-radius:50%; background:var(--paper-2);
    display:flex; align-items:center; justify-content:center; color:var(--navy);
  }
  :root[data-theme="dark"] .quickaccess .icon-badge{ color:var(--gold); }
  .quickaccess svg{ width:21px; height:21px; }
  @media (max-width:760px){ .quickaccess ul{ grid-template-columns:repeat(3,1fr); } }

  /* ============ Section headers ============ */
  .section{ padding:10px 0; }
  .section-head{ max-width:680px; margin-bottom:38px; }
  .section-head h2{ font-size:clamp(25px,2.8vw,32px); margin-top:12px; }
  .section-head p{ color:var(--ink-soft); margin-top:14px; font-size:16px; }
  .section-alt{ background:var(--paper-2); }
  .subsection{ margin-top:44px; }
  .subsection:first-of-type{ margin-top:0; }
  .subsection-head{ display:flex; align-items:baseline; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
  .subsection-head h3{ font-size:20px; }
  .subsection-head .tag{
    font-family:var(--font-mono); font-size:11px; letter-spacing:.05em; text-transform:uppercase;
    color:var(--red); font-weight:600;
  }
  .subsection > p{ color:var(--ink-soft); font-size:15.5px; max-width:74ch; }
  .subsection > p + p{ margin-top:12px; }

  /* ============ Cards ============ */
  .card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:18px; }
  .card-grid.cols-2{ grid-template-columns:repeat(2,1fr); }
  .card-grid.cols-4{ grid-template-columns:repeat(4,1fr); }
  .info-card{
    background:var(--paper); border:1px solid var(--line); border-radius:16px;
    overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--shadow);
  }
  .info-card .tag-bar{ height:5px; }
  .tag-bar.cat-ninos{ background:var(--red); }
  .tag-bar.cat-mayores{ background:var(--navy); }
  .tag-bar.cat-general{ background:var(--gold); }
  .info-card .card-body{ padding:22px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
  .card-icon{ width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; }
  .card-icon.cat-ninos{ background:rgba(200,30,53,0.12); color:var(--red); }
  .card-icon.cat-mayores{ background:rgba(22,35,63,0.1); color:var(--navy); }
  .card-icon.cat-general{ background:rgba(199,154,59,0.16); color:var(--gold); }
  :root[data-theme="dark"] .card-icon.cat-mayores{ color:var(--navy-ink-soft); }
  .card-icon svg{ width:21px; height:21px; }
  .info-card h4{ font-size:17.5px; font-family:var(--font-display); font-weight:600; }
  .info-card p{ color:var(--ink-soft); font-size:14px; flex:1; }
  .info-card .card-cat{ font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft); }
  @media (max-width:960px){ .card-grid,.card-grid.cols-4{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:640px){ .card-grid,.card-grid.cols-2,.card-grid.cols-4{ grid-template-columns:1fr; } }

  /* ============ Quote / patrons ============ */
  .pull-quote{
    margin-top:22px; padding:20px 22px; border-left:3px solid var(--red);
    background:var(--paper); border-radius:0 10px 10px 0; font-family:var(--font-display);
    font-style:italic; font-size:17px; color:var(--ink);
  }
  .pull-quote cite{ display:block; margin-top:10px; font-family:var(--font-mono); font-style:normal; font-size:12px; color:var(--ink-soft); }
  .chip-list{ display:flex; flex-wrap:wrap; gap:9px; margin-top:16px; }
  .chip{ padding:8px 14px; border-radius:999px; font-size:13.5px; font-weight:600; color:var(--ink-soft); background:var(--paper); border:1px solid var(--line); }

  /* ============ Stats ============ */
  .stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:20px; }
  .stat-box{ background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:20px; }
  .stat-box .stat-num{ display:block; font-size:27px; font-weight:600; color:var(--navy); }
  :root[data-theme="dark"] .stat-box .stat-num{ color:var(--gold); }
  .stat-box .stat-label{ font-size:13px; color:var(--ink-soft); margin-top:6px; display:block; }
  @media (max-width:880px){ .stat-row{ grid-template-columns:repeat(2,1fr); } }

  /* ============ Presence map cols ============ */
  .presence-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:40px; margin-top:20px; align-items:start; }
  @media (max-width:820px){ .presence-grid{ grid-template-columns:1fr; gap:26px; } }

  /* ============ Gallery ============ */
  .gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:18px; }
  .gallery-grid .photo-frame{ border:1px solid var(--line-soft); border-radius:12px; min-height:140px; padding:18px 12px; }
  @media (max-width:820px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }

  .gallery-grid .gallery-item{ margin:0; }
  .gallery-grid .gallery-item img{
    width:100%; aspect-ratio:4/3; object-fit:cover; display:block;
    border:1px solid var(--line-soft); border-radius:12px;
  }
  .gallery-grid .gallery-item figcaption{
    margin-top:8px; font-size:12.5px; color:var(--ink-soft); text-align:center;
  }

  /* ============ Formation steps ============ */
  .steps-row{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:20px; counter-reset:step; }
  .step-box{ background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:7px 7px; text-align:center; }
  .step-box .step-num{
    width:30px; height:30px; border-radius:50%; background:var(--navy); color:var(--navy-ink);
    display:flex; align-items:center; justify-content:center; margin:0 auto 5px; font-family:var(--font-mono); font-size:20px; font-weight:600;
  }



.step-box .step-photo{
display:block; width:calc(100% + 32px); margin:0px 0px 0px;
aspect-ratio:4/4; object-fit:fill; border-radius:14px 14px 0 0;
}
.steps-row .step-box:hover .step-avatar-frame img{ transform:scale(1.3); }
/* ============ Formation steps — variante B: foto circular con el número encima ============ */
.steps-row--circle .step-avatar{
  position:relative; width:100px; height:100px; margin:0px auto 12px;
}
.steps-row--circle .step-avatar img{
  display:block; width:100%; height:100%; border-radius:50%; object-fit:scale-down;
  box-shadow:0 6px 14px -6px rgba(11,19,34,0.35);
}
.steps-row--circle .step-num{
  position:absolute; bottom:-2px; right:-2px; margin:0;
  width:26px; height:26px; font-size:20px; border:2px solid var(--paper);
}

.steps-row--circle .step-box:hover .step-avatar-frame img{ transform:scale(1.5); }





  .step-box h4{ font-size:14.5px; font-family:var(--font-body); font-weight:700; }
  @media (max-width:900px){ .steps-row{ grid-template-columns:repeat(3,1fr); } }
  @media (max-width:560px){ .steps-row{ grid-template-columns:repeat(2,1fr); } }

  /* ============ Video placeholder ============ */
  .video-card{
    margin-top:20px; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--navy-3);
    aspect-ratio:16/9; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:var(--navy-ink-soft);
  }
  .video-card video{
  width:30%; height:90%; object-fit:cover; display:block;
}
  .video-card .play{ width:56px; height:56px; border-radius:50%; background:var(--red); display:flex; align-items:center; justify-content:center; }
  .video-card .play svg{ width:22px; height:22px; color:var(--red-ink); }
  .video-card span{ font-size:13.5px; }

  /* ============ Help band ============ */
  .help-band{ background:var(--paper-3); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .help-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:36px; }
  .help-card{ background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:26px; display:flex; flex-direction:column; gap:12px; box-shadow:var(--shadow); }
  .help-card h3{ font-size:19px; }
  .help-card p{ color:var(--ink-soft); font-size:14.5px; flex:1; }
  .help-card .card-icon{ background:rgba(200,30,53,0.12); color:var(--red); width:44px; height:44px; }
  .help-card .card-icon svg{ width:22px; height:22px; }
  @media (max-width:900px){ .help-grid{ grid-template-columns:1fr; } }

  /* ============ Footer ============ *
  .site-footer{ background:var(--navy-3); color:var(--navy-ink-soft); padding:52px 0 26px; }*/
  .site-footer{ background: linear-gradient(180deg, #0f2655 0%, #0b1324 100%); color:var(--navy-ink-soft); padding:52px 0 26px;  }
  .footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:32px; }
  .footer-brand .brand-name{ color:var(--navy-ink); }
  .footer-brand p{ color:var(--navy-ink-soft); font-size:13.5px; margin-top:12px; max-width:34ch; }
  .footer-col h4{ color:var(--navy-ink); font-size:12.5px; letter-spacing:.05em; text-transform:uppercase; font-family:var(--font-body); font-weight:700; }
  .footer-col ul{ margin-top:14px; display:flex; flex-direction:column; gap:9px; }
  .footer-col a{ text-decoration:none; font-size:13.5px; color:var(--navy-ink-soft); }
  .footer-col a:hover{ color:var(--navy-ink); }
  .social-row{ display:flex; gap:10px; margin-top:14px; }
  .social-row a{ width:34px; height:34px; border-radius:50%; background:rgba(250,247,240,0.08); display:flex; align-items:center; justify-content:center; }
  .social-row svg{ width:15px; height:15px; }
  .footer-bottom{
    margin-top:40px; padding-top:20px; border-top:1px solid rgba(250,247,240,0.12);
    display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; font-size:12px;
  }
  .footer-bottom span:last-child{ max-width:46ch; }
  @media (max-width:880px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
  @media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

  /* ============ Floating WhatsApp ============ */
  .whatsapp-float{
    position:fixed; right:20px; bottom:20px; z-index:150;
    width:58px; height:58px; border-radius:50%; background:#25D366; color:#fff;
    display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px -8px rgba(0,0,0,0.45);
    text-decoration:none;
  }
  .whatsapp-float svg{ width:28px; height:28px; }
  .whatsapp-float:hover{ filter:brightness(1.05); }

  /* ============ Modal: Galería del Museo ============ */
  .modal-backdrop{
    position:fixed; inset:0; background:rgba(11,19,34,0.72);
    z-index:600; display:none; align-items:center; justify-content:center; padding:20px;
  }
  .modal-backdrop[data-open="true"]{ display:flex; }
  .modal{
    background:var(--paper); border-radius:16px; width:min(680px, 100%); max-height:90vh;
    display:flex; flex-direction:column; box-shadow:0 30px 60px -20px rgba(0,0,0,0.5);
  }
  .modal-head{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:16px 20px; border-bottom:1px solid var(--line-soft);
  }
  .modal-head h2{ font-family:var(--font-display); font-size:18px; margin:0; }
  .modal-head-actions{ display:flex; align-items:center; gap:8px; flex:none; }
  .modal-close{
    width:36px; height:36px; border-radius:50%; border:1px solid var(--line);
    background:var(--paper-2); color:var(--ink); display:flex; align-items:center; justify-content:center;
    cursor:pointer; flex:none; text-decoration:none;
  }
  .modal-close:hover{ background:var(--paper-3); }
  .modal-close svg{ width:16px; height:16px; }
  .modal-body{ padding:20px; overflow-y:auto; }
  .modal-wide{ width:min(820px, 100%); }

  .info-card-button{
    appearance:none; -webkit-appearance:none; border:none; margin:0; padding:0;
    width:100%; text-align:left; font:inherit; color:inherit; cursor:pointer;
    transition:transform .15s ease;
  }
  .info-card-button:hover{ transform:translateY(-2px); }

  .pdf-row{
    display:flex; align-items:center; gap:14px; padding:16px;
    border:1px solid var(--line); border-radius:12px; background:var(--paper);
    text-decoration:none; color:var(--ink); transition:transform .15s ease, background .15s ease;
  }
  .pdf-row + .pdf-row{ margin-top:10px; }
  .pdf-row:hover{ transform:translateY(-2px); background:var(--paper-2); }
  .pdf-row .pdf-icon{
    width:38px; height:38px; border-radius:10px; background:rgba(199,154,59,0.16); color:var(--gold);
    display:flex; align-items:center; justify-content:center; flex:none;
  }
  .pdf-row .pdf-icon svg{ width:19px; height:19px; }
  .pdf-row .pdf-text{ flex:1; min-width:0; }
  .pdf-row .pdf-text .title{ font-family:var(--font-display); font-weight:600; font-size:15px; }
  .pdf-row .pdf-text .hint{ font-size:12px; color:var(--ink-soft); margin-top:2px; }
  .pdf-row .pdf-arrow{ flex:none; color:var(--ink-soft); }
  .pdf-row .pdf-arrow svg{ width:16px; height:16px; }

  .cantos-block{ margin-top:28px; padding-top:24px; border-top:1px solid var(--line-soft); }
  .cantos-block h4{ font-family:var(--font-display); font-size:19px; font-weight:600; margin:0 0 6px; }
  .cantos-block > p{ color:var(--ink-soft); font-size:14.5px; max-width:60ch; margin:0 0 4px; }

  .audio-folder{
    border:1px solid var(--line); border-radius:12px; background:var(--paper); overflow:hidden;
  }
  .audio-folder summary{
    list-style:none; cursor:pointer; display:flex; align-items:center; gap:14px; padding:14px 16px;
    user-select:none;
  }
  .audio-folder summary::-webkit-details-marker{ display:none; }
  .audio-folder summary:hover{ background:var(--paper-2); }
  .folder-icon{
    width:38px; height:38px; border-radius:10px; background:rgba(199,154,59,0.16); color:var(--gold);
    display:flex; align-items:center; justify-content:center; flex:none;
  }
  .folder-icon svg{ width:19px; height:19px; }
  .folder-text{ flex:1; min-width:0; }
  .folder-text .title{ font-family:var(--font-display); font-weight:600; font-size:15px; }
  .folder-text .hint{ font-size:12px; color:var(--ink-soft); margin-top:2px; }
  .folder-chevron{ flex:none; color:var(--ink-soft); transition:transform .2s ease; }
  .folder-chevron svg{ width:16px; height:16px; }
  .audio-folder[open] .folder-chevron{ transform:rotate(90deg); }
  .audio-folder[open] summary{ border-bottom:1px solid var(--line-soft); }

  .audio-list{ padding:12px 16px 16px; display:flex; flex-direction:column; gap:10px; background:var(--paper-2); }
  .audio-row{
    background:var(--paper); border:1px solid var(--line-soft); border-radius:10px; padding:10px 12px;
  }
  .audio-row-head{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
  .audio-icon{ color:var(--gold); flex:none; display:flex; }
  .audio-icon svg{ width:16px; height:16px; }
  .audio-title{ font-size:13.5px; font-weight:600; color:var(--ink); flex:1; }
  .audio-download{
    width:26px; height:26px; border-radius:50%; border:1px solid var(--line);
    background:var(--paper); color:var(--ink); display:flex; align-items:center; justify-content:center;
    flex:none; text-decoration:none;
  }
  .audio-download:hover{ background:var(--paper-3); }
  .audio-download svg{ width:13px; height:13px; }
  .audio-row audio{ width:100%; height:34px; display:block; }

  .museum-stage{ display:flex; align-items:center; gap:12px; }
  .museum-photo{
    flex:1; aspect-ratio:4/3; border:1px solid var(--line-soft); border-radius:12px;
    overflow:hidden; background:var(--paper-2);
  }
  .museum-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
  .museum-nav{
    flex:none; width:40px; height:40px; border-radius:50%; border:1px solid var(--line);
    background:var(--paper-2); color:var(--ink); display:flex; align-items:center; justify-content:center;
    cursor:pointer;
  }
  .museum-nav:hover{ background:var(--paper-3); }
  .museum-nav svg{ width:17px; height:17px; }
  .museum-loading, .museum-empty{ text-align:center; color:var(--ink-soft); font-size:14px; padding:40px 10px; }
  .museum-counter{ text-align:center; font-family:var(--font-mono); font-size:12.5px; color:var(--ink-soft); margin-top:14px; }
  .museum-thumbs{ display:flex; gap:7px; overflow-x:auto; padding:16px 2px 4px; margin-top:4px; }
  .museum-thumb{
    flex:none; width:52px; height:52px; border-radius:8px; border:1px solid var(--line-soft);
    background:var(--paper-2); display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0;
    color:var(--ink-soft); overflow:hidden;
  }
  .museum-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
  .museum-thumb:hover{ background:var(--paper-3); }
  .museum-thumb svg{ width:17px; height:17px; opacity:.5; }
  .museum-thumb[aria-current="true"]{ border-color:var(--red); }
  .museum-thumb[aria-current="true"] svg{ opacity:1; color:var(--red); }

   /* ============ Carrusel 3D — base compartida ============ */
  /* Todo lo que es "mecánica" (perspectiva, giro, pausa al pasar el mouse)
     vive aquí, una sola vez. El tamaño de cada carrusel se define aparte,
     en su propia clase modificadora (.stage3d-promise / .stage3d-phrase),
     así no se repite código entre los dos. */
  .carousel-label{
    text-align:center; font-size:16px; margin:0 0 12px;
  }
  .stage3d{
    position:relative; margin:0 auto 20px; overflow:hidden;
  }
  .ring{
    width:100%; height:100%; position:relative;
    transform-style:preserve-3d;
    /* la duración de giro (animation-duration) se define en cada
       modificador de tamaño, no aquí, porque cada carrusel gira a
       su propia velocidad. */
    animation-name:spin;
    animation-timing-function:linear;
    animation-iteration-count:infinite;
  }
  .stage3d:hover .ring{ animation-play-state:paused; }
  .ring-item{
    position:absolute; top:50%; left:50%;
    border-radius:8px; overflow:hidden;
    border:3px solid var(--paper); box-shadow:0 18px 40px -18px rgba(11,19,34,0.5);
    background:var(--paper-2);
  }
  .ring-item img{ width:100%; height:100%; object-fit:cover; display:block; cursor:pointer; }

  /* ============ Lightbox (doble clic: solo agranda; el usuario decide si descarga) ============ */
  .ring3d-lightbox{
    position:fixed; inset:0; z-index:9999; display:none;
    align-items:center; justify-content:center;
    background:rgba(11,19,34,0.85); padding:24px;
  }
  .ring3d-lightbox.is-open{ display:flex; }
  .ring3d-lightbox img{
    max-width:90vw; max-height:82vh; width:auto; height:auto;
    border-radius:10px; display:block;
    box-shadow:0 30px 70px -20px rgba(0,0,0,0.65);
    background:var(--paper);
  }
  .ring3d-lightbox-close{
    position:absolute; top:18px; right:20px;
    width:38px; height:38px; border-radius:50%;
    border:1px solid rgba(255,255,255,0.4); background:rgba(255,255,255,0.08);
    color:#fff; display:flex; align-items:center; justify-content:center;
    cursor:pointer; font-size:20px; line-height:1;
  }
  .ring3d-lightbox-close:hover{ background:rgba(255,255,255,0.2); }
  .ring3d-lightbox-nav{
    position:absolute; top:50%; transform:translateY(-50%);
    width:44px; height:44px; border-radius:50%;
    border:1px solid rgba(255,255,255,0.35); background:rgba(255,255,255,0.1);
    color:#fff; display:flex; align-items:center; justify-content:center;
    cursor:pointer;
  }
  .ring3d-lightbox-nav:hover{ background:rgba(255,255,255,0.22); }
  .ring3d-lightbox-prev{ left:16px; }
  .ring3d-lightbox-next{ right:16px; }
  .ring3d-lightbox-count{
    position:absolute; top:18px; left:20px;
    color:rgba(250,247,240,0.85); font-size:12.5px;
  }
  .ring3d-lightbox-download{
    position:absolute; bottom:20px; left:50%; transform:translateX(-50%);
    display:flex; align-items:center; gap:8px;
    padding:10px 18px; border-radius:999px; text-decoration:none;
    border:1px solid rgba(255,255,255,0.35); background:rgba(255,255,255,0.1);
    color:#fff; font-family:var(--font-body); font-size:13px; font-weight:600;
    cursor:pointer; transition:background .15s ease;
  }
  .ring3d-lightbox-download:hover{ background:rgba(255,255,255,0.22); }

  @keyframes spin{
    from{ transform:rotateY(360deg); }
    to{ transform:rotateY(0deg); }
  }

  /* ============ Tamaño — Promesas (tarjetas más grandes, estilo original) ============ */
  .stage3d-promise{
    width:100%; max-width:900px; height:400px; perspective:1500px;
  }
  .stage3d-promise .ring{
    animation-duration:44s;
    animation-direction:reverse;
  }
  .stage3d-promise .ring-item{
    width:300px; height:225px; margin:-112px 0 0 -150px;
    border-radius:10px;
  }
  .stage3d-promise .ring-item img{ object-fit:contain; }

  /* ============ Tamaño — Frases (tarjetas más grandes que antes, más fotos) ============ */
  .stage3d-phrase{
  width:100%; max-width:1000px; height:230px; perspective:2500px;
  }
  .stage3d-phrase .ring{
    animation-duration:70s;
    animation-direction:reverse;
  }
  .stage3d-phrase .ring-item{
    width:120px; height:180px; margin:-90px 0 0 -60px;
  }
  .stage3d-phrase .ring-item img{ object-fit:contain; }

  /* ============ Sagrado Corazón: un solo ring con ambas orientaciones ============ */
  .stage3d-our{
    width:100%; max-width:1000px; height:420px; perspective:15000px;
  }
  .stage3d-our .ring{
    animation-duration:450s;
  }
  .stage3d-our .ring-item.sc-h{
    width:260px; height:195px; margin:-97.5px 0 0 -130px;
  }
  .stage3d-our .ring-item.sc-v{
    width:196px; height:261px; margin:-130.5px 0 0 -98px;
  }
  .stage3d-our .ring-item img{ object-fit:cover; }

  /* ============ Padre Yermo — Galería histórica: un solo ring combinado ============ */
  .stage3d-yermo{
    width:100%; max-width:1000px; height:420px; perspective:15000px;
  }
  .stage3d-yermo .ring{
    animation-duration:500s; animation-direction: reverse;
  }
  .stage3d-yermo .ring-item.sc-h{
    width:260px; height:195px; margin:-97.5px 0 0 -130px;
  }
  .stage3d-yermo .ring-item.sc-v{
    width:196px; height:261px; margin:-130.5px 0 0 -98px;
  }
  .stage3d-yermo .ring-item img{ object-fit:cover; }

  /* ============  SSCJP — Galería: un solo ring combinado ============ */
  .stage3d-sscjp{
    width:100%; max-width:1000px; height:420px; perspective:15000px;
  }
  .stage3d-sscjp .ring{
    animation-duration:200s;
  }
  .stage3d-sscjp .ring-item.sc-h{
    width:260px; height:195px; margin:-97.5px 0 0 -130px;
  }
  .stage3d-sscjp .ring-item.sc-v{
    width:196px; height:261px; margin:-130.5px 0 0 -98px;
  }
  .stage3d-sscjp .ring-item img{ object-fit:cover; }

  /* ============ Misión y obras ============ */

.quote-card{
  margin-top:20px; padding:18px 22px; border-left:3px solid var(--gold);
  background:var(--paper); border-radius:0 10px 10px 0;
  font-family:var(--font-display); font-style:italic; font-size:16.5px; color:var(--ink);
}
.quote-card .attrib{
  display:block; margin-top:10px; font-style:normal;
  font-family:var(--font-mono); font-weight:600; font-size:11.5px;
  color:var(--red); letter-spacing:.04em;
}
.intro-text{ color:var(--ink-soft); font-size:16px; margin-top:16px; max-width:max-content; }

/* ---- acordeones de pastorales (mismo lenguaje visual que .audio-folder) ---- */
.pastoral-folder{
  border:1px solid var(--line); border-radius:12px; background:var(--paper);
  overflow:hidden; margin-top:16px;
}
.pastoral-folder summary{
  list-style:none; cursor:pointer; display:flex; align-items:center; gap:14px;
  padding:14px 16px; user-select:none;
}
.pastoral-folder summary::-webkit-details-marker{ display:none; }
.pastoral-folder summary:hover{ background:var(--paper-2); }
.pastoral-folder .folder-icon{
  width:38px; height:38px; border-radius:10px; background:rgba(199,154,59,0.16); color:var(--gold);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.pastoral-folder .folder-icon svg{ width:19px; height:19px; }
.pastoral-folder .folder-text{ flex:1; min-width:0; }
.pastoral-folder .folder-text .title{ font-family:var(--font-display); font-weight:600; font-size:15.5px; color:var(--ink); }
.pastoral-folder .folder-text .hint{ font-size:12px; color:var(--ink-soft); margin-top:2px; }
.pastoral-folder .folder-chevron{ flex:none; color:var(--ink-soft); transition:transform .2s ease; }
.pastoral-folder .folder-chevron svg{ width:16px; height:16px; }
.pastoral-folder[open] .folder-chevron{ transform:rotate(90deg); }
.pastoral-folder[open] summary{ border-bottom:1px solid var(--line-soft); }

.pastoral-body{
  padding:18px 18px 22px; display:flex; flex-direction:column; gap:14px; background:var(--paper-2);
}
.pastoral-body .lead{ color:var(--ink-soft); font-size:16px; max-width:111ch; margin:0; }
.pastoral-body h4{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--red); font-weight:600; margin:4px 0 0;
}

/* ---- tarjetas de país y "chips" de lugar ---- */
.country-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:12px; align-items:start;
}
.country-card{
  background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px 16px;
}
.country-card h5{
  font-family:var(--font-display); font-weight:600; font-size:14px; color:var(--ink); margin:0 0 10px;
}
.chip-row{ display:flex; flex-wrap:wrap; gap:6px; }
.place-chip{
  font-family:var(--font-body); font-size:12.5px; color:var(--ink-soft);
  background:var(--paper-2); border:1px solid var(--line); border-radius:999px;
  padding:5px 11px; display:inline-flex; align-items:center; gap:5px;
}
.place-chip.has-link{ color:var(--ink); }
.place-chip.has-link:hover{ border-color:var(--gold); background:var(--paper-3); }
.place-chip a.chip-link{ color:inherit; text-decoration:none; }
.place-chip svg.ext{ width:11px; height:11px; opacity:.55; flex:none; }

/* ---- listas con etiqueta (Pastoral Diversificada) ---- */
.label-list{ display:flex; flex-direction:column; gap:7px; }
.label-row{
  font-family:var(--font-body); font-size:13.5px; color:var(--ink-soft);
  display:flex; align-items:center; gap:5px;
}
.label-row svg.ext{ width:11px; height:11px; opacity:.55; flex:none; }
a.label-link{ color:var(--red); text-decoration:none; border-bottom:1px dotted var(--gold); }
a.label-link:hover{ color:var(--ink); }

@media (max-width:560px){
  .country-grid{ grid-template-columns:1fr; }
}