/* Sibo Avance Design System 3.0 - "Asombroso" Edition */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Roboto:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

@font-face {
    font-family: 'Geomanist';
    src: local('Geomanist'), local('Open Sans');
    /* Fallback a Open Sans si no está instalada localmente */
}
:root {
    /* Rich Palette - Estandarizado Sibo (Manual Vectorial) */
    --c-bg-main: #231F20;      /* Sibo Dark Black / Charcoal */
    --c-bg-sec: #104D96;       /* Sibo Corporate Blue */
    --c-accent: #0062AF;       /* Sibo Accent Blue */
    --c-accent-glow: #6885BC;  /* Sibo Soft Blue Glow */
    --c-text-w: #f8fafc;       /* Pure White soft */
    --c-text-g: #D0D2D3;       /* Sibo Tech Grey */

    /* Product Identities (Updated for Brand Accuracy) */
    --p-gymsoft: #00AEEF;
    /* Sibo Original Cyan "Gymsoft" */
    --p-sisca: #ed3030;
    /* Sisca Red (Corrected from Logo) */
    --p-timesoft: #00A651;
    /* Sibo Green "Timesoft" */
    --p-casinos: #F58220;
    /* Sibo Orange "Casinos" */
    --p-xpacios: #FFC20E;
    /* Sibo Yellow "Xpacios" */
    --p-tagendo: #D1AB5A;
    /* Tagendo Gold (User Specified) */

    --p-sibo: #104D96;
    --p-sibo-dark: #231F20;

    /* Typography - Manual de Marca Sibo */
    --font-heading: 'Geomanist', 'Open Sans', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Responsive Type Scale */
    --text-display: clamp(3rem, 5vw, 6rem);
    --text-h1: clamp(2.5rem, 4vw, 4.5rem);
    --text-h2: clamp(2rem, 3vw, 3.5rem);
    --text-h3: clamp(1.5rem, 2vw, 2.5rem);
    --text-body: clamp(1rem, 1.1vw, 1.25rem);

    /* Glassmorphism 2.0 */
    --glass-heavy: rgba(15, 23, 42, 0.7);
    --glass-light: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --blur-val: 16px;

    /* Layout */
    --container: 1400px;
    --section-pad: 140px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-bg-main);
    color: var(--c-text-w);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* Base Utility Classes */
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }
.hero-sub { margin-bottom: 30px; }
.btn-group, .hero-btns { gap: 15px; display: flex; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.text-center { text-align: center !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--c-accent);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--c-accent-glow);
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--c-text-w);
}

.btn-outline:hover {
    background: white;
    color: black;
    border-color: white;
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 40px 0;
    background: var(--c-bg-sec);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    margin: 0 40px;
    opacity: 0.5;
    transition: 0.3s;
    filter: grayscale(100%);
}

.marquee-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.marquee-item img {
    height: 40px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pinning Section (Nfinite Style) */
.pin-section {
    display: flex;
    justify-content: space-between;
    height: 100vh;
    /* Will be pinned */
    width: 100%;
}

.pin-visual {
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, var(--c-bg-sec) 0%, var(--c-bg-main) 70%);
}

.pin-content {
    width: 50%;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Glass Header Override */
.header {
    background: rgba(35, 31, 32, 0.7) !important; /* #231F20 at 70% */
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dropdown-menu {
    background: rgba(35, 31, 32, 0.95) !important;
    border: 1px solid var(--border-glass) !important;
}

.nav-link {
    color: white !important;
}

.dropdown-item {
    color: #cbd5e1 !important;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(to right, #00AEEF, #0062AF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- PREMIUM UI EXTRAS --- */

/* 1. Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-accent);
}

/* 2. Text Selection */
::selection {
    background: var(--c-accent);
    color: white;
}

/* 3. Preloader Overlay */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--c-bg-main);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--c-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 4. Noise Texture (The "Film Grain" look) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
}

/* --- V4 NEW MODULES --- */

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.bento-card {
    background: var(--glass-heavy);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 50px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: var(--c-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: 0.4s;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.bento-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.bento-desc {
    color: var(--c-text-g);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--c-text-w);
    line-height: 1;
}

.stat-label {
    color: var(--c-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* Testimonials & Blog Cards */
.card-glass-light {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
}

/* --- GLOBAL HEADER (MOVED FROM COMPONENT) --- */
:root {
    --header-h: 90px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: var(--header-h);
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: #cbd5e1;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.has-dropdown {
    position: relative;
    height: var(--header-h);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 260px;
    padding: 12px;
    background: rgba(35, 31, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: #cbd5e1;
    font-weight: 500;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 16px;
}

.dropdown-item[style^="--hover-c"]:hover {
    color: var(--hover-c);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.flag {
    font-size: 1.1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media(max-width: 1024px) {
    .nav-menu { display: none; }
    .header-actions { display: none !important; }
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
    }
}

@media(min-width: 1025px) {
    .mobile-toggle { display: none; }
}

/* HERO SPLIT GLOBAL FIX */
.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}
@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
}