/* ==========================================================================
   ESTILOS DE DISEÑO PREMIUM (APPLE / NOTHING STYLE)
   ========================================================================== */

/* Configuración General y Scroll smooth */
html, body {
    background-color: #f4f9fd;
    color: #0f172a;
    overflow-x: hidden;
    font-feature-settings: "ss01" on, "ss02" on, "cv01" on;
    -webkit-font-smoothing: antialiased;
}

/* --- ANIMACIONES --- */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 20s linear infinite; 
}

.group:hover .animate-marquee {
    animation-play-state: paused;
}

@keyframes scroll-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-infinite-scroll {
    display: flex;
    width: max-content;
    animation: scroll-infinite 30s linear infinite;
}

@keyframes shimmer-vertical {
    100% {
        transform: translateY(100%);
    }
}

.group-hover\:animate-shimmer-vertical:hover {
    animation: shimmer-vertical 1.5s infinite;
}

/* --- EFECTOS DE FONDO Y CURSOR --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: 0.025;
    z-index: 9999;
    pointer-events: none;
    background: 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)'/%3E%3C/svg%3E");
}

#custom-cursor {
    width: 8px;
    height: 8px;
    background-color: #0284c7;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

#custom-cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

/* --- GLASSMORPHISM & BORDES CRISTALINOS --- */
.glassmorphism {
    background: rgba(244, 249, 253, 0.65);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(2, 132, 199, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.1);
}

/* --- BOTONES ESTILO APPLE & WHATSAPP GLASS --- */
.btn-apple-primary {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.btn-apple-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s;
}

.btn-apple-primary:hover::before {
    left: 100%;
}

.btn-apple-primary:hover {
    transform: scale(1.02);
    background: #0284c7;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4);
}

.btn-apple-secondary {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-apple-secondary:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.3);
    transform: scale(1.02);
}

.btn-whatsapp-glass {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .75rem 1.6rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #0b3d22;
    background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(37,211,102,.15));
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(37,211,102,.35);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.85), inset 0 -1px 1px rgba(37,211,102,.18), 0 12px 30px rgba(37,211,102,.18), 0 0 18px rgba(37,211,102,.15);
    transition: .35s cubic-bezier(.4,0,.2,1);
}

.btn-whatsapp-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
    transform: skewX(-25deg);
    transition: .8s;
}

.btn-whatsapp-glass:hover::before {
    left: 140%;
}

.btn-whatsapp-glass:hover {
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(37,211,102,.28));
    border-color: #25D366;
    box-shadow: inset 0 1px 2px rgba(255,255,255,.95), 0 18px 45px rgba(37,211,102,.35), 0 0 30px rgba(37,211,102,.45);
}

.btn-whatsapp-glass i {
    color: #25D366;
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(37,211,102,.55));
}

.btn-whatsapp-glass span {
    color: #075E54;
}

/* --- BOTÓN FLOTANTE POWER MEX --- */
.btn-flotante-powermex {
    position: absolute;
    top: 110px;
    left: 40px;
    display: flex;
    align-items: center;
    padding: 15px 60px 15px 25px; 
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 40;
}

.btn-powermex-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 15px;
}

.btn-powermex-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.btn-inner-action {
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-powermex-img-right {
    position: absolute;
    right: -95px;
    height: 85px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-flotante-powermex:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.3);
}

.btn-flotante-powermex:hover .btn-inner-action {
    background: #0369a1;
}

.btn-flotante-powermex:hover .btn-powermex-img-right {
    transform: scale(1.1) rotate(4deg);
}

/* --- TIPOGRAFÍA Y GRADIENTES --- */
.mask-image-radial {
    mask-image: radial-gradient(circle, black 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #0f172a 30%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-light {
    background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- SCROLLBARS PERSONALIZADAS --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f4f9fd;
}
::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(2, 132, 199, 0.6);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.25);
}

/* --- AJUSTES RESPONSIVOS --- */
@media (max-width: 768px) {
    .btn-flotante-powermex {
        top: 90px;
        left: 20px;
        padding: 12px 45px 12px 20px;
    }
    .btn-powermex-img-right {
        height: 60px;
        right: -20px;
    }
    .btn-powermex-title {
        font-size: 16px;
    }
    .btn-inner-action {
        font-size: 9px;
        padding: 4px 10px;
    }
}
 @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
        100% { transform: translateY(0px); }
    }