/* Reseteo básico y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.5;
}

/* Header y Navegación */
header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.menu a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #2563eb;
}

/* Botones */
.botones-accion {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-texto {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
}

.btn-texto:hover {
    color: #2563eb;
}

.btn-verde {
    background-color: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.btn-verde:hover {
    background-color: #059669;
}

.btn-azul {
    background-color: #2563eb;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.btn-azul:hover {
    background-color: #1d4ed8;
}

.btn-borde {
    background-color: white;
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.btn-borde:hover {
    border-color: #9ca3af;
}

/* Sección Principal (Hero) */
.hero {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.etiqueta {
    background-color: #dbeafe;
    color: #1d4ed8;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #111827;
    margin: 25px 0;
    line-height: 1.1;
}

.hero h1 span {
    color: #2563eb;
}

.hero p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 40px;
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .menu { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .cta-container { flex-direction: column; }
}
/* Formularios de Login y Registro */
.contenedor-form {
    max-width: 450px;
    margin: 60px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.contenedor-form h2 {
    text-align: center;
    color: #111827;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.grupo-form {
    margin-bottom: 20px;
}

.grupo-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.grupo-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.grupo-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.alerta-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #f87171;
}

.btn-100 {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.link-alternativo {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
}

.link-alternativo:hover {
    color: #2563eb;
    text-decoration: underline;
}
/* =========================================
   MODAL DE INICIO DE SESIÓN
========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.activo {
    display: flex;
    opacity: 1;
}

.modal-box {
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.activo .modal-box {
    transform: translateY(0);
}

.btn-cerrar-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-cerrar-modal:hover {
    color: #111827;
}

/* Ajuste al botón del header para que parezca clickeable */
.btn-verde {
    cursor: pointer;
}
/* =========================================
   DASHBOARD / PANELES
========================================= */
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.titulo-panel {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 10px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.card h3 {
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card .numero {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2563eb;
}

.btn-rojo {
    color: #ef4444;
    font-weight: bold;
    text-decoration: none;
}
.btn-rojo:hover { color: #b91c1c; }