﻿:root {
    --bg0: #050b12;
    --bg1: #071018;
    --bg2: #0b1a25;
    --text: #f3f8ff;
    --muted: rgba(243,248,255,.78);
    --card: rgba(255,255,255,.06);
    --card2: rgba(255,255,255,.04);
    --border: rgba(255,255,255,.14);
    --accent: #22c1ff;
    --accent2: #1aa2ff;
    --shadow: 0 18px 45px rgba(0,0,0,.55);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--text);
    background: radial-gradient(1100px 600px at 20% 0%, rgba(34,193,255,.22), transparent 60%), radial-gradient(900px 500px at 90% 10%, rgba(26,162,255,.18), transparent 60%), linear-gradient(180deg, var(--bg0), var(--bg2));
}

/* Bootstrap helpers (para que no “mate” el tema oscuro) */
.text-muted {
    color: var(--muted) !important;
}

a {
    color: rgba(255,255,255,.90);
}

    a:hover {
        color: #fff;
    }

/* ===== NAVBAR ===== */
.nav-glass {
    background: rgba(5, 11, 18, .92);
    border-bottom: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
}

/* ===== NAV LINKS PREMIUM (idle visible) ===== */
.navbar .nav-link {
    color: rgba(255,255,255,.92) !important;
    font-weight: 700;
    padding: .6rem .85rem;
    border-radius: 12px;
    /* idle premium */
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
    transition: all .18s ease;
}

    .navbar .nav-link:hover {
        color: #fff !important;
        background: rgba(255,215,0,.10);
        border: 1px solid rgba(255,215,0,.35);
        box-shadow: 0 10px 22px rgba(255,215,0,.10);
    }

    /* opcional: activo con look gold */
    .navbar .nav-link.active,
    .navbar .nav-link[aria-current="page"] {
        background: rgba(255,215,0,.12);
        border-color: rgba(255,215,0,.45);
        box-shadow: 0 10px 25px rgba(255,215,0,.10);
    }


.navbar .navbar-toggler {
    border-color: rgba(255,255,255,.20);
}

/* Logo visible */
/* ===== LOGO PREMIUM: brillo animado ===== */
.brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
}

    /* Brillo “vivo” detrás */
    .brand-badge::before {
        content: "";
        position: absolute;
        inset: -70%;
        background: conic-gradient( from 180deg, rgba(255,215,0,0.0), rgba(255,215,0,0.35), rgba(34,193,255,0.25), rgba(255,215,0,0.0) );
        filter: blur(18px);
        opacity: .85;
        animation: brandShimmer 5.5s linear infinite;
        pointer-events: none;
    }

    /* Luz suave superior */
    .brand-badge::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
        pointer-events: none;
    }

@keyframes brandShimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Logo del navbar */
.brand-logo {
    height: 200px; /* 👈 más grande */
    width: auto;
    max-height: 64px; /* límite por seguridad */
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
}

/* En pantallas pequeñas, un toque más compacto */
@media (max-width: 991.98px) {
    .brand-logo {
        height: 46px;
    }
}


/* ===== HERO / SECCIONES ===== */
.hero {
    padding: 72px 0 56px;
}

.section {
    padding: 64px 0;
}

.section-alt {
    background: rgba(255,255,255,.03);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.section-title {
    font-weight: 900;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--muted);
    max-width: 72ch;
    margin: 0 auto;
}

/* ===== BOTONES ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
    border: 0 !important;
    font-weight: 800 !important;
}

.btn-outline-light {
    border-color: rgba(255,255,255,.42) !important;
    color: rgba(255,255,255,.95) !important;
    font-weight: 800 !important;
}

    .btn-outline-light:hover {
        background: rgba(255,255,255,.10) !important;
        color: #fff !important;
    }

/* ===== CARDS “GLASS” (ESTO ES LO QUE TE FALTÓ) ===== */
.card {
    border-radius: 18px !important;
}

.card-glass {
    border: 1px solid var(--border) !important;
    background: var(--card) !important;
    color: var(--text) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.service-card {
    border: 1px solid var(--border) !important;
    background: var(--card2) !important;
    color: var(--text) !important;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 45px rgba(0,0,0,.35);
    }

/* IMPORTANTÍSIMO: cuando hay card blanca por alguna razón, que no se “lave” el texto */
.card.bg-white, .card.bg-light {
    color: #0b1220 !important;
}

    .card.bg-white .text-muted, .card.bg-light .text-muted {
        color: rgba(11,18,32,.70) !important;
    }

/* Íconos dentro de las cards */
.icon-pill, .service-icon, .metric-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(34,193,255,.14);
    border: 1px solid rgba(34,193,255,.22);
    color: #d9f3ff;
    font-size: 22px;
}

.link-soft {
    color: #d9f3ff;
    text-decoration: none;
    font-weight: 800;
}

    .link-soft:hover {
        color: #fff;
    }

/* ===== “POR QUÉ” ===== */
.why-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    overflow: hidden;
}

.why-card-inner {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.why-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.18);
}

    .why-item i {
        font-size: 22px;
        color: var(--accent);
        margin-top: 2px;
    }

.why-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 40% 30%, rgba(34,193,255,.20), transparent 60%);
    pointer-events: none;
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .check-list li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        color: rgba(255,255,255,.92);
    }

    .check-list i {
        color: var(--accent);
        font-size: 18px;
        margin-top: 2px;
    }

/* ===== FOOTER ===== */
.footer {
    background: rgba(0,0,0,.28);
    border-top: 1px solid rgba(255,255,255,.10);
}

.footer-title {
    font-weight: 900;
    color: rgba(255,255,255,.96);
}

.footer-links, .footer-links li {
    color: rgba(255,255,255,.78);
}

    .footer-links a {
        color: rgba(255,255,255,.86);
        text-decoration: none;
    }

        .footer-links a:hover {
            color: #fff;
        }

.footer-logo {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.55));
}

.footer-hr {
    border-color: rgba(255,255,255,.14);
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
    text-decoration: none;
}

    .icon-btn:hover {
        background: rgba(34,193,255,.14);
        border-color: rgba(34,193,255,.24);
        color: #fff;
    }

/* Offset para anchors con navbar sticky */
section[id] {
    scroll-margin-top: 90px;
}

.bi {
    vertical-align: -.125em;
}

/* ===== HERO CARD 3D ===== */
.hero-card {
    position: relative;
    display: inline-block;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 22px 55px rgba(0,0,0,.55);
    transform: perspective(900px) rotateY(-6deg) rotateX(4deg);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}

    .hero-card:hover {
        transform: perspective(900px) rotateY(-2deg) rotateX(2deg) translateY(-2px);
        box-shadow: 0 28px 70px rgba(0,0,0,.65);
    }

.hero-logo {
    border-radius: 18px;
    display: block;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

/* brillo lateral */
.hero-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 30% 30%, rgba(255,215,0,.18), transparent 55%), radial-gradient(circle at 70% 60%, rgba(34,193,255,.18), transparent 55%);
    filter: blur(18px);
    pointer-events: none;
}

/* línea brillante que se mueve */
.hero-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -60%;
    width: 60%;
    height: 300%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
    transform: rotate(22deg);
    animation: heroSweep 4.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroSweep {
    0% {
        left: -80%;
        opacity: .0;
    }

    25% {
        opacity: .35;
    }

    60% {
        opacity: .20;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

/* ===== PROMO GOLD ===== */
.promo-gold {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,215,0,.28);
    background: linear-gradient(135deg, rgba(255,215,0,.10), rgba(34,193,255,.06));
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
}

    .promo-gold::before {
        content: "";
        position: absolute;
        inset: -60%;
        background: conic-gradient(from 180deg, rgba(255,215,0,0), rgba(255,215,0,.28), rgba(34,193,255,.22), rgba(255,215,0,0));
        filter: blur(18px);
        animation: promoSpin 8s linear infinite;
        opacity: .75;
        pointer-events: none;
    }

@keyframes promoSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.promo-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,215,0,.12);
    border: 1px solid rgba(255,215,0,.30);
    flex: 0 0 auto;
    font-size: 22px;
}

.promo-text {
    flex: 1 1 auto;
}

    .promo-text h5 {
        font-weight: 900;
        color: rgba(255,255,255,.96);
    }

    .promo-text p {
        color: rgba(255,255,255,.78);
        max-width: 90ch;
    }

@media (max-width: 991.98px) {
    .promo-gold {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   WhatsApp Floating Widget
   ========================= */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
}

/* Botón flotante */
.wa-btn {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #1db954; /* verde WA */
    color: #0b1a25;
    font-size: 30px;
    box-shadow: 0 14px 35px rgba(0,0,0,.55);
    position: relative;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

    /* Glow */
    .wa-btn::before {
        content: "";
        position: absolute;
        inset: -10px;
        border-radius: 24px;
        background: radial-gradient(circle, rgba(29,185,84,.45), transparent 65%);
        filter: blur(2px);
        opacity: .9;
        pointer-events: none;
    }

    .wa-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.05);
    }

/* Panel chat */
.wa-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 320px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,.88);
    border: 2px solid rgba(255,215,0,.70); /* dorado */
    box-shadow: 0 20px 70px rgba(0,0,0,.75);
    backdrop-filter: blur(12px);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: all .18s ease;
}

    /* Mostrar */
    .wa-panel.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

/* Header */
.wa-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

/* FIX: que el logo SIEMPRE se vea completo */
.wa-avatar {
    background: rgba(255,255,255,.10);
    padding: 6px; /* espacio para que respire */
}

    .wa-avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* ✅ no recorta */
        object-position: center;
        display: block;
        filter: drop-shadow(0 6px 12px rgba(0,0,0,.55));
    }


.wa-head-text {
    flex: 1;
    line-height: 1.15;
}

.wa-title {
    font-weight: 800;
    color: #fff;
}

.wa-status {
    font-weight: 700;
    font-size: 13px;
    color: rgba(255,215,0,.95);
}

.wa-close {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.85);
    font-size: 22px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
}

    .wa-close:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
    }

/* Body */
.wa-body {
    padding: 14px 14px 10px;
}

.wa-msg {
    color: rgba(255,255,255,.92);
    font-weight: 600;
}

.wa-msg-line {
    margin-bottom: 4px;
}

/* Footer */
.wa-foot {
    background: #1db954;
    padding: 10px;
}

.wa-start {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 900;
    color: #06120b;
    text-decoration: none;
    background: #1db954;
}

    .wa-start:hover {
        filter: brightness(1.03);
        color: #06120b;
    }

/* Mobile */
@media (max-width: 420px) {
    .wa-panel {
        width: 290px;
    }
}
