/* ====================================================
   GI SIMAN - ESTILOS VISUALES "NEXT LEVEL"
   Versión 3.0 - Ultra Premium Dark Theme
   ==================================================== */

/* --- 1. CORE & VARIABLES --- */
:root {
    --color-wine: #722f37;
    --color-wine-light: #9e414c;
    --color-wine-glow: rgba(114, 47, 55, 0.5);
    --color-dark: #0f0f0f;
    --color-dark-surface: #1a1a1a;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark);
    color: #e5e5e5;
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Scrollbar Personalizado (Dark & Wine) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(to bottom, #4a1a20, #722f37); 
    border-radius: 4px; 
    border: 1px solid rgba(255,255,255,0.05);
}
::-webkit-scrollbar-thumb:hover { background: #8d3a44; }

/* --- 2. COMPONENTES VISUALES AVANZADOS --- */

/* Navegación Glassmorphism */
.glass-nav { 
    background: rgba(15, 15, 15, 0.85); 
    backdrop-filter: blur(16px) saturate(180%); 
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8); 
}

/* Paneles de Vidrio (Sustituye estilos inline) */
.glass-panel {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.glass-panel:hover {
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(114, 47, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(114, 47, 55, 0.15);
}

/* Efectos de Resplandor */
.shadow-glow {
    box-shadow: 0 0 25px var(--color-wine-glow);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 3. ELEMENTOS DE HERO --- */
.hero-overlay {
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(15,15,15,0.95) 90%);
}

.hero-content-parallax { 
    position: relative; 
    z-index: 10; 
    width: 100%; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    min-height: 60vh; 
}

.hero-iframe { 
    width: 100%; 
    max-width: 900px; 
    height: 400px; 
    border: none; 
    background: transparent; 
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* --- 4. TABS & INTERACTIVIDAD --- */
.tab-button {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.05);
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color-wine);
    z-index: -1;
    transition: width 0.4s ease;
}

.tab-button:hover::after, .tab-button.active::after {
    width: 100%;
}

.tab-button.active {
    color: white !important;
    border-color: var(--color-wine);
    box-shadow: 0 0 20px rgba(114, 47, 55, 0.3);
}

.tab-content { 
    display: none; 
    opacity: 0; 
    transform: translateY(10px); 
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.tab-content.active { 
    display: block; 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- 5. CAROUSEL 3D MEJORADO --- */
.carousel-3d-container { 
    margin: 2rem auto; 
    width: 100%; 
    height: 350px; 
    position: relative; 
    perspective: 1200px; 
    overflow: hidden; /* Evita scroll horizontal en móviles */
}

.carousel-3d-track { 
    display: flex; 
    width: 100%; 
    height: 100%; 
    position: absolute; 
    left: 0; 
    top: 0; 
    transform-style: preserve-3d; 
}

.carousel-3d-item { 
    width: 280px; 
    height: 200px; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    border-radius: 16px; 
    background-size: cover; 
    background-position: center; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.1); 
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    background-color: #2a2a2a;
}

.carousel-3d-item:hover {
    border-color: var(--color-wine);
    box-shadow: 0 0 30px rgba(114, 47, 55, 0.3);
}

.carousel-control { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.5); 
    backdrop-filter: blur(4px); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.2); 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 100; 
    transition: all 0.3s ease; 
}
.carousel-control:hover { 
    background: var(--color-wine); 
    transform: translateY(-50%) scale(1.1); 
    box-shadow: 0 0 15px rgba(114,47,55,0.5); 
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* --- 6. VALORES & CARDS --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: rgba(30, 30, 30, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.value-card:hover {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(114, 47, 55, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.value-card h4 {
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.value-card i {
    color: var(--color-wine);
    background: rgba(114, 47, 55, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.value-card:hover i {
    background: var(--color-wine);
    color: white;
    box-shadow: 0 0 15px rgba(114, 47, 55, 0.4);
}

.value-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- 7. CONTENEDORES IFRAME & VIDEO --- */
.iframe-scroll-container {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    border: 1px solid rgba(114, 47, 55, 0.3);
    background: #f5f5f5; /* Contraste para leer doc */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.iframe-scroll-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 8. MODALES & LOADER --- */
.loader-wrapper { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: var(--color-dark); 
    display: flex; justify-content: center; align-items: center; 
    z-index: 9999; 
    transition: opacity 0.6s ease-out, visibility 0.6s; 
}
.logo-anim { 
    fill: none; stroke: var(--color-wine); stroke-width: 2; 
    stroke-dasharray: 1000; stroke-dashoffset: 1000; 
    animation: dash 2.5s ease-in-out forwards; 
}
@keyframes dash { to { stroke-dashoffset: 0; fill: var(--color-wine); } }

/* Modales Base (Oscuros y Elegantes) */
.modal-glass-dark { 
    background: #141414; 
    border: 1px solid rgba(114, 47, 55, 0.2); 
    box-shadow: 0 0 50px rgba(0,0,0,0.9); 
    border-radius: 20px;
    color: white;
    position: relative;
}

/* Clases de Animación para JS */
.audit-anim-start, .search-anim-start, .mapa-anim-start, .tei-anim-start, .politicas-anim-start { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.audit-anim-active, .search-anim-active, .mapa-anim-active, .tei-anim-active, .politicas-anim-active { opacity: 1; pointer-events: auto; }

/* --- 9. UTILS & FORM --- */
.nav-link { 
    position: relative; 
}
.nav-link::after { 
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--color-wine); 
    transition: width 0.3s ease; 
}
.nav-link:hover::after { width: 80%; }

/* Form inputs focus state */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(114, 47, 55, 0.4) !important;
}

/* --- 10. PRESERVACIÓN DE ESTRUCTURA --- */
/* Estilos para elementos ocultos pero requeridos por JS (no eliminar) */
.social-menu { display: none; } 
.division-tab { display: none; }
.division-content { display: none; }