:root{
    --navy: #123B5C;
    --navy-deep: #0A2D47;
    --gold: #D9A727;
    --gold-light: #E8C158;
    --cream: #EAF4FB;
    --cream-2: #DCEAF6;
    --ink: #16232E;
    --paper: #E7F2FA;
    --line: rgba(18,59,92,0.14);

    --serif: 'Fraunces', serif;
    --sans: 'Karla', sans-serif;

    --container: 1180px;
  }

  *{box-sizing:border-box; margin:0; padding:0;}

  html{scroll-behavior:smooth;}

  body{
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
 
 .img-fluid {
  max-width: 100%;
  height: auto;
  border-radius:18px;
  overflow:hidden;
  aspect-ratio: 4/3;
}

  img{max-width:100%; display:block;}

  a{color:inherit; text-decoration:none;}

  .wrap{
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
  }

  @media (max-width: 640px){
    .wrap{ padding: 0 20px; }
  }

  :focus-visible{
    outline: 2.5px solid var(--gold);
    outline-offset: 3px;
  }

  /* ---------- Eyebrow / Label style ---------- */
  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-family: var(--sans);
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
  }
  .eyebrow::before{
    content:'';
    width: 28px;
    height: 1.5px;
    background: var(--gold);
    display:inline-block;
  }

  h1,h2,h3{
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--navy-deep);
  }

  /* ---------- Top bar ---------- */
  .topbar{
    background: var(--navy-deep);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
  }
  .topbar .wrap{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .topbar a{ color: rgba(255,255,255,0.85); }
  .topbar a:hover{ color: var(--gold-light); }
  .topbar-links{ display:flex; gap:22px; flex-wrap: wrap; }
  .topbar-contact{ display:flex; gap:22px; flex-wrap: wrap; justify-content: flex-end; }


  .instagram-mini{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.22);
  }

  .instagram-mini svg{
    width: 15px;
    height: 15px;
    fill: var(--gold-light);
    display:block;
  }

  .instagram-mini:hover{
    background: rgba(217,167,39,0.14);
    border-color: var(--gold-light);
  }

  /* ---------- Header / nav ---------- */
  header.main{
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    /* Evita un bug de repintado en Safari/WebKit: los elementos sticky a
       veces quedan "invisibles" tras un scroll programático (p.ej. el botón
       volver arriba) hasta que el mouse los toca. Forzar su propia capa de
       composición evita que quede el pintado obsoleto. */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
  }
  nav.wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .brand{
    display:flex;
    align-items:center;
    gap: 12px;
  }
  .brand-mark{
    width: 58px;
    height: 58px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
  }

  .brand-mark img{
    width: 58px;
    height: 58px;
    object-fit: contain;
    display:block;
  }
  .brand-text{ line-height: 1.15; }
  .brand-text .name{
    font-family: var(--serif);
    font-weight: 600;
    font-size: 18.5px;
    color: var(--navy-deep);
  }
  .brand-text .sub{
    font-size: 11.5px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
  }

  .nav-links{
    display:flex;
    gap: 34px;
    font-size: 14.5px;
    font-weight: 600;
  }
  .nav-links a{
    position:relative;
    padding: 4px 0;
    color: var(--navy);
  }
  .nav-links a::after{
    content:'';
    position:absolute;
    left:0; bottom:-2px;
    width:0%; height:2px;
    background: var(--gold);
    transition: width .25s ease;
  }
  .nav-links a:hover::after{ width:100%; }

  .btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 3px;
    border: 1.5px solid var(--navy);
    transition: all .25s ease;
    white-space: nowrap;
  }
  .btn-primary{
    background: var(--navy);
    color: var(--cream);
  }
  .btn-primary:hover{
    background: var(--navy-deep);
    border-color: var(--navy-deep);
  }
  .btn-ghost{
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: #fff;
  }
  .btn-ghost:hover{
    border-color: #fff;
    background: rgba(255,255,255,0.08);
  }
  .btn-gold{
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-deep);
  }
  .btn-gold:hover{
    background: var(--gold-light);
    border-color: var(--gold-light);
  }

  .nav-cta{ display:flex; align-items:center; gap:18px; }

  .menu-toggle{ display:none; }

  /* ---------- Hero ---------- */
  .hero{
    position: relative;
    background: var(--navy-deep);
    color: var(--cream);
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 110px;
  }
  .hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:
      radial-gradient(circle at 14% 18%, rgba(217,167,39,0.18), transparent 38%),
      radial-gradient(circle at 88% 82%, rgba(217,167,39,0.14), transparent 42%);
    pointer-events:none;
  }
  .hero-grid{
    position: relative;
    display:grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items:center;
  }
  .hero-eyebrow{
    color: var(--gold-light);
  }
  .hero-eyebrow::before{ background: var(--gold-light); }

  .hero h1{
    color: #fff;
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 1.06;
    margin-top: 22px;
    max-width: 12.5ch;
  }
  .hero h1 em{
    font-style: italic;
    color: var(--gold-light);
  }
  .hero p.lede{
    margin-top: 24px;
    font-size: 17.5px;
    color: rgba(234,244,251,0.78);
    max-width: 46ch;
    line-height: 1.65;
  }
  .hero-actions{
    margin-top: 38px;
    display:flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero-stats{
    margin-top: 52px;
    display:flex;
    gap: 40px;
    flex-wrap: wrap;
  }
  .stat .num{
    font-family: var(--serif);
    font-size: 30px;
    color: var(--gold-light);
    font-weight: 600;
  }
  .stat .label{
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(234,244,251,0.6);
    margin-top: 4px;
  }

  .hero-visual{
    position: relative;
    height: 100%;
    min-height: 420px;
  }
  .photo-stack{
    position: relative;
    transform: translateY(-55px);
    width:100%;
    height:560px;
    overflow:hidden;
    border-radius:18px;
}

.hero-track{
    display:flex;
    height:100%;
    transition:.5s ease;
}

.hero-track img{
    min-width:100%;
    height:100%;
    object-fit:contain;
    background:rgba(255,255,255,.04);
    border-radius:18px;
}

.hero-dots{
    position:absolute;
    bottom:18px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:8px;
}

.hero-dots span{
    width:11px;
    height:11px;
    border-radius:50%;
    background:#fff;
    opacity:.7;
}

.ph-tag{
    position:absolute;
    z-index: 4;
    bottom: 24px;
    right: 24px;
    background: var(--gold);
    color: var(--navy-deep);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 3px;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5);
    transform: rotate(-2deg);
  }

  /* ---------- Marquee / sellos strip ---------- */
  .strip{
    background: var(--gold);
    color: var(--navy-deep);
    padding: 14px 0;
    overflow:hidden;
  }
  .strip-track{
    display:flex;
    gap: 56px;
    white-space: nowrap;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 15.5px;
    animation: scroll-left 32s linear infinite;
    width: max-content;
  }
  .strip-track span{ display:flex; align-items:center; gap:10px; }
  .strip-track span::after{ content:'✦'; font-size: 11px; opacity: .7; }
  @keyframes scroll-left{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
  }
  @media (prefers-reduced-motion: reduce){
    .strip-track{ animation: none; }
  }

  /* ---------- Section generic ---------- */
  section{ padding: 108px 0; }
  .section-head{
    max-width: 640px;
    margin-bottom: 56px;
  }
  .section-head h2{
    font-size: clamp(28px, 3.4vw, 40px);
    margin-top: 16px;
    line-height: 1.15;
  }
  .section-head p{
    margin-top: 18px;
    font-size: 16.5px;
    color: rgba(22,35,46,0.66);
    max-width: 56ch;
  }
  .center{ text-align:center; margin-left:auto; margin-right:auto; }

  /* ---------- Sobre el colegio ---------- */
  .about{ background: var(--cream); }
  .about-grid{
    display:grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: center;
  }
  .about-frame{
    position:relative;
    border-radius: 4px;
    overflow:hidden;
  }
  .about-frame img{
    width:100%;
    height: 480px;
    object-fit: cover;
  }
  .about-frame::after{
    content:'';
    position:absolute; inset:0;
    border: 10px solid var(--paper);
    box-shadow: inset 0 0 0 1px rgba(18,59,92,0.08);
    pointer-events:none;
  }
  .about-copy h3{
    font-size: 26px;
    margin-bottom: 18px;
  }
  .about-copy p{
    color: rgba(22,35,46,0.72);
    font-size: 16px;
    margin-bottom: 16px;
  }
  .value-list{
    margin-top: 32px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .value-item{
    display:flex;
    gap: 14px;
    align-items:flex-start;
  }
  .value-icon{
    width: 38px; height:38px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
    font-size: 16px;
  }
  .value-item h4{
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 3px;
  }
  .value-item p{
    font-size: 13.8px;
    color: rgba(22,35,46,0.6);
    margin:0;
  }

  /* ---------- PIE ---------- */
  .pie{
    background: var(--navy-deep);
    color: var(--cream);
    position: relative;
    overflow:hidden;
  }
  .pie::before{
    content:'';
    position:absolute; inset:0;
    background: radial-gradient(circle at 80% 20%, rgba(217,167,39,0.14), transparent 45%);
  }
  .pie .wrap{ position:relative; }
  .pie .eyebrow{ color: var(--gold-light); }
  .pie .eyebrow::before{ background: var(--gold-light); }
  .pie .section-head h2{ color: #fff; }
  .pie .section-head p{ color: rgba(234,244,251,0.7); }

  .pie-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .pie-card{
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    padding: 32px 28px;
    transition: border-color .25s ease, background .25s ease;
  }
  .pie-card:hover{
    border-color: var(--gold);
    background: rgba(255,255,255,0.07);
  }
  .pie-card .pie-num{
    font-family: var(--serif);
    font-size: 13px;
    color: var(--gold-light);
    letter-spacing: 0.1em;
  }
  .pie-card h3{
    color: #fff;
    font-size: 20px;
    margin-top: 14px;
    margin-bottom: 12px;
  }
  .pie-card p{
    color: rgba(234,244,251,0.65);
    font-size: 14.5px;
  }

  /* ---------- Galería estilo muro ---------- */
  .gallery{ background: var(--paper); }
  .gallery-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 190px;
    gap: 18px;
  }
  .gallery-grid figure{
    position:relative;
    overflow:hidden;
    border-radius: 4px;
    border: 6px solid var(--cream-2);
    background: var(--cream-2);
  }
  .gallery-grid img{
    width:100%; height:100%;
    object-fit:cover;
    transition: transform .5s ease;
  }
  .gallery-grid figure:hover img{ transform: scale(1.06); }
  .gallery-grid figure::after{
    content: '';
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(10,45,71,0.55), transparent 45%);
    opacity:0;
    transition: opacity .3s ease;
  }
  .gallery-grid figure:hover::after{ opacity:1; }
  .gallery-grid figcaption{
    position:absolute;
    left: 14px; bottom: 12px;
    color:#fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity:0;
    transform: translateY(6px);
    transition: all .3s ease;
  }
  .gallery-grid figure:hover figcaption{ opacity:1; transform:translateY(0); }

  .g-big{ grid-column: span 2; grid-row: span 2; }

  .gallery-note{
    margin-top: 28px;
    display:flex;
    align-items:center;
    gap:10px;
    font-size: 13.5px;
    color: rgba(22,35,46,0.55);
  }
  .gallery-note .ig-dot{
    width:8px; height:8px; border-radius:50%;
    background: var(--gold);
    flex-shrink:0;
  }

  /* ---------- Niveles ---------- */
  .levels{ background: var(--cream); }
  .levels-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .level-card{
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 36px 28px;
    background: var(--paper);
    transition: background .25s ease;
  }
  .level-card:hover{ background: #fff; }
  .level-card .lv-tag{
    font-family: var(--serif);
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.08em;
  }
  .level-card h3{
    font-size: 21px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .level-card p{
    font-size: 13.8px;
    color: rgba(22,35,46,0.6);
  }


  /* ---------- Profesores, talleres y actividades ---------- */
  .teachers{
    background: var(--paper);
  }

  .teacher-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
  }

  .teacher-card{
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow:hidden;
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .teacher-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -24px rgba(10,45,71,.45);
  }

  .teacher-card img{
    width:100%;
    height: 250px;
    object-fit: cover;
  }

  .teacher-card-body{
    padding: 20px;
  }

  .teacher-card h3{
    font-size: 20px;
    margin-bottom: 6px;
  }

  .teacher-specialty{
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gold);
    font-weight:700;
    margin-bottom: 10px;
  }

  .teacher-mail{
    display:block;
    font-size: 12px;
    color: rgba(18,59,92,.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.15px;
  }

  .teacher-card-body{
    min-width:0;
  }

  .workshops{
    background: var(--cream);
  }

  .workshop-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .workshop-card,
  .activity-card{
    position:relative;
    overflow:hidden;
    border-radius: 6px;
    min-height: 260px;
    background: var(--navy);
    box-shadow: 0 20px 36px -28px rgba(10,45,71,.5);
  }

  .workshop-card img,
  .activity-card img{
    width:100%;
    height:100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform .45s ease;
  }

  .workshop-card:hover img,
  .activity-card:hover img{
    transform: scale(1.05);
  }

  .workshop-card::after,
  .activity-card::after{
    content:'';
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(10,45,71,.78), rgba(10,45,71,.08));
  }

  .workshop-title,
  .activity-title{
    position:absolute;
    z-index:2;
    left: 22px;
    right: 22px;
    bottom: 20px;
    color:#fff;
  }

  .workshop-title span,
  .activity-title span{
    display:inline-block;
    font-size: 12px;
    letter-spacing:.12em;
    text-transform:uppercase;
    color: var(--gold-light);
    font-weight:700;
    margin-bottom: 6px;
  }

  .workshop-title h3,
  .activity-title h3{
    color:#fff;
    font-size: 24px;
  }

  .activities{
    background: var(--paper);
  }

  .activity-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  @media (max-width: 980px){
    .teacher-grid{ grid-template-columns: repeat(2, 1fr); }
    .workshop-grid{ grid-template-columns: repeat(2, 1fr); }
    .activity-grid{ grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 640px){
    .teacher-grid,
    .workshop-grid,
    .activity-grid{ grid-template-columns: 1fr; }

    .teacher-card img{ height: 280px; }
  }

  /* ---------- Testimonios ---------- */
  .testimonials{ background: var(--paper); }
  .t-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .t-card{
    background: var(--cream);
    border-radius: 5px;
    padding: 32px;
    position:relative;
  }
  .t-card .quote-mark{
    font-family: var(--serif);
    font-size: 52px;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
  }
  .t-card p.quote{
    font-size: 15.5px;
    color: rgba(22,35,46,0.78);
    margin-bottom: 22px;
    line-height: 1.6;
  }
  .t-author{
    display:flex;
    align-items:center;
    gap: 12px;
  }
  .t-avatar{
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    display:flex; align-items:center; justify-content:center;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 14px;
    flex-shrink:0;
  }
  .t-author .t-name{ font-weight: 700; font-size: 14px; color: var(--navy-deep); }
  .t-author .t-role{ font-size: 12.5px; color: rgba(22,35,46,0.5); }

  /* ---------- Admisión / CTA ---------- */
  .admission{
    background: var(--navy);
    color: var(--cream);
    position: relative;
    overflow:hidden;
  }
  .admission::before{
    content:'';
    position:absolute; inset:0;
    background: radial-gradient(circle at 20% 50%, rgba(217,167,39,0.16), transparent 50%);
  }
  .admission .wrap{
    position:relative;
    display:grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items:center;
  }
  .admission .eyebrow{ color: var(--gold-light); }
  .admission .eyebrow::before{ background: var(--gold-light); }
  .admission h2{
    color:#fff;
    font-size: clamp(28px, 3.2vw, 38px);
    margin-top: 16px;
    line-height: 1.15;
    max-width: 14ch;
  }
  .admission p{
    margin-top: 18px;
    color: rgba(234,244,251,0.72);
    font-size: 16px;
    max-width: 50ch;
  }
  .admission-actions{
    margin-top: 30px;
    display:flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .steps{
    display:flex;
    flex-direction:column;
    gap: 0;
  }
  .step{
    display:flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .step:last-child{ border-bottom:none; }
  .step .step-num{
    font-family: var(--serif);
    font-size: 22px;
    color: var(--gold-light);
    width: 34px;
    flex-shrink:0;
  }
  .step h4{
    font-family: var(--sans);
    font-size: 15px;
    font-weight:700;
    color:#fff;
    margin-bottom: 4px;
  }
  .step p{
    margin:0;
    font-size: 13.5px;
    color: rgba(234,244,251,0.6);
    max-width: 40ch;
  }

  /* ---------- Contacto ---------- */
  .contact{ background: var(--cream); }
  .contact-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .contact-info h3{
    font-size: 24px;
    margin-bottom: 22px;
  }
  .contact-row{
    display:flex;
    gap: 16px;
    align-items:flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .contact-row:first-of-type{ padding-top: 0; }
  .c-icon{
    width: 36px; height:36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
    font-size: 15px;
  }
  .contact-row .c-label{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gold);
    font-weight:700;
    margin-bottom: 4px;
  }
  .contact-row .c-value{
    font-size: 15.5px;
    color: var(--navy-deep);
    font-weight: 600;
  }
  .map-frame{
    border-radius: 5px;
    overflow:hidden;
    border: 1px solid var(--line);
    height: 100%;
    min-height: 360px;
  }
  .map-frame iframe{
    width:100%; height:100%; border:0; display:block;
    filter: grayscale(0.15) contrast(1.02);
  }

  /* ---------- Footer ---------- */
  footer{
    background: var(--navy-deep);
    color: rgba(234,244,251,0.55);
    padding: 56px 0 28px;
  }
  .footer-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
  }
  .footer-brand .brand-text .name{ color:#fff; }
  .footer-cols{
    display:flex;
    gap: 64px;
    flex-wrap: wrap;
  }
  .footer-col h5{
    font-size: 12.5px;
    text-transform:uppercase;
    letter-spacing:0.08em;
    color: var(--gold-light);
    margin-bottom: 16px;
  }
  .footer-col a, .footer-col p{
    display:block;
    font-size: 14px;
    color: rgba(234,244,251,0.65);
    margin-bottom: 10px;
  }
  .footer-col a:hover{ color: var(--gold-light); }
  .footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top: 26px;
    font-size: 12.5px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .social-row{ display:flex; gap: 12px; }
  .social-row a{
    width: 38px; height:38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    display:flex; align-items:center; justify-content:center;
    transition: all .2s ease;
  }

  .social-row svg{
    width: 20px;
    height: 20px;
    fill: var(--gold-light);
    display:block;
  }

  .social-row a:hover{
    border-color: var(--gold);
    background: rgba(217,167,39,0.12);
    transform: translateY(-1px);
  }

  /* ---------- Reveal on scroll ---------- */
  .reveal{
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 980px){
    .hero-grid{ grid-template-columns: 1fr; }
    .hero-visual{ display:none; }
    .about-grid{ grid-template-columns: 1fr; }
    .about-frame img{ height: 340px; }
    .pie-grid{ grid-template-columns: 1fr 1fr; }
    .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 170px; }
    .g-big{ grid-column: span 2; grid-row: span 1; }
    .levels-grid{ grid-template-columns: 1fr 1fr; }
    .t-grid{ grid-template-columns: 1fr; }
    .admission .wrap{ grid-template-columns: 1fr; }
    .contact-grid{ grid-template-columns: 1fr; }
    .footer-cols{ gap: 40px; }
  }

  @media (max-width: 720px){
    .nav-links{ display:none; }
    .topbar-links{ display:none; }
    section{ padding: 76px 0; }
    .pie-grid{ grid-template-columns: 1fr; }
    .levels-grid{ grid-template-columns: 1fr; }
    .gallery-grid{ grid-template-columns: 1fr 1fr; grid-auto-rows: 150px;}
    .value-list{ grid-template-columns: 1fr; }
    .hero-stats{ gap: 28px; }
  }

  /* ---------- Correcciones finales de navegación y módulos ---------- */
  nav.wrap{
    gap: 26px;
  }

  .nav-links{
    flex: 1;
    justify-content: center;
    gap: 22px;
  }

  .nav-cta{
    margin-left: auto;
    padding-left: 72px;
    flex-shrink: 0;
  }

  .nav-cta .btn{
    padding: 12px 28px;
    box-shadow: 0 10px 22px -16px rgba(10,45,71,.95);
  }

  section[id]{
    scroll-margin-top: 104px;
  }

  .module-nav{
    padding: 44px 0;
    background: linear-gradient(90deg, rgba(18,59,92,.04), rgba(217,167,39,.07), rgba(18,59,92,.04));
    border-bottom: 1px solid rgba(18,59,92,.10);
  }

  .module-nav-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .module-link{
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    background: rgba(255,255,255,.78);
    border-radius: 16px;
    padding: 24px 26px;
    border: 1px solid rgba(18,59,92,.10);
    box-shadow: 0 14px 30px -24px rgba(10,45,71,.45);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
  }

  .module-link::before{
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
  }

  .module-link:hover{
    transform: translateY(-4px);
    box-shadow: 0 24px 42px -30px rgba(10,45,71,.62);
  }

  .module-link-blue::before{ background:#0E5A8A; }
  .module-link-green::before{ background:#2F6FA6; }
  .module-link-gold::before{ background:#D9A727; }

  .module-link-blue:hover{ border-color: rgba(14,90,138,.45); }
  .module-link-green:hover{ border-color: rgba(47,111,166,.45); }
  .module-link-gold:hover{ border-color: rgba(217,167,39,.55); }

  .module-icon{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--cream);
    margin-bottom: 5px;
  }

  .module-link-blue .module-icon{ background: rgba(14,90,138,.10); }
  .module-link-green .module-icon{ background: rgba(47,111,166,.12); }
  .module-link-gold .module-icon{ background: rgba(217,167,39,.16); }

  .module-link strong{
    color: var(--navy-deep);
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.1;
  }

  .module-link small{
    color: rgba(22,35,46,.62);
    font-size: 14px;
  }

  #profesores{
    background:
      linear-gradient(90deg, rgba(14,90,138,.075), rgba(255,255,255,.62)),
      var(--paper);
    border-top: 4px solid #0E5A8A;
    border-bottom: 1px solid rgba(14,90,138,.18);
  }

  #talleres{
    background:
      linear-gradient(90deg, rgba(47,111,166,.09), rgba(255,255,255,.62)),
      var(--cream);
    border-top: 4px solid #2F6FA6;
    border-bottom: 1px solid rgba(47,111,166,.18);
  }

  #actividades{
    background:
      linear-gradient(90deg, rgba(217,167,39,.12), rgba(255,255,255,.66)),
      var(--paper);
    border-top: 4px solid #D9A727;
    border-bottom: 1px solid rgba(217,167,39,.22);
  }

  #profesores .section-head,
  #talleres .section-head,
  #actividades .section-head{
    max-width: 1100px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(18,59,92,.08);
    border-radius: 10px;
    padding: 26px 30px;
    box-shadow: 0 18px 40px -34px rgba(10,45,71,.55);
  }

  #profesores .section-head{ border-left: 6px solid #0E5A8A; }
  #talleres .section-head{ border-left: 6px solid #2F6FA6; }
  #actividades .section-head{ border-left: 6px solid #D9A727; }

  .teacher-card,
  .workshop-card,
  .activity-card{
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(10,45,71,.10);
    transition: transform .28s ease, box-shadow .28s ease;
  }

  .teacher-card:hover,
  .workshop-card:hover,
  .activity-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(10,45,71,.16);
  }

  .teacher-card{
    border: 1px solid rgba(14,90,138,.16);
    border-top: 5px solid #0E5A8A;
  }

  .workshop-card{
    border: 1px solid rgba(47,111,166,.18);
  }

  .activity-card{
    border: 1px solid rgba(217,167,39,.22);
  }

  @media (max-width: 1180px){
    .nav-links{
      gap: 15px;
      font-size: 13.2px;
    }

    .nav-cta{
      padding-left: 36px;
    }

    .nav-cta .btn{
      padding: 10px 17px;
      font-size: 13px;
    }
  }

  @media (max-width: 1060px){
    .nav-cta{
      display: none;
    }

    .nav-links{
      justify-content: flex-end;
    }
  }

  @media (max-width: 820px){
    .module-nav-grid{
      grid-template-columns: 1fr;
    }
  }


  /* ---------- Ajustes finales responsive para presentación cliente ---------- */

  html, body{
    width: 100%;
    overflow-x: hidden;
  }

  img, iframe, video{
    max-width: 100%;
  }

  .wrap{
    width: 100%;
  }

  header.main{
    position: sticky;
    top: 0;
    z-index: 999;
  }

  nav.wrap{
    gap: 22px;
  }

  .brand{
    min-width: max-content;
  }

  .brand-mark{
    flex: 0 0 auto;
  }

  .nav-links{
    flex: 1;
    justify-content: center;
    gap: clamp(12px, 1.45vw, 24px);
    min-width: 0;
  }

  .nav-links a{
    white-space: nowrap;
  }

  .nav-cta{
    margin-left: auto;
    padding-left: clamp(20px, 4vw, 78px);
    flex-shrink: 0;
  }

  .nav-cta .btn{
    white-space: nowrap;
  }

  section[id]{
    scroll-margin-top: 108px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .admission .wrap{
    min-width: 0;
  }

  .teacher-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workshop-grid,
  .activity-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  @media (max-width: 1240px){
    .wrap{
      padding-left: 28px;
      padding-right: 28px;
    }

    .nav-links{
      gap: 14px;
      font-size: 13.2px;
    }

    .nav-cta{
      padding-left: 28px;
    }

    .nav-cta .btn{
      padding: 10px 16px;
      font-size: 13px;
    }
  }

  @media (max-width: 1120px){
    nav.wrap{
      align-items: flex-start;
      gap: 16px;
    }

    .nav-links{
      order: 3;
      width: 100%;
      flex-basis: 100%;
      justify-content: center;
      flex-wrap: wrap;
      row-gap: 10px;
      padding-top: 8px;
    }

    .nav-cta{
      margin-left: auto;
      padding-left: 16px;
    }

    .teacher-grid{
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .workshop-grid,
    .activity-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 980px){
    .hero{
      padding-top: 76px;
      padding-bottom: 84px;
    }

    .hero h1{
      max-width: 16ch;
    }

    .hero-actions,
    .admission-actions{
      gap: 12px;
    }

    .teacher-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-nav-grid{
      grid-template-columns: 1fr;
    }

    .contact-grid,
    .admission .wrap{
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 760px){
    .topbar .wrap{
      justify-content: center;
      text-align: center;
    }

    .topbar-contact{
      justify-content: center;
      gap: 16px;
    }

    nav.wrap{
      justify-content: center;
      text-align: center;
    }

    .brand{
      width: 100%;
      justify-content: center;
    }

    .nav-cta{
      display: none;
    }

    .nav-links{
      display: flex;
      justify-content: center;
      gap: 10px 16px;
      font-size: 13px;
    }

    .nav-links a{
      padding: 6px 0;
    }

    .hero{
      text-align: center;
      padding-top: 62px;
      padding-bottom: 70px;
    }

    .hero h1,
    .hero p.lede{
      margin-left: auto;
      margin-right: auto;
    }

    .hero-actions,
    .hero-stats{
      justify-content: center;
    }

    .section-head,
    #profesores .section-head,
    #talleres .section-head,
    #actividades .section-head{
      padding: 22px;
      margin-bottom: 36px;
    }

    .teacher-grid,
    .workshop-grid,
    .activity-grid,
    .pie-grid,
    .levels-grid,
    .t-grid,
    .gallery-grid{
      grid-template-columns: 1fr;
    }

    .g-big{
      grid-column: span 1;
      grid-row: span 1;
    }

    .gallery-grid{
      grid-auto-rows: 220px;
    }

    .teacher-card img{
      height: 310px;
    }

    .contact-grid{
      gap: 34px;
    }

    .map-frame{
      min-height: 300px;
    }

    .footer-top,
    .footer-bottom{
      justify-content: center;
      text-align: center;
    }

    .footer-brand{
      justify-content: center;
      width: 100%;
    }

    .footer-cols{
      justify-content: center;
      gap: 30px;
    }

    .social-row{
      justify-content: center;
    }
  }

  @media (max-width: 520px){
    .wrap{
      padding-left: 18px;
      padding-right: 18px;
    }

    section{
      padding-top: 64px;
      padding-bottom: 64px;
    }

    .brand-text .name{
      font-size: 17px;
    }

    .brand-text .sub{
      font-size: 10.5px;
    }

    .brand-mark,
    .brand-mark img{
      width: 52px;
      height: 52px;
    }

    .nav-links{
      font-size: 12.5px;
      gap: 8px 12px;
    }

    .btn{
      width: 100%;
      justify-content: center;
    }

    .hero h1{
      font-size: clamp(32px, 11vw, 42px);
    }

    .hero p.lede{
      font-size: 16px;
    }

    .hero-stats{
      flex-direction: column;
      gap: 18px;
    }

    .module-link{
      min-height: auto;
      padding: 22px;
    }

    .module-link strong{
      font-size: 22px;
    }

    .teacher-card img{
      height: 280px;
    }

    .workshop-card,
    .activity-card{
      min-height: 230px;
    }

    .workshop-card img,
    .activity-card img{
      min-height: 230px;
    }

    .contact-row{
      gap: 12px;
    }

    .contact-row .c-value{
      font-size: 14.5px;
      word-break: break-word;
    }

    .footer-cols{
      flex-direction: column;
      align-items: center;
    }
  }

  @media (max-width: 380px){
    .nav-links{
      display: none;
    }

    .topbar-contact{
      font-size: 12px;
    }

    .hero h1{
      font-size: 30px;
    }

    .section-head h2{
      font-size: 26px;
    }

    .teacher-card img{
      height: 245px;
    }
  }


  /* ---------- Corrección header con zoom / pantallas intermedias ---------- */

  header.main nav.wrap{
    max-width: none;
    padding-left: clamp(16px, 3vw, 64px);
    padding-right: clamp(16px, 3vw, 64px);
  }

  header.main .brand{
    margin-right: clamp(18px, 3vw, 46px);
    flex-shrink: 0;
  }

  header.main .brand-text .name{
    white-space: nowrap;
  }

  header.main .nav-links{
    justify-content: flex-start;
    gap: clamp(14px, 1.35vw, 28px);
  }

  header.main .nav-cta{
    margin-left: auto;
    padding-left: clamp(24px, 3.5vw, 70px);
  }

  @media (max-width: 1280px){
    header.main nav.wrap{
      padding-left: 20px;
      padding-right: 20px;
    }

    header.main .brand{
      margin-right: 18px;
    }

    header.main .brand-mark,
    header.main .brand-mark img{
      width: 50px;
      height: 50px;
    }

    header.main .brand-text .name{
      font-size: 17px;
    }

    header.main .brand-text .sub{
      font-size: 10.5px;
    }

    header.main .nav-links{
      gap: 13px;
      font-size: 13px;
    }

    header.main .nav-cta{
      padding-left: 18px;
    }

    header.main .nav-cta .btn{
      padding: 10px 16px;
      font-size: 13px;
    }
  }

  @media (max-width: 1160px){
    header.main nav.wrap{
      align-items: center;
    }

    header.main .nav-links{
      order: 3;
      flex-basis: 100%;
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
      padding-top: 10px;
    }

    header.main .brand{
      margin-right: auto;
    }
  }

  @media (max-width: 760px){
    header.main .brand{
      margin-right: 0;
    }
  }


  /* ---------- Pulido profesional ARMI: tema, accesibilidad y microinteracciones ---------- */
  .skip-link{
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 1400;
    transform: translateY(-150%);
    background: var(--gold);
    color: var(--navy-deep);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(10,45,71,.22);
    transition: transform .2s ease;
  }

  .skip-link:focus{
    transform: translateY(0);
  }

  .site-progress{
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    z-index: 1300;
    box-shadow: 0 0 18px rgba(217,167,39,.35);
  }

  .theme-toggle{
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    background: color-mix(in srgb, var(--paper) 82%, white 18%);
    color: var(--navy-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    box-shadow: 0 12px 24px -18px rgba(10,45,71,.7);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
    flex: 0 0 auto;
  }

  .theme-toggle:hover{
    transform: translateY(-2px) rotate(-8deg);
    border-color: rgba(217,167,39,.55);
    box-shadow: 0 18px 30px -22px rgba(10,45,71,.85);
  }

  .theme-toggle .moon{ display:none; }

  .back-to-top{
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(16px, 3vw, 28px);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(217,167,39,.45);
    background: var(--navy-deep);
    color: var(--gold-light);
    font-size: 20px;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    box-shadow: 0 18px 34px -22px rgba(10,45,71,.85);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background .22s ease;
  }

  .back-to-top.is-visible{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .back-to-top:hover{
    background: var(--gold);
    color: var(--navy-deep);
  }

  .nav-links a.is-active::after{
    width: 100%;
  }

  .nav-links a.is-active{
    color: var(--gold);
  }

  .module-link,
  .level-card,
  .pie-card,
  .t-card,
  .contact-row,
  .teacher-card,
  .workshop-card,
  .activity-card{
    will-change: transform;
  }

  .btn{
    box-shadow: 0 14px 26px -22px rgba(10,45,71,.7);
  }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *, *::before, *::after{
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }

  html[data-theme="dark"]{
    --cream: #0d2a42;
    --cream-2: #153450;
    --paper: #081c2e;
    --ink: #eaf4fb;
    --line: rgba(234,244,251,.14);
  }

  html[data-theme="dark"] body{
    background: var(--paper);
    color: var(--ink);
  }

  html[data-theme="dark"] .topbar{
    background: #05141F;
    color: rgba(234,244,251,.72);
  }

  html[data-theme="dark"] header.main{
    background: rgba(5,20,31,.94);
    border-bottom-color: rgba(234,244,251,.12);
    backdrop-filter: blur(16px);
  }

  html[data-theme="dark"] h1,
  html[data-theme="dark"] h2,
  html[data-theme="dark"] h3,
  html[data-theme="dark"] .brand-text .name,
  html[data-theme="dark"] .value-item h4,
  html[data-theme="dark"] .level-card h3,
  html[data-theme="dark"] .t-author .t-name,
  html[data-theme="dark"] .contact-row .c-value{
    color: #F3F9FF;
  }

  html[data-theme="dark"] .nav-links a,
  html[data-theme="dark"] .teacher-mail{
    color: rgba(234,244,251,.82);
  }

  html[data-theme="dark"] .nav-links a:hover,
  html[data-theme="dark"] .nav-links a.is-active{
    color: var(--gold-light);
  }

  html[data-theme="dark"] .theme-toggle{
    background: rgba(234,244,251,.08);
    color: var(--gold-light);
    border-color: rgba(234,244,251,.18);
  }

  html[data-theme="dark"] .theme-toggle .sun{ display:none; }
  html[data-theme="dark"] .theme-toggle .moon{ display:inline; }

  html[data-theme="dark"] .section-head p,
  html[data-theme="dark"] .about-copy p,
  html[data-theme="dark"] .value-item p,
  html[data-theme="dark"] .level-card p,
  html[data-theme="dark"] .t-card p.quote,
  html[data-theme="dark"] .t-author .t-role,
  html[data-theme="dark"] .gallery-note,
  html[data-theme="dark"] .module-link small{
    color: rgba(234,244,251,.68);
  }

  html[data-theme="dark"] .module-nav{
    background: linear-gradient(90deg, rgba(234,244,251,.045), rgba(217,167,39,.10), rgba(234,244,251,.045));
    border-bottom-color: rgba(234,244,251,.12);
  }

  html[data-theme="dark"] .module-link,
  html[data-theme="dark"] .level-card,
  html[data-theme="dark"] .teacher-card,
  html[data-theme="dark"] .t-card,
  html[data-theme="dark"] #profesores .section-head,
  html[data-theme="dark"] #talleres .section-head,
  html[data-theme="dark"] #actividades .section-head{
    background: rgba(234,244,251,.06);
    border-color: rgba(234,244,251,.12);
    box-shadow: 0 18px 38px -30px rgba(0,0,0,.85);
  }

  html[data-theme="dark"] .module-link strong{
    color: #F3F9FF;
  }

  html[data-theme="dark"] #profesores{
    background: linear-gradient(90deg, rgba(14,90,138,.18), rgba(8,28,46,.72)), var(--paper);
  }

  html[data-theme="dark"] #talleres{
    background: linear-gradient(90deg, rgba(47,111,166,.18), rgba(8,28,46,.72)), var(--paper);
  }

  html[data-theme="dark"] #actividades{
    background: linear-gradient(90deg, rgba(217,167,39,.20), rgba(8,28,46,.72)), var(--paper);
  }

  html[data-theme="dark"] .gallery-grid figure,
  html[data-theme="dark"] .about-frame::after{
    border-color: var(--cream-2);
  }

  html[data-theme="dark"] .map-frame iframe{
    filter: grayscale(.35) invert(.88) hue-rotate(180deg) contrast(.92);
  }

  html[data-theme="dark"] .btn-primary{
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-deep);
  }

  html[data-theme="dark"] .btn-primary:hover{
    background: var(--gold-light);
    border-color: var(--gold-light);
  }

  @media (max-width: 760px){
    .theme-toggle{
      position: absolute;
      top: 18px;
      right: 18px;
    }
  }

  @media (max-width: 380px){
    .theme-toggle{
      width: 40px;
      height: 40px;
      top: 16px;
      right: 14px;
    }
  }

/* ---------- Orden final solicitado: header limpio, CSS externo e imágenes por módulos ---------- */
.eyebrow-center{
  justify-content: center;
}

.contact-title{
  margin-top: 16px;
}

/* Header final: logo + texto + menú + acciones alineadas */
header.main{
  top: 0;
  background: color-mix(in srgb, var(--paper) 94%, white 6%);
  backdrop-filter: blur(14px);
}

header.main nav.wrap.header-layout{
  max-width: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  padding: 12px clamp(18px, 3.4vw, 64px);
}

header.main .brand-identity{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  margin: 0 !important;
}

header.main .brand-mark,
header.main .brand-mark img{
  width: 72px;
  height: 72px;
}

header.main .brand-mark{
  filter: drop-shadow(0 10px 16px rgba(10,45,71,.12));
}

header.main .brand-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.08;
  transform: translateY(1px);
}

header.main .brand-text .name{
  font-size: clamp(19px, 1.45vw, 23px);
  white-space: nowrap;
  letter-spacing: -.01em;
}

header.main .brand-text .sub{
  margin-top: 5px;
  font-size: 11.5px;
  letter-spacing: .115em;
  white-space: nowrap;
}

header.main .nav-links{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.2vw, 20px);
  min-width: 0;
  font-size: clamp(12.4px, .83vw, 14.2px);
  font-weight: 700;
}

header.main .nav-links a{
  padding: 8px 0;
  white-space: nowrap;
}

header.main .header-tools,
header.main .nav-cta.header-tools{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px;
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: auto !important;
  flex: 0 0 auto;
}

header.main .header-action-row{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

header.main .header-action-row .btn{
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.2px;
  box-shadow: 0 14px 28px -22px rgba(10,45,71,.82);
}

header.main .theme-toggle{
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 44px;
  height: 44px;
  font-size: 19px;
}

@media (max-width: 1320px){
  header.main nav.wrap.header-layout{
    gap: 16px;
    padding-left: 22px;
    padding-right: 22px;
  }

  header.main .brand-mark,
  header.main .brand-mark img{
    width: 66px;
    height: 66px;
  }

  header.main .brand-identity{
    gap: 12px;
  }

  header.main .brand-text .name{
    font-size: 19px;
  }

  header.main .brand-text .sub{
    font-size: 10.5px;
    letter-spacing: .09em;
  }

  header.main .nav-links{
    gap: 10px;
    font-size: 12.4px;
  }

  header.main .header-action-row .btn{
    padding: 10px 14px;
    font-size: 12.4px;
  }

  header.main .theme-toggle{
    width: 41px;
    height: 41px;
  }
}

@media (max-width: 1120px){
  header.main nav.wrap.header-layout{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    row-gap: 10px;
  }

  header.main .brand-identity{
    grid-area: brand;
    justify-self: start;
  }

  header.main .nav-links{
    grid-area: nav;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid rgba(18,59,92,.08);
  }

  header.main .header-tools{
    grid-area: tools;
    justify-self: end;
  }
}

@media (max-width: 720px){
  header.main nav.wrap.header-layout{
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tools"
      "nav";
    justify-items: center;
    padding: 10px 16px 12px;
    gap: 10px;
    text-align: center;
  }

  header.main .brand-identity{
    justify-self: center;
    justify-content: center;
    width: auto;
  }

  header.main .brand-mark,
  header.main .brand-mark img{
    width: 60px;
    height: 60px;
  }

  header.main .brand-text .name{
    font-size: 18px;
  }

  header.main .brand-text .sub{
    font-size: 10px;
  }

  header.main .header-tools,
  header.main .nav-cta.header-tools{
    justify-self: center;
  }

  header.main .header-action-row .btn{
    padding: 9px 13px;
    font-size: 12px;
  }

  header.main .theme-toggle{
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  header.main .nav-links{
    display: flex !important;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 18px;
    max-width: 100%;
    overflow-x: auto;
    padding: 8px 2px 2px;
    scrollbar-width: thin;
  }

  header.main .nav-links a{
    font-size: 12.4px;
    padding: 7px 0;
  }
}

@media (max-width: 420px){
  header.main .brand-identity{
    gap: 10px;
  }

  header.main .brand-mark,
  header.main .brand-mark img{
    width: 54px;
    height: 54px;
  }

  header.main .brand-text .name{
    font-size: 16.8px;
  }

  header.main .brand-text .sub{
    letter-spacing: .07em;
  }
}

html[data-theme="dark"] header.main{
  background: rgba(5,20,31,.94);
}

html[data-theme="dark"] header.main .nav-links{
  border-top-color: rgba(234,244,251,.11);
}

/* ---------- Ajuste final hero: fotos protagonistas ---------- */
/* Las dos imágenes del hero ahora usan mejor todo el bloque derecho. */
.hero .wrap.hero-grid{
  max-width: 1500px;
  grid-template-columns: minmax(360px, .82fr) minmax(620px, 1.18fr);
  gap: clamp(52px, 5.6vw, 96px);
}

.hero-visual{
  min-height: clamp(560px, 38vw, 640px);
  display: flex;
  align-items: center;
}

.photo-stack{
  width: min(100%, 840px);
  height: clamp(560px, 38vw, 640px);
  margin-left: auto;
}

.photo-stack img{
  border-radius: 8px;
  border-width: 7px;
}

.photo-stack .ph-1{
  width: 66%;
  height: 68%;
  top: 0;
  right: 0;
}

.photo-stack .ph-2{
  width: 40%;
  height: 60%;
  left: 0;
  bottom: 0;
  z-index: 3;
  transform: rotate(-4deg);
}

.photo-stack .ph-3{
  width: 42%;
  height: 34%;
  right: 5%;
  bottom: 3%;
  z-index: 4;
  transform: rotate(4deg);
}

.photo-stack .ph-tag{
  left: 3%;
  right: auto;
  bottom: 4%;
  z-index: 5;
}

@media (max-width: 1240px){
  .hero .wrap.hero-grid{
    max-width: 1180px;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .hero-visual,
  .photo-stack{
    min-height: 500px;
    height: 500px;
  }
}

@media (max-width: 980px){
  .hero .wrap.hero-grid{
    max-width: var(--container);
    grid-template-columns: 1fr;
  }
}

/* ---------- Hero: collage de fotos en móvil/tablet angosto ---------- */
/* En pantallas angostas, el alto fijo/clamp mínimo (560-500px) volvía el
   contenedor demasiado alto y angosto, forzando un recorte excesivo de
   las fotos (object-fit: cover). Usamos aspect-ratio para mantener una
   proporción de collage más equilibrada en cualquier ancho. */
@media (max-width: 760px){
  .hero .wrap.hero-grid{
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid > *{
    min-width: 0;
  }
  .hero-visual{
    min-height: 0;
    height: auto;
    min-width: 0;
  }
  .photo-stack{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-left: 0;
    min-width: 0;
  }
}

@media (max-width: 480px){
  .photo-stack{
    aspect-ratio: 5 / 4;
  }
}

/* ============================================================
   MEJORAS v2 — Colegio ARMI
   1. Menú hamburguesa móvil
   2. Diferenciación visual de secciones
   3. Testimonios con mejor separación
   4. Hero en tablets mejorado
   5. Paleta con más contraste entre secciones
   ============================================================ */

/* ---------- 1. Hamburguesa + menú móvil deslizante ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: border-color .2s ease, background .2s ease;
  flex-shrink: 0;
  order: -1;
}

.menu-toggle:hover {
  border-color: var(--gold);
  background: rgba(217,167,39,.08);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}

html[data-theme="dark"] .hamburger-bar {
  background: rgba(234,244,251,.85);
}

/* Estado abierto */
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Responsive: mostrar hamburguesa y menú lateral --- */
@media (max-width: 760px) {
  .menu-toggle {
    display: flex !important;
  }
  /* Override: ocultar nav-cta en móvil (el botón hamburguesa lo reemplaza) */
  header.main .header-tools {
    display: none !important;
  }

  /* Menú desplegable móvil: panel lateral desde la derecha */
  header.main .nav-links {
    /* Reset del display inline anterior */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: visible !important;
    overflow-y: auto;

    /* Panel deslizante */
    position: fixed;
    top: 0;
    right: -320px;
    width: min(320px, 88vw);
    height: 100dvh;
    background: var(--paper);
    z-index: 300;
    padding: 80px 28px 40px;
    gap: 6px !important;
    font-size: 16px !important;
    box-shadow: -12px 0 48px rgba(10,45,71,.22);
    transition: right .32s cubic-bezier(.4,0,.2,1);
    border-left: 1px solid var(--line);
  }

  header.main .nav-links.nav-open {
    right: 0;
  }

  header.main .nav-links a {
    padding: 13px 0 !important;
    border-bottom: 1px solid var(--line);
    width: 100%;
    font-size: 15.5px !important;
    color: var(--navy-deep);
  }

  header.main .nav-links a:last-child {
    border-bottom: none;
  }

  header.main .nav-links a::after {
    display: none;
  }

  html[data-theme="dark"] header.main .nav-links {
    background: #081C2E;
    border-left-color: rgba(234,244,251,.12);
  }

  html[data-theme="dark"] header.main .nav-links a {
    color: rgba(234,244,251,.88);
    border-bottom-color: rgba(234,244,251,.10);
  }

  /* Header en móvil: logo centrado, hamburguesa a la derecha */
  header.main nav.wrap.header-layout {
    grid-template-columns: 1fr auto !important;
    grid-template-areas: "brand toggle" !important;
    justify-items: start !important;
    padding: 12px 18px !important;
    gap: 12px !important;
    row-gap: 0 !important;
  }

  header.main .brand-identity {
    grid-area: brand;
    justify-self: start !important;
    justify-content: flex-start !important;
    width: auto !important;
  }

  header.main .menu-toggle {
    grid-area: toggle;
    justify-self: end;
  }

  /* Ocultar nav-links del flujo normal (ahora es panel fijo) */
  header.main .nav-links {
    grid-area: unset;
    border-top: none !important;
    padding-top: 0 !important;
  }
}

/* ---------- 2. Mayor contraste entre secciones ---------- */

/* About: fondo crema más marcado */
.about {
  background: #E3EEF9;
}

html[data-theme="dark"] .about {
  background: #0E2436;
}

/* Levels: fondo ligeramente más oscuro */
.levels {
  background: #D8E7F4;
}

html[data-theme="dark"] .levels {
  background: #0C2032;
}

/* Gallery: fondo blanco puro para contraste con about */
.gallery {
  background: #FFFFFF;
}

html[data-theme="dark"] .gallery {
  background: #081C2E;
}

/* Testimonials: franja de color suave */
.testimonials {
  background: linear-gradient(135deg, #EAF3FB 0%, #fff 60%);
  border-top: 1px solid rgba(217,167,39,.18);
  border-bottom: 1px solid rgba(217,167,39,.18);
}

html[data-theme="dark"] .testimonials {
  background: linear-gradient(135deg, #0D2338 0%, #081C2E 60%);
  border-color: rgba(217,167,39,.14);
}

/* ---------- 3. Testimonios: más separación y consistencia ---------- */
.t-grid {
  gap: 32px;
}

.t-card {
  border: 1px solid rgba(217,167,39,.22);
  box-shadow: 0 12px 32px -20px rgba(10,45,71,.14);
  transition: transform .28s ease, box-shadow .28s ease;
}

.t-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -28px rgba(10,45,71,.22);
}

html[data-theme="dark"] .t-card {
  background: rgba(234,244,251,.055);
  border-color: rgba(234,244,251,.12);
}

@media (max-width: 980px) {
  .t-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .t-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .t-card {
    padding: 26px 22px;
  }
}

/* ---------- 4. Hero en tablets: mejor uso del espacio ---------- */
@media (min-width: 761px) and (max-width: 979px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .hero h1 {
    max-width: 22ch;
    font-size: clamp(34px, 4.8vw, 48px);
  }

  .hero p.lede {
    max-width: 60ch;
  }

  .hero-stats {
    justify-content: flex-start;
    gap: 32px;
  }
}

/* ---------- 5. Admisión: botón SAE destacado ---------- */
.admission .btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  box-shadow: 0 14px 30px -16px rgba(217,167,39,.65);
}

.admission .btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(217,167,39,.75);
}

/* ---------- 6. Refinamiento general de cards ---------- */

/* PIE cards: más separación visual */
.pie-card {
  border-radius: 10px;
}

/* Level cards: bordes redondeados sutiles */
.levels-grid {
  border-radius: 8px;
  overflow: hidden;
}

/* ---------- 7. Focus accesible mejorado ---------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 8. Sección PIE con cards más amplias en tablet ---------- */
@media (min-width: 641px) and (max-width: 979px) {
  .pie-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pie-grid .pie-card:last-child {
    grid-column: span 2;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ---------- 9. Galería en tablet: 3 cols ---------- */
@media (min-width: 641px) and (max-width: 979px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 175px;
  }

  .g-big {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* ---------- 10. Contact section layout mejorado ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  margin-top: 14px;
  margin-bottom: 6px;
}

/* ---------- Hamburguesa visible en tablet también ---------- */
@media (max-width: 1120px) {
  /* En tablets cuando el nav se vuelve de 2 filas, mejor hamburguesa */
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex !important;
  }

  header.main .header-tools {
    display: none !important;
  }

  /* El panel también aplica en tablet */
  header.main .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: visible !important;
    overflow-y: auto;
    position: fixed;
    top: 0;
    right: -320px;
    width: min(320px, 88vw);
    height: 100dvh;
    background: var(--paper);
    z-index: 300;
    padding: 80px 28px 40px;
    gap: 4px !important;
    font-size: 15.5px !important;
    box-shadow: -12px 0 48px rgba(10,45,71,.22);
    transition: right .32s cubic-bezier(.4,0,.2,1);
    border-left: 1px solid var(--line);
    border-top: none !important;
  }

  header.main .nav-links.nav-open {
    right: 0;
  }

  header.main nav.wrap.header-layout {
    grid-template-columns: 1fr auto !important;
    grid-template-areas: "brand toggle" !important;
    justify-items: start !important;
    padding: 12px 22px !important;
    row-gap: 0 !important;
  }

  header.main .brand-identity {
    grid-area: brand;
    justify-self: start !important;
  }

  header.main .menu-toggle {
    grid-area: toggle;
    justify-self: end;
  }

  html[data-theme="dark"] header.main .nav-links {
    background: #081C2E;
    border-left-color: rgba(234,244,251,.12);
  }

  html[data-theme="dark"] header.main .nav-links a {
    color: rgba(234,244,251,.88);
    border-bottom-color: rgba(234,244,251,.10);
  }

  header.main .nav-links a {
    padding: 13px 0 !important;
    border-bottom: 1px solid var(--line);
    width: 100%;
    color: var(--navy-deep);
  }

  header.main .nav-links a:last-child {
    border-bottom: none;
  }

  header.main .nav-links a::after {
    display: none;
  }
}


/* ---------- Ajuste de fotos de profesores: encuadre automático ---------- */
/*
  Objetivo: que cualquier foto nueva enviada por WhatsApp o celular
  quede centrada y bien presentada dentro de las tarjetas de profesores,
  sin tener que recortar a mano cada vez.
*/
#profesores .teacher-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

#profesores .teacher-card > img{
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  object-fit: cover;
  object-position: center center;
  background: linear-gradient(180deg, #eef3fb 0%, #dfe9f8 100%);
}

#profesores .teacher-card-body{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

#profesores .teacher-card h3,
#profesores .teacher-specialty,
#profesores .teacher-mail{
  min-width: 0;
}

@media (max-width: 980px){
  #profesores .teacher-card > img{
    min-height: 300px;
  }
}

@media (max-width: 760px){
  #profesores .teacher-card > img{
    min-height: 280px;
  }
}

@media (max-width: 560px){
  #profesores .teacher-card > img{
    min-height: 260px;
  }
}

/* ---------- Admisión: panel de apoyo presencial, FAQ y cierre (reordenado) ---------- */
.admission-extra{
  display: block;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(234,244,251,0.14);
}

.support-panel{
  background: var(--paper);
  border-radius: 10px;
  padding: 36px clamp(20px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.support-panel-head .support-tag{
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
  background: var(--gold-light);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.support-panel-head h3{
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 25px);
  color: var(--navy-deep);
  line-height: 1.2;
  margin-bottom: 12px;
}

.support-panel-head p{
  color: rgba(22,35,46,0.72);
  font-size: 14.5px;
  line-height: 1.6;
}

.support-panel-rows{
  display: flex;
  flex-direction: column;
}

.support-panel-rows .contact-row{
  border-bottom-color: var(--line);
}

.support-panel-rows .contact-row:last-child{
  border-bottom: none;
}

@media (max-width: 860px){
  .support-panel{
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 8px;
  }
}

.faq-block{
  margin-top: 48px;
}

.faq-title{
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  color: #fff;
  margin-bottom: 20px;
}

.faq-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faq-item{
  background: rgba(234,244,251,0.06);
  border: 1px solid rgba(234,244,251,0.14);
  border-radius: 8px;
  padding: 20px 22px;
}

.faq-item h4{
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  line-height: 1.35;
}

.faq-item p{
  font-size: 13.5px;
  color: rgba(234,244,251,0.68);
  line-height: 1.6;
}

@media (max-width: 980px){
  .faq-list{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px){
  .faq-list{
    grid-template-columns: 1fr;
  }
}

.admission-closing{
  margin-top: 48px;
  background: rgba(234,244,251,0.07);
  border: 1px solid rgba(234,244,251,0.16);
  border-radius: 10px;
  padding: 30px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.admission-closing h3{
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 21px);
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
  max-width: 34ch;
}

.admission-closing p{
  color: rgba(234,244,251,0.68);
  font-size: 14px;
  margin: 0;
}

.admission-closing-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 700px){
  .admission-closing{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Talleres: subtítulo y bloque "por qué elegir" (reordenado) ---------- */
.workshops-subhead{
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 21px);
  color: var(--navy-deep);
  margin-top: 22px;
  margin-bottom: 6px;
}

.workshops-why{
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.section-subtitle{
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--navy-deep);
  margin-bottom: 26px;
}

.workshops-whatsapp{
  margin-top: 32px;
  background: var(--cream);
  border-radius: 8px;
  padding: 22px clamp(18px, 3vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.workshops-whatsapp h4{
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 4px;
}

.workshops-whatsapp p{
  font-size: 13.5px;
  color: rgba(22,35,46,0.68);
  margin: 0;
}

@media (max-width: 600px){
  .workshops-whatsapp{
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================================
   Nuestro Colegio: párrafos justificados + 3 fotos a la derecha
   ========================================================= */
#colegio .about-grid-text-photos{
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

#colegio .about-copy{
  max-width: 100%;
}

#colegio .about-copy > p,
#colegio .value-item p{
  text-align: justify;
  text-justify: inter-word;
  hyphens: none; word-break: normal; overflow-wrap: normal;
}

#colegio .about-photo-collage{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: clamp(155px, 17vw, 230px);
  gap: clamp(12px, 1.6vw, 18px);
  align-self: stretch;
}

#colegio .about-photo{
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--cream-2);
  border: 1px solid rgba(35,69,116,.12);
  box-shadow: 0 18px 42px -30px rgba(19,44,79,.32);
}

#colegio .about-photo-main{
  grid-column: 1 / -1;
}

#colegio .about-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

#colegio .about-photo:hover img{
  transform: scale(1.035);
}

#colegio .about-photo::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(19,44,79,0) 56%, rgba(19,44,79,.18) 100%);
  pointer-events:none;
}

html[data-theme="dark"] #colegio .about-photo{
  border-color: rgba(143,216,255,.14);
  box-shadow: 0 20px 44px -30px rgba(0,0,0,.75);
}

@media (max-width: 980px){
  #colegio .about-grid-text-photos{
    grid-template-columns: 1fr;
  }

  #colegio .about-photo-collage{
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(170px, 26vw, 260px);
  }

  #colegio .about-photo-main{
    grid-column: span 1;
  }
}

@media (max-width: 720px){
  #colegio .about-copy > p,
  #colegio .value-item p{
    text-align: left;
  }

  #colegio .about-photo-collage{
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  #colegio .about-photo,
  #colegio .about-photo-main{
    grid-column: auto;
  }
}

@media (max-width: 420px){
  #colegio .about-photo-collage{
    grid-auto-rows: 220px;
  }
}


/* Ajuste galería Colegio ARMI */
#colegio .about-photo-collage{
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(170px, 18vw, 240px);
}

#colegio .about-photo-main{
  grid-column: 1 / -1;
}

#colegio .about-copy p,
#colegio .value-item p{
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.7;
}

@media(max-width:720px){
 #colegio .about-photo-collage{
   grid-template-columns:1fr;
 }
}


/* Ajustes PIE */
.pie-intro{
    width: 100%;
}

.pie-intro p{
    text-align: justify;
    width: 100%;
    max-width: 1100px;
    line-height: 1.75;
    display: block;
}

.pie .pie-card:last-child{
    width:100%;
    grid-column:1/-1;
    background: rgba(8,28,46,0.55);
    border: 1px solid rgba(255,255,255,0.14);
    position: relative;
    z-index: 1;
}

.pie .value-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}

/* Los títulos del checklist heredaban un color oscuro pensado para fondos
   claros; sobre el fondo navy del módulo PIE quedaban casi invisibles y
   daban la sensación de que las fotos se sobreponían al texto. Forzamos
   colores claros legibles en este contexto. */
.pie .value-item h4{
    color: #fff;
}
.pie .value-item p{
    color: rgba(234,244,251,0.72);
}
.pie .value-icon{
    background: rgba(217,167,39,0.18);
    color: var(--gold-light);
    border: 1px solid rgba(217,167,39,0.4);
}

/* Galería PIE: spans the full width of .pie-grid and uses a proper
   responsive grid (instead of flex) so images never get squeezed or
   over-cropped, regardless of the surrounding card columns. */
.pie-gallery{
    grid-column: 1 / -1;
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:18px;
    width:100%;
    margin:35px 0;
}

.pie-gallery img{
    width:100%;
    aspect-ratio: 4/3;
    object-fit:cover;
    object-position:center;
    border-radius:16px;
    display:block;
}

/* Tablet: manten 3 columnas pero con aspecto un poco más alto */
@media (min-width:641px) and (max-width:979px){
    .pie-gallery{
        gap:16px;
    }
}

/* Phone: apila las 3 fotos en una sola columna, cada una con su
   propio recuadro proporcional (sin recortes agresivos). */
@media(max-width:640px){
    .pie .value-list{
        grid-template-columns:1fr;
    }
    .pie-gallery{
        grid-template-columns:1fr;
        gap:14px;
        margin:28px 0 40px;
    }
    .pie-gallery img{
        aspect-ratio: 4/3;
        border-radius:14px;
    }
    .pie .pie-card:last-child{
        margin-top: 8px;
        padding: 26px 22px;
    }
}


/* Sección Talleres */
.talleres-intro{
  width:100%;
}
.talleres-intro p{
  text-align:justify;
  width:100%;
  max-width:none;
  line-height:1.75;
  hyphens:none;
  word-break:normal;
}

.talleres-content{
  display:grid;
  grid-template-columns:1fr;
  gap:35px;
}

.taller-card{
  background:rgba(255,255,255,0.06);
  color:#EAF4FB;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;
  padding:35px;
}

.taller-card p{
  text-align:justify;
  line-height:1.7;
  word-break:normal;
  color:rgba(234,244,251,0.82);
}

.taller-check{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  padding:0;
  list-style:none;
}

.taller-check li{
  padding:18px;
  border-radius:12px;
  background:rgba(255,255,255,0.06);
  color:#EAF4FB;
  line-height:1.6;
}

.taller-galeria{
  display:grid;
  grid-template-columns:repeat(3, minmax(220px, 1fr));
  gap:24px;
  width:100%;
  margin-top:10px;
}

.foto-placeholder{
  width:100%;
  aspect-ratio: 16/9;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}

.foto-placeholder img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.taller-destacado{
  margin-top:35px;
  padding:30px;
  border-radius:18px;
  background:rgba(255,255,255,0.06);
  color:#EAF4FB;
  border:1px solid rgba(255,255,255,0.12);
}

.taller-destacado p{
  text-align:justify;
  line-height:1.7;
  color:rgba(234,244,251,0.82);
}

.taller-destacado a{
  display:inline-block;
  margin-top:15px;
}

@media(max-width:768px){
 .taller-check{grid-template-columns:1fr;}
 .taller-galeria{grid-template-columns:1fr;}
}

.taller-foto-card{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;
  padding:12px;
  text-align:center;
  overflow:hidden;
}

.taller-foto-card .img-fluid{
  width:100%;
  height:230px;
  overflow:hidden;
  border-radius:18px;
}

.taller-foto-card .img-fluid img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.taller-foto-card h4{
  margin:12px 0 5px;
  color:#F6C343;
}
.taller-foto-card span{
  color:#EAF4FB;
  font-size:.95rem;
}


/* Carrusel actividades */
.activity-carousel{
  position:relative;
  overflow:hidden;
  height:390px;
}
.activity-slides{
  display:flex;
  height:100%;
  transition:transform .45s ease;
}
.activity-slides img{
  min-width:100%;
  height:390px;
  object-fit:cover;
}
.activity-carousel button{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:50%;
  border:0;
  background:#f5c542;
  color:#0d3148;
  font-size:28px;
  cursor:pointer;
  z-index:3;
}
.activity-prev{left:12px}
.activity-next{right:12px}


/* Corrección final módulo admisión */
#admisiones .admission-extra,
.admission-extra{
    width:100%;
    max-width:100%;
}

/* La regla ".admission .wrap" (grid de 2 columnas del hero de admisión)
   también aplica sobre este wrap por compartir la clase "wrap", y por
   tener mayor especificidad rompía el apilado vertical y dejaba texto
   fuera de vista. Se fuerza aquí un bloque simple de una sola columna
   con mayor especificidad para que el orden en el HTML (panel de apoyo
   -> preguntas frecuentes -> cierre) se respete visualmente. */
.admission .wrap.admission-extra{
    display:block;
    grid-template-columns:none;
}

.admission-extra .support-panel{
    width:100%;
    display:block;
    background:rgba(234,244,251,0.07);
    color:#fff;
    padding:40px;
}

.admission-extra .support-panel-head{
    width:100%;
}

.admission-extra .support-panel-head .support-tag{
    color: var(--navy-deep);
    background: var(--gold-light);
}

.admission-extra .support-panel-head h3,
.admission-extra .support-panel-head p{
    color:#fff;
}

.admission-extra .support-panel-head h3{
    max-width:none;
    font-size:clamp(26px,3vw,38px);
}

.admission-extra .support-panel-head p{
    max-width:none;
    font-size:16px;
    line-height:1.75;
}

.admission-extra .support-panel-rows{
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-top:30px;
}

.admission-extra .contact-row{
    background:rgba(234,244,251,.08);
    border:1px solid rgba(234,244,251,.16);
    border-radius:12px;
    padding:20px;
}

.admission-extra .c-label,
.admission-extra .c-value{
    color:#fff;
}

.faq-block{
    width:100%;
    margin-top:45px;
}

.faq-title{
    width:100%;
    color:#fff;
}

.faq-list{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}

.faq-item{
    width:100%;
}

.faq-item h4{
    color:#f5c84c;
}

.faq-item p{
    color:rgba(255,255,255,.85);
}

.admission-closing{
    width:100%;
    margin-top:45px;
}

.admission-closing h3{
    max-width:none;
}

.admission-closing-actions .btn{
    min-width:240px;
}

@media(max-width:900px){
    .admission-extra .support-panel-rows,
    .faq-list{
        grid-template-columns:1fr;
    }
}

/* Letras más grandes en todo el módulo de admisión extra, apoyo, FAQ y cierre */
.admission-extra .support-panel-head h3{
    font-size:clamp(30px,3.6vw,44px);
}

.admission-extra .support-panel-head p{
    font-size:18px;
    line-height:1.7;
}

.admission-extra .support-panel-rows .c-label{
    font-size:14px;
}

.admission-extra .support-panel-rows .c-value{
    font-size:18px;
}

.admission-extra .support-panel-rows .c-icon{
    width:44px;
    height:44px;
    font-size:19px;
}

.faq-title{
    font-size:clamp(28px,3.2vw,36px);
}

.faq-item h4{
    font-size:19px;
}

.faq-item p{
    font-size:16.5px;
    line-height:1.7;
}

.admission-closing h3{
    font-size:clamp(24px,2.6vw,30px);
    max-width:none;
}

.admission-closing p{
    font-size:16.5px;
}


/* Modo único Luna permanente */
:root {
    --bg-color: #0d2438;
    --background: #0d2438;
    --text-color: #ffffff;
}

body {
    background: #0d2438 !important;
    color: #ffffff;
}

/* Ocultar selector de tema */
.theme-toggle,
.theme-switch,
.dark-light-toggle,
#theme-toggle,
#toggle-theme,
.sun-icon,
.moon-icon {
    display:none !important;
}

.taller-foto-card:first-child .img-fluid img{
  object-position:center center;
}

.taller-foto-card:last-child .img-fluid img{
  object-position:center center;
}

/* Plan de Transición 2026 */
.plan-transicion{
 margin-bottom:20px;
 width:100%;
 color:#fff;
}
.plan-transicion .section-head p{
 color:#fff;
 text-align:justify;
 line-height:1.8;
}
.plan-carousel{
 position:relative;
 width:100%;
 overflow:hidden;
 border-radius:18px;
 margin-top:30px;
}
.plan-track{
 display:flex;
 transition:.5s ease;
}
.plan-track img{
 min-width:100%;
 height:420px;
 object-fit:cover;
}
.plan-dots{
 position:absolute;
 bottom:18px;
 left:50%;
 transform:translateX(-50%);
 display:flex;
 gap:8px;
}
.plan-dots span{
 width:11px;
 height:11px;
 border-radius:50%;
 background:#fff;
 opacity:.7;
}

/* Ajuste imágenes Plan de Transición 2026 */
.plan-track{
    align-items:center;
}

.plan-track img{
    height:420px;
    object-fit:contain;
    background:rgba(255,255,255,.04);
}

/* Ajuste final fotos profesores: mismo encuadre visual en todas las tarjetas */
#profesores .teacher-card > img{
  height: 420px !important;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center top;
}

#profesores .teacher-card:nth-child(2) > img,
#profesores .teacher-card:nth-child(3) > img{
  object-position: center center;
}
