/* --- CONFIGURACIÓN GLOBAL --- */
:root {
    --bg-dark: #080812;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    --primary: #00AEEF;
    --accent-purple: #9D5CFF;
    --accent-green: #00E599;
    --accent-orange: #FFB340;
    
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    --glow: 0 0 80px -20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 174, 239, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(157, 92, 255, 0.08) 0%, transparent 40%);
}

/* --- CLASES DE UTILIDAD --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }

.text-gradient {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botones */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0077a3);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.4);
    border: 1px solid transparent;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0, 174, 239, 0.6); }

.btn-outline {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--text-white); }

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(8, 8, 18, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 35px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-gray); font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: white; }

/* --- HERO --- */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; background: var(--primary); opacity: 0.15; filter: blur(120px); z-index: -1;
    border-radius: 50%;
}

.hero h1 { font-size: 4rem; line-height: 1.1; font-weight: 800; margin-bottom: 25px; letter-spacing: -1px; }
.hero p { font-size: 1.25rem; color: var(--text-gray); max-width: 650px; margin: 0 auto 40px; }

/* --- CARRUSEL INFINITO (FIXED) --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 10%, transparent 90%, var(--bg-dark) 100%);
    padding: 40px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.marquee-item {
    padding: 0 40px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marquee-item:hover { color: var(--primary); opacity: 1; filter: drop-shadow(0 0 10px var(--primary)); }
.marquee-item span { font-size: 1.2rem; font-weight: 600; letter-spacing: 1px; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Mueve solo la mitad porque duplicamos el contenido */
}

/* --- SERVICIOS (GLASS CARDS) --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.card {
    background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Efecto de borde brillante superior */
.card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0.5;
}

.icon-wrapper {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 0.75rem; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,0.05); color: var(--text-gray); }

/* --- PROCESO (Nuevo) --- */
.process-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Línea conectora */
.process-container::before {
    content: ''; position: absolute; top: 40px; left: 50px; right: 50px; height: 2px;
    background: linear-gradient(90deg, var(--glass-border), var(--primary), var(--glass-border));
    z-index: 0;
    display: block;
}

.step-card {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    text-align: center;
    min-width: 250px;
}

.step-icon {
    width: 80px; height: 80px; margin: -50px auto 20px;
    background: #0f0f1a;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* --- FAQ (Acordeón Glass) --- */
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question:hover { background: rgba(255,255,255,0.05); }
.faq-question i { transition: transform 0.3s; color: var(--primary); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0,0,0,0.2);
}

.faq-answer p { padding: 0 25px 25px; color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; }

/* Estado activo FAQ */
.faq-item.active { border-color: var(--primary); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 200px; } /* Ajuste dinámico con JS */

/* --- FOOTER --- */
footer { border-top: 1px solid var(--glass-border); padding: 80px 0 30px; margin-top: 100px; font-size: 0.9rem; color: var(--text-gray); }

/* WhatsApp */
.wa-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: #25d366; color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 30px; z-index: 999;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); }

/* --- PAGE HEADER (for other pages like Policy) --- */
.page-header {
    padding: 180px 0 60px;
    text-align: center;
    position: relative;
}

.page-header h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 800; margin-bottom: 25px; letter-spacing: -1px; }
.page-header p { font-size: 1.25rem; color: var(--text-gray); max-width: 650px; margin: 0 auto; }

/* --- CONTENT SECTIONS --- */
.content-section {
    padding: 40px 0 100px;
}

.policy-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    backdrop-filter: blur(10px);
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.policy-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0.5;
}

.policy-card h2 {
    color: var(--text-white);
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.policy-card h2:first-child {
    margin-top: 0;
}

.policy-card p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.policy-card ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-card li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.policy-card a {
    color: var(--primary);
    text-decoration: none;
}

.policy-card a:hover {
    text-decoration: underline;
}

@media(max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .page-header h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .process-container::before { display: none; } /* Ocultar línea en móvil */
    .step-card { margin-top: 20px; }
    .policy-card { padding: 30px; }
}
