/* CatequesisPonce v0.2: desktop layout unchanged. */
*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;margin-left:0;margin-right:0}
img,svg,video{max-width:100%;height:auto}
.mobile-bottom-nav{display:none}
.section-main{max-width:1250px;margin:0 auto;padding:38px 22px 75px;min-height:70vh}
.section-intro{margin-bottom:26px}.section-intro h1{color:#102c51;font-size:clamp(27px,4vw,43px);margin:14px 0 6px}.section-intro p{color:#617086}.back-link{color:#ad7824;text-decoration:none;font-weight:700}
.section-content>.panel{margin:0;width:100%;max-width:100%}
.section-content .sisters-layout,.section-content .formation-grid{min-width:0}
@media(max-width:640px){
  html,body{width:100%;max-width:100%;overflow-x:clip}
  body{padding-bottom:68px}
  .site-header,.header-inner,.hero,.hero-inner,.quick-nav,.quick-nav>a,.panel,.dashboard-grid,.lower-grid,.sisters-layout,.sisters-grid,.formation-grid,.resource-list,.section-main,.section-content{min-width:0;max-width:100%}
  .header-inner{width:100%;gap:6px}
  .brand{min-width:0;flex:1;overflow:hidden}.brand span:last-child{min-width:0}.brand strong{font-size:clamp(9px,2.9vw,12px);overflow-wrap:anywhere}.brand small{font-size:9px}
  .menu-toggle{flex:0 0 auto}
  .site-nav{max-width:100vw;max-height:calc(100dvh - 75px);overflow-y:auto}
  .hero{min-height:310px;height:auto;background-position:65% center}.hero-inner{width:100%;padding:44px 18px 30px}.hero h1{font-size:clamp(28px,8vw,37px);line-height:1.1}.hero h2{font-size:15px}.hero p{font-size:12px}
  .quick-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;padding:14px 12px;gap:10px}
  .quick-nav>a{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-width:0;padding:14px 8px;min-height:105px;gap:6px}
  .quick-nav>a>span:nth-child(2){min-width:0;max-width:100%}.quick-nav strong,.quick-nav small{display:block;overflow-wrap:anywhere;white-space:normal}
  /* Mobile home is an app-style hub. Full details are in dedicated pages. */
  body:not(.section-page) .dashboard-grid,body:not(.section-page) .sisters-panel,body:not(.section-page) .lower-grid{display:none!important}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;width:100%;height:66px;z-index:1200;background:#fff;box-shadow:0 -3px 18px #102c5126;border-top:1px solid #e7e9ed;padding-bottom:env(safe-area-inset-bottom)}
  .mobile-bottom-nav a{min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-decoration:none;color:#53667d;font-size:23px;gap:1px}
  .mobile-bottom-nav a.current,.mobile-bottom-nav a[aria-current="page"]{color:#b5822e}
  .mobile-bottom-nav small{font-size:10px;line-height:1.2;font-weight:650}
  .footer{padding-bottom:18px}
  .section-main{padding:22px 12px 40px;min-width:0}.section-intro{padding:0 4px}
  .section-content>.panel,.section-content .panel{width:100%;min-width:0;max-width:100%;margin:0}
  .section-content .formation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .section-content .sisters-grid{display:grid;grid-template-columns:1fr}
  .section-content .sisters-layout{display:grid;grid-template-columns:1fr}
  .section-content .activity-list article,.section-content .resource-list>div,.section-content .sister{min-width:0}
  .section-content .activity-list article>div,.section-content .resource-list>div>span,.section-content .sister>div{min-width:0}
  .section-content h2,.section-content h3,.section-content p{overflow-wrap:anywhere}
}
@media(max-width:360px){.quick-nav{gap:7px;padding:10px 8px}.quick-nav>a{padding:10px 5px}.hero-inner{padding-left:12px;padding-right:12px}.section-main{padding-left:8px;padding-right:8px}}

/* BEGIN PUBLIC MOBILE NAV SCROLL V1 */
@media(max-width:640px){
  /* Exclusivo del sitio público: no modificar navegación de Dirección/Personal. */
  .mobile-bottom-nav:not(.admin-bottom-nav):not(.staff-bottom-nav){
    display:flex;grid-template-columns:none;align-items:stretch;
    overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;
    scrollbar-width:none;gap:0;padding:0 5px env(safe-area-inset-bottom);
    height:calc(66px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav:not(.admin-bottom-nav):not(.staff-bottom-nav)::-webkit-scrollbar{display:none}
  .mobile-bottom-nav:not(.admin-bottom-nav):not(.staff-bottom-nav)>a{
    flex:0 0 83px;min-width:83px;max-width:83px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    padding:5px 2px;gap:3px;scroll-snap-align:center;
    font-size:inherit;line-height:1.1;white-space:nowrap;
  }
  .mobile-bottom-nav:not(.admin-bottom-nav):not(.staff-bottom-nav)>a>span{
    display:block;font-size:23px;line-height:26px;height:26px;
  }
  .mobile-bottom-nav:not(.admin-bottom-nav):not(.staff-bottom-nav)>a>small{
    font-size:10px;line-height:13px;white-space:nowrap;
  }
  .mobile-bottom-nav:not(.admin-bottom-nav):not(.staff-bottom-nav)>a[aria-current="page"]{
    color:#b5822e;
  }
  .quick-nav .retreat-quick-link .quick-icon{color:#c58a12}
}
/* END PUBLIC MOBILE NAV SCROLL V1 */

/* NERDSTARTUP QUICK NAV DESKTOP SCROLL V1 START */
/* Solo escritorio/tableta: tarjetas en una fila, con scroll horizontal.
   El Inicio movil conserva sus dos columnas. */
@media (min-width: 641px) {
  body:not(.section-page) .quick-nav {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #a7b8cf transparent;
    scroll-snap-type: x proximity;
    width: 100%;
    max-width: 1600px;
    padding-bottom: 12px;
  }
  body:not(.section-page) .quick-nav > a {
    flex: 0 0 245px;
    width: 245px;
    min-width: 245px;
    scroll-snap-align: start;
  }
}
/* NERDSTARTUP QUICK NAV DESKTOP SCROLL V1 END */
