/* --- SINAPRE GOV THEME --- */

:root {
    --bg-dark: #0b1120; /* Fondo Principal (Match con tu sistema) */
    --bg-darker: #050911; /* Fondo Secundario */
    --color-primary: #3b82f6; /* Azul brillante moderno */
    --color-accent: #f59e0b; /* Amarillo/Naranja preventivo */
    --color-pixan: #EF7D30;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: #e2e8f0;
    overflow-x: hidden;
}

h1, h2, h3, h4, .fw-extra-bold { font-family: 'Montserrat', sans-serif; }
.fw-extra-bold { font-weight: 800; }
.text-accent { color: var(--color-accent) !important; }
.bg-darker { background-color: var(--bg-darker); }

/* Gradientes de Texto */
.text-gradient-blue {
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism (Efecto Cristal) */
.bg-dark-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.border-glass { border: 1px solid var(--glass-border) !important; }

/* Botones Personalizados */
.btn-accent {
    background-color: var(--color-accent);
    color: #000;
    border: none;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}
.btn-primary {
    background-color: var(--color-primary);
    border: none;
}
.shadow-glow { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }

/* Navbar */
.navbar {
    background-color: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg-overlay {
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(11,17,32,0) 60%);
    z-index: 0;
}
.glow-effect {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: var(--color-primary);
    filter: blur(120px);
    opacity: 0.3;
    z-index: 0;
}

/* Animación Flotante del Dashboard */
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Ticket Real */
.ticket-wrapper {
    perspective: 1000px;
    display: inline-block;
}
.ticket-rotate {
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.4s ease;
    border-radius: 5px;
}
.ticket-rotate:hover {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Iconos de Proceso */
.icon-box {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.bg-blue-alpha { background: rgba(59, 130, 246, 0.2); }
.bg-accent-alpha { background: rgba(245, 158, 11, 0.2); }
.bg-green-alpha { background: rgba(16, 185, 129, 0.2); }

/* Formulario */
.form-control:focus {
    background-color: #000;
    border-color: var(--color-accent);
    color: white;
    box-shadow: none;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #000 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Utilidades */
.border-white-10 { border-color: rgba(255,255,255,0.1) !important; }
.hover-accent:hover { color: var(--color-accent) !important; }
.object-fit-cover { object-fit: cover; }

/* Responsive */
@media (max-width: 991px) {
    .hero-section { text-align: center; padding-top: 100px; }
    .display-3 { font-size: 2.5rem; }
	

}

/* --- ESTILOS ACTUALIZADOS V2.0 --- */

/* Hero Carousel - Full Screen */
#inicio, .carousel-inner, .carousel-item {
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    min-height: 600px; /* Evita que se aplaste en pantallas muy horizontales */
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente oscuro para que el texto resalte sobre cualquier foto */
    background: linear-gradient(to right, rgba(5,9,17, 0.9) 0%, rgba(5,9,17, 0.4) 100%);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 0; top: 0; /* Centrado vertical */
}

/* Animaciones del Slider */
.animate-up { animation: fadeInUp 1s ease-out forwards; opacity: 0; transform: translateY(30px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Estilo del Mapa (Filtro Oscuro) */
.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(90%); /* Invierte colores para hacerlo "Dark Map" */
    transition: filter 0.3s;
}
.map-container:hover iframe {
    filter: invert(0%); /* Al pasar el mouse se ve a color normal */
}

/* Footer Detallado */
.text-gray-500 { color: #8899a6 !important; }
.hover-white:hover { color: #fff !important; }
.hover-opacity-100:hover { opacity: 1 !important; }
.x-small { font-size: 0.8rem; }
.grayscale-img { filter: grayscale(100%); transition: all 0.3s; }
.grayscale-img:hover { filter: grayscale(0%); }

/* Utilidades Extra */
.object-fit-cover { object-fit: cover; }
.tracking-wide { letter-spacing: 1px; }
.transition-300 { transition: all 0.3s ease; }
.hover-glass:hover { background: rgba(255,255,255,0.08); transform: translateX(5px); }

/* Ajuste Móvil */
@media (max-width: 768px) {
    .display-3 { font-size: 2.2rem; }
    .carousel-item img {
        position: absolute;
        height: 100%; width: 100%;
        object-fit: cover;
    }
}

/* --- FIX BOTÓN WHATSAPP --- */
.whatsapp-float {
    position: fixed !important;
    width: 60px !important;
    height: 60px !important;
    bottom: 30px !important;
    right: 30px !important;
    background-color: #25d366 !important;
    color: #FFF !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 30px !important;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important; /* El valor más alto para que no lo tape nada */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important; /* Quita el subrayado azul */
}

.whatsapp-float:hover {
    background-color: #128c7e !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Tooltip oculto por defecto */
.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}