/* --- HT GROWTH SYSTEM: CORE STYLES v5.1 --- */

/* 1. RESET BLINDADO */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #0f0f11;
    color: white;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. UTILIDADES */
.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; 
    padding-right: 1.5rem;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f11; }
::-webkit-scrollbar-thumb { background: #333650; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a32cff; }
::selection { background: #a32cff; color: white; }

/* 3. BACKGROUND FX */
.fx-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none !important;
    z-index: -50;
    background: #0f0f11;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 10s infinite ease-in-out;
    will-change: transform;
}
.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #a32cff; }
.orb-2 { bottom: 0%; right: -10%; width: 60vw; height: 60vw; background: #4c1d95; animation-delay: -5s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 30px); }
}

/* 4. UI COMPONENTS */
.glass-nav {
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spotlight-card {
    position: relative;
    background: rgba(26, 26, 31, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid #333650;
    overflow: hidden;
    transition: all 0.3s ease;
}
@media (hover: hover) {
    .spotlight-card:hover {
        border-color: #a32cff;
        transform: translateY(-5px);
        box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
    }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content { display: inline-block; animation: marquee 40s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.text-outline { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2); color: transparent; font-weight: 900; }

/* Forms */
.input-field {
    width: 100%;
    background: rgba(26, 26, 31, 0.6);
    border: 1px solid #333650;
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    outline: none;
    transition: all 0.3s;
}
.input-field:focus { border-color: #a32cff; background: rgba(26, 26, 31, 0.95); }

.service-chip {
    padding: 8px 16px;
    border: 1px solid #333650;
    border-radius: 999px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    user-select: none;
    font-size: 0.875rem;
    display: inline-block;
}
.service-chip.active { background: #a32cff; border-color: #a32cff; color: white; }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- 5. WHATSAPP WIDGET (ACTUALIZADO CON INPUT) --- */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn:active { transform: scale(0.95); }

.whatsapp-chat {
    width: 320px;
    background: #1a1a1f;
    border: 1px solid #333650;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
}
.whatsapp-chat.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.wa-header {
    background: #008069;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wa-avatar {
    width: 40px; height: 40px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #008069;
}
.wa-info h4 { margin: 0; font-size: 16px; font-weight: 700; color: white; }
.wa-info p { margin: 0; font-size: 12px; color: rgba(255,255,255,0.8); }

.wa-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-color: #0d0d0f;
}

.wa-msg-bubble {
    background: #1f2c34;
    padding: 10px 12px;
    border-radius: 0 10px 10px 10px;
    color: white;
    font-size: 13px;
    line-height: 1.4;
    max-width: 90%;
    margin-bottom: 8px;
}

.wa-options { display: flex; flex-direction: column; gap: 6px; }

.wa-opt-btn {
    background: #2a3942;
    border: 1px solid #333;
    padding: 10px 14px;
    border-radius: 8px;
    color: #e9edef;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex; justify-content: space-between; align-items: center;
}
.wa-opt-btn:hover { background: #25D366; color: white; border-color: #25D366; }

/* NUEVOS ESTILOS PARA EL INPUT */
.wa-input-wrapper {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 8px;
    align-items: center;
}
.wa-input {
    flex: 1;
    background: #2a3942;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    color: white;
    font-size: 13px;
    outline: none;
}
.wa-input::placeholder { color: #8696a0; }
.wa-send-icon {
    width: 35px;
    height: 35px;
    background: #00a884;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}
.wa-send-icon:hover { transform: scale(1.1); }