/* ==========================================================================
   VARIABLES CORPORATIVAS - SANTA FE ENERGY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700;900&display=swap');

:root {
    /* Paleta Principal */
    --color-primary: #00443F;      /* Verde Oscuro - Estabilidad */
    --color-secondary: #333333;    /* Gris Oscuro - Confianza */
    --color-light: #F4F4F4;        /* Gris Claro / Fondo */
    --color-energy: #FF6700;       /* Naranja - Energía */
    --color-evolution: #DAFF03;    /* Verde Neón - Evolución */
    
    /* Tipografía Oficial */
    --font-main: 'Raleway', sans-serif;
}

/* ==========================================================================
   RESET Y BASE ESTILOS GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-primary);
    color: var(--color-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ==========================================================================
   ANIMACIÓN DE FONDO TIPO AURORA
   ========================================================================== */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--color-primary);
}

.aurora-container::before,
.aurora-container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: auroraFloat 5s infinite alternate ease-in-out;
}

.aurora-container::before {
    width: 60vw;
    height: 60vw;
    background: var(--color-evolution);
    top: -20%;
    left: -15%;
}

.aurora-container::after {
    width: 50vw;
    height: 50vw;
    background: var(--color-energy);
    bottom: -20%;
    right: -10%;
    animation-duration: 25s;
}

@keyframes auroraFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vw, 12vh) scale(1.15); }
    100% { transform: translate(-5vw, 8vh) scale(0.9); }
}

/* ==========================================================================
   LAYOUT PRINCIPAL (SIDEBAR + MAIN)
   ========================================================================== */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 250px;
    background-color: rgba(20, 20, 20, 0.7); 
    backdrop-filter: blur(15px); 
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-right 0.4s;
    box-shadow: 5px 0 25px rgba(0,0,0,0.2);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 3rem;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo h2 {
    color: var(--color-evolution);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: #ccc;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-evolution);
    transform: translateX(5px);
}

.btn-login {
    background-color: var(--color-energy);
    color: white;
    text-align: center;
    display: block;
}

.btn-login:hover {
    background-color: #e65c00;
    color: white;
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.4);
}

/* ==========================================================================
   TARJETAS DE INICIO (HOME GRID) - GLASSMORPHISM
   ========================================================================== */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Cristal Esmerilado para Home */
.feature-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    
    background: rgba(255, 255, 255, 0.75); /* Alfa al 75% */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 6px solid transparent; /* Previene salto visual */
    border-radius: 16px; 
    height: 280px;
    padding: 2.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: flex-end;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Efecto Luz Neón */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y), 
        rgba(218, 255, 3, 0.35), /* Verde Neón Institucional */
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none; 
    z-index: -1; 
}

/* Hover de Alto Impacto */
.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.85); /* Se solidifica sutilmente */
    border-bottom: 6px solid var(--color-energy); /* Naranja en la base */
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    z-index: 2;
    position: relative;
    transition: transform 0.4s ease, color 0.4s ease;
    color: var(--color-primary); 
}

.feature-card:hover h3 {
    transform: translateY(-150px);
    color: var(--color-energy);
}

/* Panel de Información Oculto */
.card-hover-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    /* Degradado translúcido para mantener la ilusión de cristal */
    background: linear-gradient(to top, rgba(255,255,255,0.9) 60%, rgba(255,255,255,0));
    transition: bottom 0.4s ease;
    z-index: 1;
}

.feature-card:hover .card-hover-info {
    bottom: 0;
}

.card-hover-info p {
    font-size: 1rem;
    color: #333333; /* Gris Oscuro */
    font-weight: 600;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover .card-hover-info p {
    opacity: 1;
}
/* ==========================================================================
   COMPORTAMIENTO DINÁMICO DEL SIDEBAR (MODO APP)
   ========================================================================== */
body.is-app .sidebar {
    transform: translateX(-235px);
    border-right: 3px solid var(--color-evolution);
}

body.is-app .main-content {
    margin-left: 15px;
}

body.is-app .sidebar:hover {
    transform: translateX(0);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   BOTÓN GLOBAL DE INICIO (TOP RIGHT)
   ========================================================================== */
.global-home-btn {
    position: fixed;
    top: 2rem;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: white;
    z-index: 1100;
    transition: all 0.3s ease;
}

.global-home-btn:hover {
    background: var(--color-evolution);
    border-color: var(--color-evolution);
    transform: translateY(-3px);
    color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.home-favicon { width: 24px; height: 24px; object-fit: contain; }
.home-svg-icon { width: 20px; height: 20px; }