/* =========================
RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Outfit',sans-serif;
    background:#f3f6fb;
    color:#142b63;
}

/* =========================
BACKGROUND
========================= */

.background-decoration{
    position:fixed;
    inset:0;
    z-index:-1;
    overflow:hidden;
}

.blur-circle{
    position:absolute;
    border-radius:50%;
    filter:blur(120px);
    opacity:.15;
}

.circle-1{
    width:400px;
    height:400px;
    background:#3b82f6;
    top:-100px;
    left:-100px;
}

.circle-2{
    width:350px;
    height:350px;
    background:#2563eb;
    bottom:-100px;
    right:-50px;
}

.circle-3{
    width:300px;
    height:300px;
    background:#60a5fa;
    top:40%;
    left:40%;
}

/* =========================
NAVBAR
========================= */

.navbar{
    height:90px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 40px;
    border-bottom:1px solid #e6edf8;
    position:sticky;
    top:0;
    z-index:100;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.main-logo{
    width:55px;
}

.logo-title-img{
    height:32px;
}

.logo-text p{
    font-size:.8rem;
    color:#64748b;
    line-height:1.4;
}

.nav-links{
    display:flex;
    gap:40px;
}

.nav-links a{
    text-decoration:none;
    color:#1e3a8a;
    font-weight:600;
    transition:.3s;
}

.nav-links a:hover{
    color:#2563eb;
}

/* =========================
CONTENEDOR PRINCIPAL
========================= */

.dashboard{
    display:grid;
    grid-template-columns:1fr 360px;
    gap:30px;
    padding:30px;
    max-width:1600px;
    margin:auto;
}

/* =========================
HERO
========================= */

.hero-card{
    background:white;
    border-radius:30px;
    padding:45px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    border:1px solid #e8eef8;
    box-shadow:0 10px 30px rgba(0,0,0,.04);
}

.hero-left h1{
    font-size:2.2rem;
    color:#12306f;
    margin-bottom:15px;
}

.hero-left p{
    max-width:650px;
    color:#64748b;
    line-height:1.7;
}

.hero-tag{
    display:inline-block;
    background:#e8f0ff;
    color:#2563eb;
    padding:8px 18px;
    border-radius:999px;
    font-size:.85rem;
    font-weight:600;
    margin-bottom:15px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    margin-top:25px;
}

.hero-primary,
.hero-secondary{
    border:none;
    border-radius:14px;
    padding:14px 22px;
    font-weight:600;
    cursor:pointer;
}

.hero-primary{
    background:#2563eb;
    color:white;
}

.hero-secondary{
    background:#eff5ff;
    color:#2563eb;
}

.hero-icon{
    width:140px;
    height:140px;
    border-radius:30px;
    background:#eff5ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:4rem;
    color:#2563eb;
}

/* =========================
SECCIÓN
========================= */

.section-header{
    margin-bottom:25px;
}

.section-header h2{
    font-size:1.8rem;
    color:#12306f;
}

.section-header p{
    color:#64748b;
    margin-top:5px;
}

/* =========================
GRID TALLERES
========================= */

.talleres-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fill,minmax(330px,1fr));
    gap:25px;
}

/* =========================
TARJETAS
========================= */

.taller-card{
    background:white;
    border-radius:24px;
    padding:28px;
    border:1px solid #e8eef8;
    transition:.3s;
    box-shadow:0 5px 20px rgba(0,0,0,.03);
}

.taller-card:hover{
    transform:translateY(-4px);
}

.taller-card h3{
    color:#12306f;
    margin-bottom:15px;
}

.taller-card p{
    color:#64748b;
    line-height:1.6;
}

/* =========================
SIDEBAR
========================= */

.dashboard-sidebar{
    width:100%;
    max-width:none;
    position:static;
    top:auto;
}

.profile-card{
    text-align:left;
    margin-bottom:25px;
}

.profile-avatar{
    width:70px;
    height:70px;
    border-radius:20px;
    background:#eff5ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.8rem;
    color:#2563eb;
    margin-bottom:15px;
}

.profile-card h3{
    font-size:2rem;
    color:#12306f;
}

.profile-card p{
    color:#64748b;
    margin-top:10px;
}

/* =========================
ESTADÍSTICAS
========================= */

.stats-card{
    display:grid;
    grid-template-columns:1fr;
    gap:15px;
    margin-bottom:25px;
}

.stat-item{
    display:flex;
    align-items:center;
    gap:15px;
    padding:14px;
    border:1px solid #edf2f8;
    border-radius:16px;
}

.stat-icon{
    width:50px;
    height:50px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.blue{
    background:#e8f0ff;
    color:#2563eb;
}

.green{
    background:#dcfce7;
    color:#16a34a;
}

.orange{
    background:#fff3df;
    color:#ea580c;
}

/* =========================
BOTONES PANEL
========================= */

.drawer-nav{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:25px;
}

.drawer-button{
    border:none;
    background:#f8fafc;
    border-radius:14px;
    padding:15px;
    text-align:left;
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
    font-weight:600;
}

.drawer-button.active{
    background:#2563eb;
    color:white;
}

/* =========================
INFO CARD
========================= */

.info-card{
    background:#eff5ff;
    padding:18px;
    border-radius:18px;
    display:flex;
    gap:15px;
    margin-top:25px;
}

.info-icon{
    color:#2563eb;
    font-size:1.4rem;
}

/* =========================
FOOTER
========================= */

.footer{
    margin-top:50px;
    background:white;
    border-top:1px solid #e6edf8;
}

.footer-content{
    max-width:1600px;
    margin:auto;
    padding:25px 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.footer-brand{
    display:flex;
    align-items:center;
    gap:15px;
}

.footer-brand img{
    width:45px;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:1200px){

    .dashboard{
        grid-template-columns:1fr;
    }

    .dashboard-sidebar{
        position:relative;
        top:0;
    }

}

@media(max-width:768px){

    .navbar{
        padding:0 20px;
    }

    .nav-links{
        display:none;
    }

    .hero-card{
        flex-direction:column;
        text-align:center;
        gap:25px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .footer-content{
        flex-direction:column;
        gap:15px;
        text-align:center;
    }

}
/* ========================================
MODAL INSCRIPCIÓN
======================================== */

.modal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.modal.active{
    display:flex;
}

.modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.55);
    backdrop-filter:blur(8px);
}

.modal-form{
    position:relative;
    width:100%;
    max-width:650px;
    background:white;
    border-radius:30px;
    padding:35px;
    z-index:2;
    box-shadow:0 30px 80px rgba(0,0,0,.2);
    animation:modalShow .25s ease;
}

@keyframes modalShow{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ========================================
HEADER
======================================== */

.modal-header{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:30px;
}

.modal-icon{
    width:65px;
    height:65px;
    border-radius:18px;
    background:#eff6ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.6rem;
    color:#2563eb;
}

.modal-header h2{
    color:#12306f;
    font-size:1.8rem;
    margin-bottom:4px;
}

.modal-header p{
    color:#64748b;
}

/* ========================================
GRID FORM
======================================== */

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:25px;
}

.input-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.input-group label{
    font-weight:600;
    color:#12306f;
}

.input-icon{
    position:relative;
}

.input-icon i{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
}

.input-icon input{
    width:100%;
    height:52px;
    border:1px solid #dbe4f0;
    border-radius:14px;
    padding-left:45px;
    font-size:15px;
    outline:none;
    transition:.3s;
}

.input-icon input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.15);
}

/* ========================================
INFO
======================================== */

.modal-info{
    background:#eff6ff;
    border:1px solid #dbeafe;
    padding:18px;
    border-radius:16px;
    display:flex;
    gap:12px;
    margin-bottom:25px;
}

.modal-info i{
    color:#2563eb;
    font-size:1.1rem;
    margin-top:3px;
}

.modal-info p{
    color:#334155;
    line-height:1.6;
}

/* ========================================
BOTONES
======================================== */

.modal-buttons{
    display:flex;
    justify-content:flex-end;
    gap:12px;
}

.btn-cancel,
.btn-confirm{
    border:none;
    border-radius:14px;
    padding:14px 22px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.btn-cancel{
    background:#f1f5f9;
    color:#475569;
}

.btn-cancel:hover{
    background:#e2e8f0;
}

.btn-confirm{
    background:#2563eb;
    color:white;
}

.btn-confirm:hover{
    background:#1d4ed8;
}

/* ========================================
RESPONSIVE
======================================== */

@media(max-width:700px){

    .modal-form{
        width:95%;
        padding:25px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .modal-buttons{
        flex-direction:column;
    }

    .btn-cancel,
    .btn-confirm{
        width:100%;
    }

}
/* =========================
TARJETAS DE TALLERES
========================= */

.talleres-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
    gap:30px;
}

.taller-card{
    background:#ffffff;
    border-radius:28px;
    padding:32px;
    border:1px solid #e7edf7;
    box-shadow:0 8px 30px rgba(15,23,42,.05);
    transition:.3s ease;
    position:relative;
    overflow:hidden;
}

.taller-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(15,23,42,.10);
}

.taller-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(
        90deg,
        #2563eb,
        #60a5fa
    );
}

.taller-icon{
    width:64px;
    height:64px;
    border-radius:18px;
    background:#eff6ff;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    margin-bottom:20px;
}

.taller-card h3{
    font-size:1.8rem;
    color:#0f2e72;
    margin-bottom:12px;
}

.taller-descripcion{
    color:#64748b;
    line-height:1.7;
    margin-bottom:20px;
}

.taller-info{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:25px;
}

.taller-info div{
    display:flex;
    align-items:center;
    gap:10px;
    color:#475569;
    font-weight:500;
}

.taller-info i{
    color:#2563eb;
    width:18px;
}

.btn-inscribirse{
    width:100%;
    height:52px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:white;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.btn-inscribirse:hover{
    background:#1d4ed8;
}

.btn-inscribirse i{
    margin-right:8px;
}
/* =========================
BOTONES LOGIN
========================= */

.login-buttons{
    display:flex;
    gap:12px;
    margin-top:15px;
}

.login-buttons button{
    border:none;
    border-radius:14px;
    padding:14px 24px;
    font-family:'Outfit',sans-serif;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

/* Botón principal */

#btnLogin{
    background:#2563eb;
    color:white;
    box-shadow:0 8px 20px rgba(37,99,235,.25);
}

#btnLogin:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

/* Botón secundario */

#btnRegister{
    background:white;
    color:#2563eb;
    border:2px solid #dbeafe;
}

#btnRegister:hover{
    background:#eff6ff;
    border-color:#2563eb;
}

/* Mobile */

@media(max-width:768px){

    .login-buttons{
        flex-direction:column;
        width:100%;
    }

    .login-buttons button{
        width:100%;
    }

}
.input-icon{
    position:relative;
    width:100%;
}

.input-icon i{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
    font-size:18px;
}

.input-icon input{
    width:100%;
    height:58px;
    background:#f8fafc;
    border:1px solid #dbe4f0;
    border-radius:18px;
    padding-left:52px;
    font-size:16px;
    color:#1e293b;
    transition:.3s;
}

.input-icon input:focus{
    border-color:#2563eb;
    background:white;
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
    outline:none;
}
/* ======================
LOGIN DROPDOWN
====================== */

.login-dropdown{
    position:relative;
}

.login-toggle{
    display:flex;
    align-items:center;
    gap:10px;

    border:none;

    background:#eff6ff;

    color:#2563eb;

    padding:12px 20px;

    border-radius:14px;

    font-weight:600;

    cursor:pointer;
}

.login-toggle i{
    font-size:18px;
}

/* ======================
BOX LOGIN
====================== */

.login-box{

    position:absolute;

    top:65px;

    right:0;

    width:340px;

    background:white;

    border-radius:22px;

    padding:20px;

    box-shadow:0 20px 60px rgba(0,0,0,.12);

    border:1px solid #e2e8f0;

    display:none;

    z-index:1000;
}

.login-box.active{
    display:block;
}

.login-box .input-icon{
    margin-bottom:12px;
}

.login-box button{
    width:100%;
    margin-top:10px;
}
/* =========================================
   INSCRIPCIONES
========================================= */

.inscripcion-card{
  background:#fff;

  border-radius:20px;

  padding:18px;

  margin-bottom:16px;

  border:1px solid #e2e8f0;

  box-shadow:
  0 10px 30px rgba(15,23,42,.05);

  transition:.3s;
}

.inscripcion-card:hover{
  transform:translateY(-4px);

  box-shadow:
  0 20px 40px rgba(15,23,42,.08);
}

.inscripcion-top{
  display:flex;
  gap:14px;
  align-items:center;
}

.inscripcion-icon{
  width:55px;
  height:55px;

  border-radius:16px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:linear-gradient(
    135deg,
    #2563eb,
    #1d4ed8
  );

  color:white;

  font-size:20px;

  flex-shrink:0;
}

.inscripcion-info{
  flex:1;
}

.inscripcion-info h3{
  margin:0 0 8px;

  font-size:18px;

  font-weight:700;

  color:#0f172a;
}

.estado-badge{
  display:inline-flex;

  align-items:center;

  gap:6px;

  padding:6px 12px;

  border-radius:999px;

  font-size:13px;

  font-weight:700;
}

/* Pendiente */

.estado-badge.pendiente{
  background:#fef3c7;
  color:#92400e;
}

/* Confirmado */

.estado-badge.confirmado{
  background:#dcfce7;
  color:#166534;
}

/* Activa */

.estado-badge.activa{
  background:#dbeafe;
  color:#1d4ed8;
}

.inscripcion-bottom{
  margin-top:15px;

  padding-top:15px;

  border-top:1px solid #e2e8f0;
}

.dato{
  display:flex;

  align-items:center;

  gap:8px;

  color:#475569;

  font-weight:600;
}

.dato i{
  color:#2563eb;
}
/* =========================================
   MODAL PANEL ALUMNO
========================================= */

.panel-modal{
    position:fixed;
    inset:0;

    background:rgba(15,23,42,.6);

    backdrop-filter:blur(6px);

    display:none;

    align-items:center;
    justify-content:center;

    padding:20px;

    z-index:9999;
}

.panel-modal.active{
    display:flex;
}

.panel-box{
    width:100%;
    max-width:520px;

    max-height:90vh;

    overflow-y:auto;

    background:#fff;

    border-radius:28px;

    padding:24px;

    position:relative;

    box-shadow:
    0 25px 60px rgba(0,0,0,.25);
}

.close-panel{
    position:absolute;

    top:15px;
    right:15px;

    width:42px;
    height:42px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    background:#f1f5f9;

    font-size:18px;
}

.close-panel:hover{
    background:#e2e8f0;
}

/* El panel ahora vive dentro del modal */

.dashboard-sidebar{
    width:100%;
    position:static;
    top:auto;
}

/* Botón flotante */

.floating-panel-btn{
    position:fixed;

    right:20px;
    bottom:20px;

    width:60px;
    height:60px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:#fff;

    font-size:22px;

    cursor:pointer;

    box-shadow:
    0 10px 25px rgba(37,99,235,.4);

    z-index:999;

    display:flex;
    align-items:center;
    justify-content:center;
}
#mobileMenu{
  display:none !important;
}

#mobileMenu.active{
  display:flex !important;
}
/* =========================================
   MODAL ÉXITO
========================================= */

.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.success-modal.active {
  display: flex;
}

.success-box {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 420px;
  animation: pop .25s ease;
}

.success-box i {
  font-size: 50px;
  color: #22c55e;
  margin-bottom: 10px;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 15px;
  background: #25D366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.success-box button {
  margin-top: 15px;
  background: #eee;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes pop {
  from { transform: scale(.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}