/* ===========================
   ESTILO 2: CORPORATIVO/PROFESIONAL - PALETA DE COLORES
   =========================== */

/* 
   GUÍA DE COLORES CORPORATIVOS:
   - AZUL OSCURO: #1e3c72 (Color principal profesional)
   - AZUL MEDIO: #2a5298 (Color secundario)
   - AZUL CLARO: #3498db (Acentos)
   - GRIS OSCURO: #2c3e50 (Textos)
   - GRIS MEDIO: #7f8c8d (Secundarios)
   - GRIS CLARO: #ecf0f1 (Fondos)
   
   Para cambiar el color principal del estilo, modifica las variables CSS:
   --color-primary, --color-secondary, --color-accent
*/

:root {
    /* Colores principales del tema corporativo */
    --corp-primary: #1e3c72;          /* Azul oscuro profesional */
    --corp-secondary: #2a5298;        /* Azul medio */
    --corp-accent: #3498db;           /* Azul claro */
    --corp-success: #27ae60;          /* Verde éxito */
    --corp-warning: #f39c12;          /* Naranja advertencia */
    --corp-danger: #e74c3c;           /* Rojo peligro */
    
    /* Colores de texto corporativos */
    --corp-text-primary: #2c3e50;
    --corp-text-secondary: #7f8c8d;
    --corp-text-light: #95a5a6;
    
    /* Colores de fondo corporativos */
    --corp-bg-primary: #ffffff;
    --corp-bg-secondary: #ecf0f1;
    --corp-bg-tertiary: #f8f9fa;
    --corp-bg-hover: #e8eef2;
    
    /* Sombras profesionales */
    --corp-shadow-sm: 0 1px 3px rgba(30, 60, 114, 0.08);
    --corp-shadow-md: 0 2px 8px rgba(30, 60, 114, 0.12);
    --corp-shadow-lg: 0 4px 16px rgba(30, 60, 114, 0.15);
    
    /* Bordes */
    --corp-border-radius: 4px;
    --corp-border-radius-lg: 8px;
    --corp-border-color: #d0d7de;
    
    /* Tipografía */
    --corp-font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ===========================
   RESET Y BASE
   =========================== */
.estilo2-container {
    font-family: var(--corp-font-family);
    color: var(--corp-text-primary);
    background-color: var(--corp-bg-tertiary);
    min-height: 100vh;
}

/* ===========================
   LAYOUT - NAVEGACIÓN CORPORATIVA
   =========================== */
.estilo2-navbar {
    background: linear-gradient(180deg, var(--corp-primary) 0%, var(--corp-secondary) 100%);
    box-shadow: var(--corp-shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    border-bottom: 3px solid var(--corp-accent);
}

.estilo2-navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.estilo2-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.estilo2-logo-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: var(--corp-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--corp-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.estilo2-nav-menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.estilo2-nav-item {
    position: relative;
}

.estilo2-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: var(--corp-border-radius);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.estilo2-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.estilo2-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: inset 0 -2px 0 var(--corp-accent);
}

.estilo2-badge {
    background: var(--corp-accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menú móvil */
.estilo2-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================
   MAIN CONTENT
   =========================== */
.estilo2-main {
    margin-top: 60px;
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

.estilo2-container-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================
   CARDS Y WIDGETS CORPORATIVOS
   =========================== */
.estilo2-card {
    background: var(--corp-bg-primary);
    border-radius: var(--corp-border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--corp-shadow-sm);
    border: 1px solid var(--corp-border-color);
    transition: all 0.2s ease;
}

.estilo2-card:hover {
    box-shadow: var(--corp-shadow-md);
}

.estilo2-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--corp-bg-secondary);
}

.estilo2-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--corp-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estilo2-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--corp-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ===========================
   BOTONES CORPORATIVOS
   =========================== */
.estilo2-btn {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: var(--corp-border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--corp-font-family);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.estilo2-btn-primary {
    background: var(--corp-primary);
    color: white;
    box-shadow: var(--corp-shadow-sm);
}

.estilo2-btn-primary:hover {
    background: var(--corp-secondary);
    box-shadow: var(--corp-shadow-md);
}

.estilo2-btn-accent {
    background: var(--corp-accent);
    color: white;
}

.estilo2-btn-accent:hover {
    background: #2980b9;
}

.estilo2-btn-success {
    background: var(--corp-success);
    color: white;
}

.estilo2-btn-success:hover {
    background: #229954;
}

.estilo2-btn-outline {
    background: transparent;
    border: 2px solid var(--corp-primary);
    color: var(--corp-primary);
}

.estilo2-btn-outline:hover {
    background: var(--corp-primary);
    color: white;
}

/* ===========================
   FORMULARIOS CORPORATIVOS
   =========================== */
.estilo2-form-group {
    margin-bottom: 1.25rem;
}

.estilo2-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--corp-text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.estilo2-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--corp-border-color);
    border-radius: var(--corp-border-radius);
    font-size: 0.95rem;
    font-family: var(--corp-font-family);
    transition: all 0.2s ease;
    background: var(--corp-bg-primary);
}

.estilo2-input:focus {
    outline: none;
    border-color: var(--corp-accent);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.estilo2-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--corp-border-color);
    border-radius: var(--corp-border-radius);
    font-size: 0.95rem;
    font-family: var(--corp-font-family);
    background: var(--corp-bg-primary);
    cursor: pointer;
}

/* ===========================
   TABLAS CORPORATIVAS
   =========================== */
.estilo2-table {
    width: 100%;
    background: var(--corp-bg-primary);
    border-radius: var(--corp-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--corp-shadow-sm);
    border: 1px solid var(--corp-border-color);
}

.estilo2-table table {
    width: 100%;
    border-collapse: collapse;
}

.estilo2-table th {
    background: var(--corp-primary);
    color: white;
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.estilo2-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--corp-bg-secondary);
    font-size: 0.9rem;
}

.estilo2-table tr:hover {
    background: var(--corp-bg-hover);
}

.estilo2-table tr:last-child td {
    border-bottom: none;
}

/* Botones de acción en tabla */
.estilo2-action-btn {
    padding: 0.4rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--corp-border-radius);
    transition: all 0.2s ease;
}

.estilo2-action-btn:hover {
    background: var(--corp-bg-secondary);
}

.estilo2-action-edit {
    color: var(--corp-accent);
}

.estilo2-action-delete {
    color: var(--corp-danger);
}

/* ===========================
   MODAL CORPORATIVO
   =========================== */
.estilo2-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.estilo2-modal {
    background: var(--corp-bg-primary);
    border-radius: var(--corp-border-radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--corp-shadow-lg);
    border: 1px solid var(--corp-border-color);
}

.estilo2-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--corp-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--corp-bg-tertiary);
}

.estilo2-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--corp-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estilo2-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--corp-text-secondary);
    line-height: 1;
}

.estilo2-modal-body {
    padding: 1.5rem;
}

.estilo2-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 2px solid var(--corp-bg-secondary);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: var(--corp-bg-tertiary);
}

/* ===========================
   GRID RESPONSIVE
   =========================== */
.estilo2-grid {
    display: grid;
    gap: 1.5rem;
}

.estilo2-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.estilo2-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.estilo2-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .estilo2-navbar-content {
        padding: 0 1rem;
    }
    
    .estilo2-nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--corp-primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        display: none;
        box-shadow: var(--corp-shadow-lg);
    }
    
    .estilo2-nav-menu.active {
        display: flex;
    }
    
    .estilo2-mobile-toggle {
        display: block;
    }
    
    .estilo2-main {
        padding: 1rem;
    }
    
    .estilo2-grid-2,
    .estilo2-grid-3,
    .estilo2-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   UTILIDADES
   =========================== */
.estilo2-text-center {
    text-align: center;
}

.estilo2-mb-1 { margin-bottom: 0.5rem; }
.estilo2-mb-2 { margin-bottom: 1rem; }
.estilo2-mb-3 { margin-bottom: 1.5rem; }
.estilo2-mb-4 { margin-bottom: 2rem; }

.estilo2-mt-1 { margin-top: 0.5rem; }
.estilo2-mt-2 { margin-top: 1rem; }
.estilo2-mt-3 { margin-top: 1.5rem; }
.estilo2-mt-4 { margin-top: 2rem; }
