/* --- 1. CONFIGURACIÓN MAESTRA --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; 
}

/* Regla de oro para que el sistema de navegación funcione */
.hidden { display: none !important; }

body { 
    background-color: #F8F9FA; 
    color: #333; 
    overflow-x: hidden; 
}

/* --- 2. NAVEGACIÓN --- */
.navbar { 
    background: white; 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
}

.nav-logo { height: 55px; }

.hamburger-btn { 
    background: none; 
    border: none; 
    font-size: 30px; 
    color: #214065; 
    cursor: pointer; 
}

/* Menú Lateral */
.side-menu { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 280px; 
    height: 100vh; 
    background: #214065; 
    padding: 40px; 
    transition: 0.3s; 
    z-index: 2000; 
}

.side-menu.active { right: 0; }

.close-btn { 
    background: none; 
    border: none; 
    color: white; 
    font-size: 35px; 
    float: right; 
    cursor: pointer; 
}

.menu-links { list-style: none; margin-top: 50px; }
.menu-links li { margin-bottom: 25px; }
.menu-links a { 
    color: white; 
    text-decoration: none; 
    font-size: 18px; 
    transition: 0.3s;
}
.menu-links a:hover { color: #59A136; }
.menu-special { color: #59A136 !important; font-weight: bold; }

/* --- 3. SECCIONES PÚBLICAS (Inicio, Nosotros, Metodología) --- */
section { 
    padding: 140px 8% 80px; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

h1 { font-size: 52px; color: #214065; font-weight: 700; margin-bottom: 25px; line-height: 1.2; }
h2 { font-size: 38px; color: #214065; font-weight: 700; margin-bottom: 30px; }
h4 { font-size: 22px; color: #214065; margin-bottom: 15px; font-weight: 600; }
p { font-size: 19px; line-height: 1.8; color: #444; }

/* Botones Principales */
.btn-primary { 
    background: #59A136; 
    color: white; 
    border: none; 
    padding: 16px 32px; 
    border-radius: 12px; 
    font-weight: 700; 
    font-size: 17px; 
    cursor: pointer; 
    transition: 0.3s; 
}
.btn-primary:hover { background: #4a8a2d; transform: scale(1.02); }

.btn-secondary { 
    color: #214065; 
    border: 2px solid #214065; 
    padding: 14px 28px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    margin-left: 15px; 
    cursor: pointer; 
    font-size: 17px; 
}

/* Tarjetas Informativas */
.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.info-card { 
    background: white; 
    padding: 35px; 
    border-radius: 20px; 
    border-top: 8px solid #214065; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.step-item { 
    background: white; 
    padding: 25px; 
    margin-bottom: 15px; 
    border-radius: 15px; 
    border-left: 6px solid #59A136; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
    font-size: 18px;
}

.method-footer { text-align: center; margin-top: 50px; }
.quote { font-style: italic; font-size: 22px; color: #214065; margin-bottom: 30px; }
.button-container { display: flex; justify-content: center; width: 100%; }

/* --- 4. LOGIN --- */
.login-section { 
    background: linear-gradient(135deg, #214065 0%, #1a3250 100%); 
    align-items: center; 
}

.login-box { 
    background: white; 
    padding: 50px; 
    border-radius: 30px; 
    text-align: center; 
    max-width: 450px; 
    width: 90%; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); 
}

.logo-login { max-width: 140px; margin-bottom: 20px; }
.input-group { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.input-group input { 
    padding: 16px; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    font-size: 16px; 
}

/* Ajuste para que los botones en el login ocupen todo el ancho */
.btn-full { width: 100%; }
.btn-secondary.btn-full { display: block; width: 100%; text-align: center; }

.btn-link { 
    background: none; 
    border: none; 
    color: #214065; 
    text-decoration: underline; 
    cursor: pointer; 
    margin-top: 25px; 
    font-weight: 600; 
}

/* --- 5. DASHBOARD Y PORTAL --- */
.dashboard-section { background-color: #f0f4f8; }

.welcome-header { margin-bottom: 50px; text-align: center; }

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

.dash-card { 
    background: white; 
    padding: 40px; 
    border-radius: 25px; 
    text-align: center; 
    transition: 0.3s; 
    border-top: 8px solid #59A136; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

.dash-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.card-icon { font-size: 45px; margin-bottom: 15px; }

.btn-dash { 
    background: #214065; 
    color: white; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 10px; 
    font-weight: 600; 
    cursor: pointer; 
}

.logout-btn { 
    background: none; 
    border: 1px solid #cc0000; 
    color: #cc0000; 
    padding: 12px 25px; 
    border-radius: 10px; 
    margin-top: 40px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: 0.3s; 
}

.logout-btn:hover { background: #cc0000; color: white; }

/* Tablas de Documentos */
.docs-table-container { 
    width: 100%; 
    overflow-x: auto; 
    background: white; 
    border-radius: 15px; 
    margin-top: 20px; 
}

.docs-table { width: 100%; border-collapse: collapse; }
.docs-table th, .docs-table td { padding: 20px; text-align: left; border-bottom: 1px solid #eee; }
.docs-table th { background: #214065; color: white; }
.btn-download { 
    background: #59A136; 
    color: white; 
    border: none; 
    padding: 8px 15px; 
    border-radius: 5px; 
    cursor: pointer; 
}
/* --- 6. AJUSTE PARA EL CALENDARIO --- */
.calendar-frame {
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    min-height: 700px; /* Importante para que Calendly tenga espacio */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 20px;
}

/* Ajuste para que el widget ocupe todo el ancho */
.calendly-inline-widget {
    width: 100%;
    height: 700px;
}