
/* ========================================================================= */

/* --- PALETA DE COLORES GLOBAL Y VARIABLES BASE --- */

/* ========================================================================= */

:root {

    /* Nueva Paleta (Basada en Elementor) */

    --color-primary: #03342e; /* Verde Oscuro Principal */

    --color-secondary: #fff; /* Blanco */

    --color-text: #1e1e1e; /* Negro Casi Puro */

    --color-accent: #0bd167; /* Verde Menta Brillante */

    --color-primary-light: #00b980; /* Verde Primario Claro */

    --color-bg-secondary: #cae8dc; /* Verde Pastel (Fondo intermedio) */

    --color-bg-lighter: #e8f4ef; /* Verde Muy Pálido (Fondo principal) */

    

    /* Variables de Estilo Generales */

    --color-white: #ffffff;

    --color-bg: var(--color-bg-lighter);

    --color-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --font-family-alt: 'Roboto', sans-serif;



    /* Gradientes */

    --gradient-main: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));

    --gradient-reverse: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));

}



* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



body {

    font-family: var(--font-family-base);

    background-color: var(--color-bg);

    color: var(--color-text);

    line-height: 1.6;

}



h1, h2, h3, h4 {

    color: var(--color-text);

    margin-bottom: 0.5em;

}



/* ========================================================================= */

/* --- DASHBOARD LAYOUT Y SIDEBAR --- */

/* ========================================================================= */

.dashboard-layout {

    display: flex;

    min-height: 100vh;

}



.sidebar {

    width: 250px;

    /* CONSOLIDADO: Usa el nuevo Verde Oscuro Principal */

    background: var(--color-primary); 

    color: var(--color-white);

    padding-top: 20px;

    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);

    transition: width 0.3s ease;

    flex-shrink: 0;

    font-family: var(--font-family-alt); 

}



.sidebar.collapsed {

    width: 80px; 

}



.sidebar h3 {

    text-align: center;

    margin-bottom: 30px;

    font-size: 1.5em;

    transition: opacity 0.3s ease;

    color: var(--color-white);

}



.sidebar.collapsed h3 {

    opacity: 0;

    font-size: 0;

}



.menu-item {

    padding: 15px 20px;

    cursor: pointer;

    transition: background-color 0.2s;

    display: flex;

    align-items: center;

    color: var(--color-white);

    text-decoration: none;

    gap: 15px; 

    font-weight: 400; 

    white-space: nowrap;

}



.sidebar.collapsed .menu-item {

    padding: 15px 0;

    justify-content: center;

}



.sidebar.collapsed .menu-item span {

    display: none; 

}



.menu-item:hover, .menu-item.active {

    background: var(--gradient-reverse);

    border-left: 5px solid var(--color-accent); /* Verde Menta */

    padding-left: 15px;

}



.sidebar.collapsed .menu-item:hover, .sidebar.collapsed .menu-item.active {

    padding-left: 0px; 

}



.main-content {

    flex-grow: 1;

    display: flex;

    flex-direction: column;

}



.header {

    background-color: var(--color-secondary);

    padding: 15px 30px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    display: flex;

    justify-content: space-between;

    align-items: center;

    z-index: 5;

}



.header button {

    background: none;

    border: none;

    font-size: 24px;

    color: var(--color-primary); /* Verde Oscuro Principal */

    cursor: pointer;

    transition: color 0.2s;

}



.user-profile {

    display: flex;

    align-items: center;

    gap: 10px;

}



.user-profile .avatar {

    width: 40px;

    height: 40px;

    background-color: var(--color-accent); /* Verde Menta Brillante */

    color: var(--color-text);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

}



.page-content {

    padding: 30px;

    flex-grow: 1;

    overflow-y: auto;

}



/* ========================================================================= */

/* --- TARJETAS, GRÁFICOS Y ACCIONES --- */

/* ========================================================================= */

.cards-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-bottom: 30px;

}



.card {

    background-color: var(--color-secondary);

    padding: 20px;

    border-radius: 12px;

    box-shadow: var(--color-shadow);

    transition: transform 0.3s;

}

.card:hover {

    transform: translateY(-5px);

}

.card h4 {

    color: var(--color-primary-light); /* Verde Primario Claro */

    margin-bottom: 10px;

}

.card p {

    font-size: 1.8em;

    font-weight: bold;

}



/* --- GRÁFICAS Y CONTENEDORES --- */

.chart-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 

    gap: 25px;

    margin-bottom: 30px;

}



.chart-container {

    padding: 20px;

    background-color: var(--color-secondary);

    border-radius: 12px;

    box-shadow: var(--color-shadow);

    max-width: 100%; 

    height: 350px; 

    margin: 0 auto;

}

.chart-container canvas {

    max-height: 100%;

    width: 100% !important;

    height: 100% !important;

}



/* --- ACCIONES Y BOTONES --- */

.action-bar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}



.btn-action {

    background: var(--gradient-main); /* Gradiente */

    color: var(--color-white);

    padding: 10px 20px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-size: 1em;

    font-weight: 600;

    transition: transform 0.2s, box-shadow 0.2s;

    display: inline-flex;

    align-items: center;

    gap: 8px;

}



.btn-action:hover {

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

}



.search-box {

    position: relative;

    display: flex;

    align-items: center;

}



.input-search {

    padding: 10px 40px 10px 15px;

    border: 1px solid #ddd;

    border-radius: 8px;

    width: 300px;

    transition: border-color 0.3s;

}



.input-search:focus {

    border-color: var(--color-accent); /* Verde Menta Brillante */

    box-shadow: 0 0 0 3px rgba(11, 209, 103, 0.2);

    outline: none;

}



.search-box i {

    position: absolute;

    right: 15px;

    color: #999;

}



/* ========================================================================= */

/* --- TABLAS --- */

/* ========================================================================= */

.data-table-container {

    background-color: var(--color-secondary);

    padding: 20px;

    border-radius: 12px;

    box-shadow: var(--color-shadow);

    overflow-x: auto;

    max-width: 100%;

    margin-top: 15px; 

    position: relative; 

}



.data-table {

    min-width: 650px; 

    width: 100%;

    border-collapse: collapse;

    font-size: 0.95em;

}



.data-table th {

    position: sticky;

    top: 0;

    background-color: var(--color-bg-lighter); /* Verde Muy Pálido */

    z-index: 10;

    border-bottom: 2px solid var(--color-bg-secondary); /* Verde Pastel */

    padding: 15px;

    text-align: left;

    color: var(--color-text);

    font-weight: 700;

    text-transform: uppercase;

}



.data-table td {

    padding: 15px;

    text-align: left;

    border-bottom: 1px solid #eee;

}



.data-table tbody tr:hover {

    background-color: var(--color-bg-lighter); /* Verde Muy Pálido */

}



.table-actions button {

    margin-right: 5px;

    padding: 8px 10px;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    font-size: 0.9em;

    transition: opacity 0.2s;

}



.btn-edit {

    background-color: var(--color-primary-light); 

    color: var(--color-white);

}



.btn-view {

    background-color: var(--color-accent); 

    color: var(--color-text);

}





/* ========================================================================= */

/* --- ALERTAS --- */

/* ========================================================================= */

.alert {

    padding: 15px;

    margin-bottom: 20px;

    border-radius: 8px;

    font-weight: 500;

}

.alert-error {

    background-color: #f8d7da;

    color: #721c24;

    border: 1px solid #f5c6cb;

}

.alert-warning {

    background-color: #fff3cd;

    color: #856404;

    border: 1px solid #ffeeba;

}

.alert-info {

    background-color: #d1ecf1;

    color: #0c5460;

    border: 1px solid #bee5eb;

}





/* ========================================================================= */

/* --- LANDING PAGE STYLES --- */

/* ========================================================================= */



.hero-container {

    background: var(--gradient-main);

    color: var(--color-white);

    padding: 0 5%;

    min-height: 85vh; 

    display: flex;

    flex-direction: column;

}



/* Header */

.main-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 0;

    z-index: 10;

}



.main-header h1 {

    font-size: 1.8em;

    font-weight: 700;

    color: var(--color-white);

}



.btn-login-open {

    background-color: var(--color-white);

    color: var(--color-primary); 

    padding: 10px 20px;

    border: none;

    border-radius: 50px;

    cursor: pointer;

    font-size: 1em;

    font-weight: 600;

    transition: all 0.3s ease;

    display: flex;

    align-items: center;

    gap: 8px;

}

.btn-login-open:hover {

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    transform: translateY(-2px);

}



/* Hero Section */

.hero-section {

    flex-grow: 1;

    display: flex;

    align-items: center;

    justify-content: flex-start;

}



.hero-content {

    max-width: 600px;

    padding: 40px 0;

}



.hero-content h2 {

    font-size: 3em;

    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 20px;

    color: var(--color-white);

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);

}



.hero-content p {

    font-size: 1.2em;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.9);

}



.btn-discover {

    background: var(--color-accent);

    color: var(--color-text);

    padding: 12px 30px;

    border: none;

    border-radius: 50px;

    text-decoration: none;

    font-size: 1.1em;

    font-weight: 700;

    transition: background-color 0.3s, transform 0.3s;

    display: inline-flex;

    align-items: center;

    gap: 8px;

}

.btn-discover:hover {

    background-color: var(--color-primary-light);

    color: var(--color-white);

    transform: scale(1.05);

}



/* Features Section */

.features-section {

    padding: 60px 5%;

    text-align: center;

    background-color: var(--color-secondary);

}



.features-section h3 {

    font-size: 2em;

    margin-bottom: 40px;

    color: var(--color-primary-light);

}



.feature-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;

}



.feature-card {

    background-color: var(--color-bg);

    padding: 30px;

    border-radius: 12px;

    box-shadow: var(--color-shadow);

    transition: transform 0.3s, box-shadow 0.3s;

}

.feature-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

}

.feature-card i {

    font-size: 3em;

    color: var(--color-accent);

    margin-bottom: 15px;

}

.feature-card h4 {

    font-size: 1.4em;

    color: var(--color-text);

    margin-bottom: 10px;

}

.feature-card p {

    color: #666;

}



/* Footer */

.main-footer {

    text-align: center;

    padding: 20px;

    background-color: var(--color-primary);

    color: var(--color-white);

    font-size: 0.9em;

}





/* ========================================================================= */

/* --- MODAL LOGIN STYLES (POP-UP EFFECT) --- */

/* ========================================================================= */



.modal-backdrop-login {

    display: none; 

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.7);

    justify-content: center;

    align-items: center;

    z-index: 1000;

    opacity: 0;

    transition: opacity 0.3s ease-in-out;

}



.modal-backdrop-login.show {

    opacity: 1;

}



.login-form-flotante {

    background-color: var(--color-white);

    padding: 40px;

    border-radius: 15px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    width: 90%;

    max-width: 400px;

    position: relative;

    transform: scale(0.8);

    opacity: 0;

    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;

}



.modal-backdrop-login.show .login-form-flotante {

    transform: scale(1);

    opacity: 1;

}



.login-form-flotante h2 {

    text-align: center;

    margin-bottom: 25px;

    color: var(--color-primary-light);

    font-size: 1.6em;

}



.input-group {

    margin-bottom: 20px;

}



.input-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: var(--color-text);

}



.input-group input[type="text"], 

.input-group input[type="password"] {

    width: 100%;

    padding: 12px 15px;

    border: 1px solid #ddd;

    border-radius: 8px;

    font-size: 1em;

    transition: border-color 0.3s, box-shadow 0.3s;

}



.input-group input:focus {

    border-color: var(--color-accent);

    box-shadow: 0 0 0 3px rgba(11, 209, 103, 0.2);

    outline: none;

}



.btn-login-submit {

    width: 100%;

    background: var(--gradient-main);

    color: var(--color-white);

    padding: 12px 20px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-size: 1.1em;

    font-weight: 700;

    margin-top: 10px;

    transition: opacity 0.3s, transform 0.3s;

}

.btn-login-submit:hover {

    opacity: 0.9;

    transform: translateY(-2px);

}



.btn-close-modal {

    background: none;

    border: none;

    font-size: 2em;

    color: #aaa;

    position: absolute;

    top: 15px;

    right: 15px;

    cursor: pointer;

    transition: color 0.2s;

}

.btn-close-modal:hover {

    color: var(--color-text);

}





/* ========================================================================= */

/* --- RESPONSIVIDAD ADICIONAL --- */

/* ========================================================================= */

@media (max-width: 900px) {

    .chart-grid {

        grid-template-columns: 1fr; 

    }

    .chart-container {

        margin-bottom: 20px;

    }

}





/* --- Ajustes en Hero Section y Contenido --- */



.hero-section {

    flex-grow: 1;

    display: flex;

    align-items: center;

    /* Centrado Horizontal para el efecto de la imagen: */

    justify-content: center; 

}



.hero-content {

    max-width: 600px;

    padding: 40px 0;

    /* Alineación de texto central para el efecto visual */

    text-align: center; 

}



.hero-content h2 {

    /* Asegúrate de que el texto del título se vea muy blanco */

    color: var(--color-white);

    /* (Mantener el resto de los estilos) */

    font-size: 3em;

    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 20px;

    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);

}



/* --- LANDING PAGE STYLES - HERO CONTAINER MODIFICADO --- */



.hero-container {

    /* 1. Imagen de Fondo: Usamos la URL que nos indicaste */

    background-image: url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&q=80');

    background-position: center;

    background-size: cover;

    background-repeat: no-repeat;

    

    /* 2. Overlay de Color Semitransparente: */

    /* Apilamos el color PRIMARIO con opacidad (0.75) SOBRE la imagen */

    background-color: var(--color-primary-rgba);

    background-blend-mode: multiply; /* Esto fusiona bien el color y la imagen */

    

    color: var(--color-white);

    padding: 0 5%;

    min-height: 100vh; /* Se recomienda 100vh para ocupar la pantalla completa */

    display: flex;

    flex-direction: column;

    position: relative; /* Asegura que el contenido esté alineado correctamente */

}



/* ========================================================================= */

/* --- PALETA DE COLORES GLOBAL Y VARIABLES BASE --- */

/* ========================================================================= */

:root {

    /* ... Tus otras variables de color ... */

    --color-primary: #03342e; /* Verde Oscuro Principal */

    

    /* ¡NUEVA VARIABLE PARA TRANSPARENCIA! */

    --color-primary-rgba: rgba(3, 52, 46, 0.75); /* #03342e con 75% de opacidad */



    /* ... Tus otras variables de estilo ... */

}