/* AUTO-GENERATED GLOBALS FOR VYE SGE */
/* ── CUSTOM PROPERTIES ── */
:root {
    /* Colors */
    --black: #000000;
    --black-soft: #0A0A0A;
    --black-card: #0D0D0D;
    --gray-950: #111111;
    --gray-900: #1A1A1A;
    --gray-800: #2A2A2A;
    --gray-700: #3A3A3A;
    --gray-600: #555555;
    --gray-500: #777777;
    --gray-400: #999999;
    --gray-300: #BBBBBB;
    --gray-200: #DDDDDD;
    --white: #FFFFFF;
    --white-soft: #F5F5F5;

    /* Gold palette */
    --gold: #D4A843;
    --gold-light: #F0D060;
    --gold-dark: #B8922E;
    --gold-dim: rgba(212, 168, 67, 0.15);
    --gold-glow: rgba(212, 168, 67, 0.3);

    /* Accent */
    --green: #2ECC71;
    --red-dim: rgba(231, 76, 60, 0.15);
    --red: #E74C3C;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px);
    --container-max: 1200px;
    --container-pad: clamp(20px, 4vw, 40px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Borders */
    --border: 1px solid rgba(212, 168, 67, 0.1);
    --border-hover: 1px solid rgba(212, 168, 67, 0.3);
}

/* ── PRELOADER ── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.preloader__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: preloaderSpin 1.8s var(--ease-out) forwards;
}

@keyframes preloaderSpin {
    0% {
        transform: rotate(0deg) scale(0.5);
        opacity: 0;
    }
    60% {
        transform: rotate(360deg) scale(1.15);
        opacity: 1;
    }
    75% {
        transform: rotate(360deg) scale(0.95);
    }
    85% {
        transform: rotate(360deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

.hex-draw {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawHex 2s var(--ease-out) forwards;
}

.hex-draw-inner {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawHex 2s var(--ease-out) 0.3s forwards;
}

@keyframes drawHex {
    to { stroke-dashoffset: 0; }
}

.preloader__bar {
    width: 200px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 2px;
    overflow: hidden;
}

.preloader__progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    width: 0%;
    animation: preloaderBar 1.5s var(--ease-out) forwards;
}

@keyframes preloaderBar {
    to { width: 100%; }
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: var(--border);
}

.navbar__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s var(--ease-out);
}

.navbar__logo:hover {
    transform: scale(1.02);
}

.navbar__logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.navbar__logo-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.navbar__logotipo {
    height: 18px;
    object-fit: contain;
}

.navbar__sub {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    line-height: 1;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar__link {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.navbar__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s var(--ease-out);
    transform: translateX(-50%);
}

.navbar__link:hover::after {
    width: 60%;
}

.navbar__cta-btn {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.3px;
}

.navbar__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}

/* Hamburger */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── FOOTER ── */
.footer {
    background: var(--gray-950);
    border-top: var(--border);
    padding: 60px 0 30px;
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: var(--border);
    margin-bottom: 30px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer__brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.footer__brand-tagline {
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.footer__desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.footer__contact h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--gray-400);
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer__contact-item:hover {
    color: var(--gold);
}

.footer__contact-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__bottom p {
    font-size: 0.78rem;
    color: var(--gray-600);
}

.footer__phrases {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--gray-600);
    letter-spacing: 1px;
    text-transform: uppercase;
}


@media (max-width: 992px) {
    .navbar__menu { display: none !important; }
    .navbar__toggle { display: flex !important; }
    .navbar__cta-btn { display: none !important; }
}
@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr; gap: 40px; }
    .footer__brand { text-align: center; }
    .footer__bottom { flex-direction: column; text-align: center; gap: 20px; }
}


/* REGLA ABSOLUTA DE MARGENES LATERALES PARA PAGINAS SECUNDARIAS */
.hero, .modules, .ai-section, .why-section, .savings-section, .plans-section, .trust-section, .testimonials-section, .faq-section, .about-section, .banner, .section-global-margins {
    padding-left: max(clamp(20px, 4vw, 40px), calc(((100vw - 1200px) / 2) + clamp(20px, 4vw, 40px)));
    padding-right: max(clamp(20px, 4vw, 40px), calc(((100vw - 1200px) / 2) + clamp(20px, 4vw, 40px)));
}
@media(max-width:768px) {
    .hero, .modules, .ai-section, .why-section, .savings-section, .plans-section, .trust-section, .testimonials-section, .faq-section, .about-section, .banner, .section-global-margins {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }
}

/* ── MISSING BASE RULES (Cursors & Containers) ── */
html, body {
    cursor: url('assets/abeja_cursor.png') 0 31, auto;
}

a, button, .btn, .navbar__toggle, [role="button"], input[type="submit"], input[type="button"], label, select, .clickable {
    cursor: url('assets/abeja_pointer.png') 0 0, pointer !important;
}

.section__container {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}
