
  :root {
    --primary: #1a6b3c;
    --primary-light: #2d9b5a;
    --accent: #f5a623;
    --accent2: #e84c88;
    --sky: #3b9ed6;
    --bg: #faf9f5;
    --white: #ffffff;
    --dark: #1a2235;
    --gray: #6b7280;
    --light: #f0f4f0;
    --radius: 18px;
  }

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

  body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--dark);
    overflow-x: hidden;
  }

  /* ─── NAV ─── */
  nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 70px;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }

  .nav-logo-icon {
    width: 44px; height: 44px;
    background: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
  }

  .nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
  }

  .nav-logo-text span { font-size: .75rem; font-family: 'Nunito', sans-serif; color: var(--gray); display: block; font-weight: 600; }

  .nav-links { display: flex; gap: 4px; }

  .nav-links a {
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 10px;
    transition: background .2s, color .2s;
    cursor: pointer;
  }

  .nav-links a:hover, .nav-links a.active {
    background: var(--primary);
    color: var(--white);
  }

  /* ─── SECTIONS ─── */
  .section { display: none; }
  .section.active { display: block; }

  /* ─── HOME HERO / CAROUSEL ─── */
  .carousel {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: var(--dark);
  }

  .slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .7s ease;
    padding: 3rem;
  }

  .slide.active { opacity: 1; }

  .slide-1 { background: linear-gradient(135deg, #1a6b3c 0%, #2d9b5a 60%, #f5a623 100%); }
  .slide-2 { background: linear-gradient(135deg, #3b9ed6 0%, #1a6b3c 100%); }
  .slide-3 { background: linear-gradient(135deg, #e84c88 0%, #f5a623 100%); }
  .slide-4 { background: linear-gradient(135deg, #1a2235 0%, #3b9ed6 100%); }

  .slide-content {
    text-align: center;
    color: #fff;
    max-width: 700px;
  }

  .slide-tag {
    display: inline-block;
    background: rgba(255,255,255,.2);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  .slide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: .8rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
  }

  .slide-content p { font-size: 1.05rem; opacity: .9; line-height: 1.6; }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.25);
    border: none;
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background .2s;
    backdrop-filter: blur(4px);
    z-index: 10;
  }

  .carousel-btn:hover { background: rgba(255,255,255,.45); }
  .carousel-btn.prev { left: 1.5rem; }
  .carousel-btn.next { right: 1.5rem; }

  .carousel-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px;
    z-index: 10;
  }

  .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: none;
  }
  .dot.active { background: #fff; transform: scale(1.3); }

  /* ─── HISTORIA ─── */
  .historia {
    padding: 5rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .historia-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f4ed;
    color: var(--primary);
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.2rem;
  }

  .historia h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1.2rem;
  }

  .historia p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .historia-visual {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
  }

  .historia-visual::before {
    content: '🏫';
    position: absolute;
    font-size: 8rem;
    opacity: .1;
    right: -1rem;
    bottom: -1rem;
  }

  .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .stat-card {
    background: rgba(255,255,255,.15);
    border-radius: 14px;
    padding: 1.2rem;
    backdrop-filter: blur(4px);
  }

  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    display: block;
  }

  .stat-label { font-size: .82rem; opacity: .85; font-weight: 600; }

  /* ─── DOCENTES ─── */
  .docentes-section {
    background: var(--light);
    padding: 5rem 2.5rem;
  }

  .section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
  }

  .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: .6rem;
  }

  .section-header p { color: var(--gray); line-height: 1.7; }

  .docentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .docente-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
  }

  .docente-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

  .docente-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
  }

  .docente-name { font-weight: 800; font-size: .95rem; color: var(--dark); margin-bottom: .3rem; }
  .docente-role { font-size: .8rem; color: var(--gray); font-weight: 600; }
  .docente-badge {
    margin-top: .8rem;
    display: inline-block;
    background: #e6f4ed;
    color: var(--primary);
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
  }

  /* ─── FORMULARIOS ─── */
  .formularios-section {
    padding: 5rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .formularios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.8rem;
    margin-top: 3rem;
  }

  .form-card {
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
  }

  .form-card::after {
    content: '⬇ Descargar';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    padding: .7rem;
    transform: translateY(100%);
    transition: transform .25s;
    backdrop-filter: blur(4px);
  }

  .form-card:hover::after { transform: translateY(0); }
  .form-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,.15); }

  .fc-1 { background: linear-gradient(135deg, #e84c88 0%, #f5a623 100%); }
  .fc-2 { background: linear-gradient(135deg, #3b9ed6 0%, #1a6b3c 100%); }
  .fc-3 { background: linear-gradient(135deg, #1a6b3c 0%, #2d9b5a 100%); }
  .fc-4 { background: linear-gradient(135deg, #1a2235 0%, #3b9ed6 100%); }

  .form-icon { font-size: 3.5rem; margin-bottom: 1.2rem; }
  .form-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: .5rem; }
  .form-desc { font-size: .82rem; color: rgba(255,255,255,.85); line-height: 1.5; }

  .form-note {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--gray);
    font-size: .9rem;
    font-weight: 600;
  }

  .form-note a { color: var(--primary); text-decoration: none; font-weight: 800; }

  /* ─── PROYECTOS ─── */
  .proyectos-section {
    padding: 5rem 2.5rem;
    background: var(--light);
  }

  .proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 3rem auto 0;
  }

  .proyecto-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    transition: transform .25s, box-shadow .25s;
  }

  .proyecto-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }

  .proyecto-header {
    padding: 2.5rem 2rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .proyecto-emoji { font-size: 2.8rem; flex-shrink: 0; }

  .proyecto-h { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 900; color: var(--dark); line-height: 1.3; margin-bottom: .3rem; }
  .proyecto-sub { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }

  .proyecto-body { padding: 0 2rem 2rem; border-top: 2px solid var(--light); margin-top: .5rem; text-align: justify; }
  .proyecto-body p { color: var(--gray); font-size: .9rem; line-height: 1.7; padding-top: 1.2rem; }

  .pt-folk { border-top: 4px solid var(--accent); }
  .pt-arte { border-top: 4px solid var(--accent2); }
  .pt-lengua { border-top: 4px solid var(--sky); }
  .pt-infancias { border-top: 4px solid var(--primary); }

  .ps-folk { color: var(--accent); }
  .ps-arte { color: var(--accent2); }
  .ps-lengua { color: var(--sky); }
  .ps-infancias { color: var(--primary); }

  /* ─── ORGANIZACIÓN ─── */
  .organizacion-section {
    padding: 5rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .turnos-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
  }

  .turno-card {
    border-radius: 24px;
    padding: 3rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
  }

  .tc-manana { background: linear-gradient(135deg, #f5a623 0%, #e84c88 100%); }
  .tc-tarde { background: linear-gradient(135deg, #3b9ed6 0%, #1a2235 100%); }

  .turno-card::before {
    content: attr(data-emoji);
    position: absolute;
    font-size: 7rem;
    opacity: .12;
    right: -1rem;
    bottom: -1rem;
  }

  .turno-label {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255,255,255,.2);
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.2rem;
  }

  .turno-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 2rem;
  }

  .grado-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; }

  .grado-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
    padding: .9rem 1.2rem;
    backdrop-filter: blur(4px);
    font-weight: 700;
    font-size: .95rem;
  }

  .grado-num {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .turno-horario {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 800;
    font-size: 1rem;
    background: rgba(255,255,255,.2);
    padding: .9rem 1.2rem;
    border-radius: 12px;
  }

  /* ─── FOOTER ─── */
  footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 2.5rem;
    font-size: .85rem;
    font-weight: 600;
  }

  footer strong { color: #fff; }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 768px) {
    nav { padding: 0 1.2rem; }
    .nav-links a { padding: 6px 10px; font-size: .8rem; }
    .historia { grid-template-columns: 1fr; gap: 2rem; }
    .turnos-wrap { grid-template-columns: 1fr; }
  }

  /* ─── PORTAL DOCENTE — LOGIN OVERLAY ─── */
  #login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(26, 34, 53, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
  }
  #login-overlay.show { display: flex; }

  .login-box {
    background: var(--white);
    border-radius: 28px;
    padding: 3rem 2.8rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
    position: relative;
    animation: popIn .35s cubic-bezier(.34,1.56,.64,1);
  }
  @keyframes popIn {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
  }

  .login-close {
    position: absolute;
    top: 1.2rem; right: 1.4rem;
    background: var(--light);
    border: none;
    border-radius: 50%;
    width: 34px; height: 34px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--gray);
    transition: background .2s;
  }
  .login-close:hover { background: #e0e0e0; }

  .login-logo {
    text-align: center;
    margin-bottom: 1.8rem;
  }
  .login-logo div {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto .9rem;
    box-shadow: 0 8px 24px rgba(26,107,60,.3);
  }
  .login-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--dark);
  }
  .login-logo p { font-size: .83rem; color: var(--gray); font-weight: 600; margin-top: .2rem; }

  .login-field { margin-bottom: 1.1rem; }
  .login-field label {
    display: block;
    font-size: .82rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: .45rem;
    text-transform: uppercase;
    letter-spacing: .6px;
  }
  .login-field input {
    width: 100%;
    padding: .85rem 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--bg);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
  }
  .login-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,107,60,.1);
  }

  .login-hint {
    background: #e6f4ed;
    border-radius: 10px;
    padding: .7rem 1rem;
    font-size: .8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-align: center;
  }

  .login-error {
    background: #fde8ef;
    border-radius: 10px;
    padding: .7rem 1rem;
    font-size: .83rem;
    color: #c0174d;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
  }

  .login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(26,107,60,.35);
  }
  .login-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26,107,60,.4); }

  /* ─── PORTAL DOCENTE — DASHBOARD ─── */
  #portal-nav {
    background: linear-gradient(135deg, #1a2235 0%, #1a6b3c 100%);
    padding: 0 2.5rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 70px;
    z-index: 900;
  }
  #portal-nav.show { display: flex; }

  .portal-nav-tabs { display: flex; gap: 4px; }
  .portal-tab {
    background: rgba(255,255,255,.1);
    border: none;
    color: rgba(255,255,255,.8);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, color .2s;
  }
  .portal-tab:hover, .portal-tab.active {
    background: rgba(255,255,255,.25);
    color: #fff;
  }

  .portal-user {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: rgba(255,255,255,.9);
    font-size: .85rem;
    font-weight: 700;
  }
  .portal-avatar {
    width: 32px; height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    font-weight: 900;
    color: var(--dark);
  }
  .logout-btn {
    background: rgba(255,255,255,.15);
    border: none;
    color: rgba(255,255,255,.8);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
  }
  .logout-btn:hover { background: rgba(255,255,255,.28); }

  /* ─── PORTAL SECCIONES ─── */
  #portal-content { display: none; }
  #portal-content.show { display: block; }

  .portal-section { display: none; }
  .portal-section.active { display: block; }

  .portal-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
  }

  .portal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: .5rem;
  }
  .portal-sub { color: var(--gray); font-size: .95rem; font-weight: 600; margin-bottom: 2.5rem; }

  /* Documentos institucionales */
  .doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .doc-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: .8rem;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    border-left: 5px solid transparent;
  }
  .doc-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.12); }

  .dc-pei { border-color: var(--primary); }
  .dc-pai { border-color: var(--accent); }
  .dc-pci { border-color: var(--sky); }

  .doc-icon { font-size: 2.4rem; }
  .doc-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--dark);
  }
  .doc-full { font-size: .82rem; color: var(--gray); font-weight: 600; }
  .doc-desc { font-size: .85rem; color: var(--gray); line-height: 1.6; flex: 1; }
  .doc-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--light);
    color: var(--dark);
    font-size: .8rem;
    font-weight: 800;
    padding: .55rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background .2s;
    width: fit-content;
  }
  .doc-btn:hover { background: #d8e8dd; }

  /* Planificaciones */
  .plani-grado {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    overflow: hidden;
  }

  .plani-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.8rem;
    cursor: pointer;
    user-select: none;
    transition: background .2s;
  }
  .plani-header:hover { background: var(--light); }

  .plani-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .plani-num {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
  }
  .pg-1 { background: linear-gradient(135deg, #e84c88, #f5a623); }
  .pg-2 { background: linear-gradient(135deg, #3b9ed6, #1a6b3c); }
  .pg-3 { background: linear-gradient(135deg, #1a6b3c, #2d9b5a); }
  .pg-4 { background: linear-gradient(135deg, #f5a623, #e84c88); }
  .pg-5 { background: linear-gradient(135deg, #1a2235, #3b9ed6); }
  .pg-6 { background: linear-gradient(135deg, #3b9ed6, #e84c88); }
  .pg-7 { background: linear-gradient(135deg, #1a6b3c, #1a2235); }

  .plani-grado-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
  }
  .plani-grado-count { font-size: .8rem; color: var(--gray); font-weight: 600; }

  .plani-chevron {
    font-size: 1.1rem;
    color: var(--gray);
    transition: transform .3s;
  }
  .plani-chevron.open { transform: rotate(180deg); }

  .plani-body {
    display: none;
    padding: 0 1.8rem 1.5rem;
    border-top: 1px solid var(--light);
  }
  .plani-body.open { display: block; }

  .materias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .9rem;
    margin-top: 1.2rem;
  }

  .materia-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: 2px solid transparent;
  }
  .materia-card:hover {
    background: #e6f4ed;
    border-color: var(--primary);
    transform: translateY(-2px);
  }
  .materia-emoji { font-size: 1.4rem; flex-shrink: 0; }
  .materia-name { font-size: .85rem; font-weight: 800; color: var(--dark); line-height: 1.3; }
  .materia-ver { font-size: .72rem; color: var(--primary); font-weight: 700; }

  .carousel{
    width:100%;
    margin:0;
    padding:0;
}

.slide{
    position:relative;
    width:100%;
    height:100vh; /* pantalla completa */
    overflow:hidden;
}

.slide-image{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.slide-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.35);
}

.slide-content{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:80%;
    max-width:900px;
    text-align:center;
    color:#fff;
    z-index:2;
}

.slide-content h2{
    font-size:clamp(2rem, 4vw, 4rem);
    line-height:1.1;
    margin-bottom:20px;
    font-weight:700;
    text-shadow:0 2px 10px rgba(0,0,0,.5);
}

.slide-content p{
    font-size:clamp(1rem, 1.5vw, 1.4rem);
    line-height:1.5;
    max-width:700px;
    margin:0 auto;
    text-shadow:0 2px 8px rgba(0,0,0,.5);
}

.slide-content p{
    font-size:clamp(1rem,1.5vw,1.5rem);
}

.teacher-photo{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    object-position:center;
}

.teachers-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:30px;
}

.teacher-card{
    width:100%;
}

@media(max-width:1200px){
    .teachers-grid{
        grid-template-columns:repeat(4, 1fr);
    }
}

@media(max-width:992px){
    .teachers-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media(max-width:768px){
    .teachers-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media(max-width:576px){
    .teachers-grid{
        grid-template-columns:1fr;
    }
}

.hero-slider{
    position:relative;
    width:100%;
    height:700px;
    overflow:hidden;
}

.hero-slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .8s ease;
    pointer-events:none;
}

.hero-slide.active{
    opacity:1;
    pointer-events:auto;
}

.hero-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.35) 50%,
        rgba(0,0,0,.10) 100%
    );
}

.hero-content{
    position:absolute;
    top:50%;
    left:80px;
    transform:translateY(-50%);
    max-width:700px;
    color:#fff;
    z-index:10;
}

.hero-content h1{
    font-size:clamp(2rem,5vw,5rem);
    line-height:1;
    margin:20px 0;
}

.hero-content p{
    font-size:clamp(1rem,1.5vw,1.4rem);
    margin-bottom:25px;
}

.hero-badge{
    display:inline-block;
    background:#f4b400;
    padding:10px 18px;
    border-radius:8px;
    font-weight:700;
}

.hero-btn{
    display:inline-block;
    padding:16px 30px;
    background:#27ae60;
    color:#fff;
    text-decoration:none;
    border-radius:40px;
    font-weight:700;
}

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.25);
    color:#fff;
    font-size:24px;
    cursor:pointer;
    z-index:20;
}

.prev{
    left:20px;
}

.next{
    right:20px;
}

.slider-dots{
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:20;
}

.dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background:rgba(255,255,255,.5);
    cursor:pointer;
}

.dot.active{
    background:#fff;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    margin-top:40px;
}

.project-card{
    background:#fff;
    border-radius:24px;
    padding:35px 30px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
    transition:.3s;
    height:100%;
}

.project-card:hover{
    transform:translateY(-5px);
}

.project-icon{
    width:90px;
    height:90px;
    margin:0 auto 20px;
    border-radius:50%;
    background:#238646;
    color:#fff;
    font-size:42px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.project-card h3{
    color:#0d2240;
    font-size:1.8rem;
    font-weight:700;
    margin-bottom:10px;
}

.project-category{
    display:inline-block;
    background:#e6f4ea;
    color:#238646;
    padding:8px 18px;
    border-radius:20px;
    font-weight:600;
    font-size:.9rem;
    margin-bottom:20px;
}

.project-card p{
    color:#5b6470;
    line-height:1.8;
    font-size:1rem;
}

.project-photo{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    object-position:center;
    display:block;
    margin:0 auto 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* Móviles */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,.1);
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }
}

.modal-login {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-login-content {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    animation: fadeIn .3s ease;
}

.modal-icon {
    text-align: center;
    font-size: 55px;
    margin-bottom: 10px;
}

.modal-login-content h2 {
    text-align: center;
    color: #1a6b3c;
    margin-bottom: 10px;
}

.modal-login-content p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1a6b3c;
}

.btn-ingresar {
    width: 100%;
    padding: 12px;
    border: none;
    background: #1a6b3c;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

.btn-ingresar:hover {
    background: #14522e;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-container {
    position: relative;
}

.password-container input {
    width: 100%;
    padding: 12px 45px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}