/* ==============================================
   MAIN.CSS - OSTP FUNNEL (CORREGIDO)
   Colores: #00f0ff (cian), #7b2eda (púrpura)
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --ostp-primary: #00f0ff;
    --ostp-secondary: #7b2eda;
    --ostp-dark: #0a0c14;
    --ostp-darker: #05070c;
    --ostp-glass: rgba(10, 15, 30, 0.7);
    --ostp-border: rgba(0, 240, 255, 0.3);
    --ostp-text: #e0e5ff;
    --ostp-text-muted: #8b95b0;
    --ostp-success: #00ff9d;
    --ostp-gradient: linear-gradient(135deg, #00f0ff, #7b2eda);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--ostp-darker);
    color: var(--ostp-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--ostp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== BOTONES ===== */
.btn-ostp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--ostp-primary);
    color: var(--ostp-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-ostp:hover {
    background: var(--ostp-primary);
    color: var(--ostp-darker);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-ostp.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-ostp.btn-glow {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-ostp.btn-glow:hover {
    background: var(--ostp-primary);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
}

.btn-ostp.btn-outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-ostp.btn-outline:hover {
    border-color: var(--ostp-primary);
    color: var(--ostp-primary);
    background: transparent;
}

/* ===== NAVBAR ===== */
.navbar-ostp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 75px;
    width: auto;
    display: block;
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: white;
}

.logo-text .dot {
    color: var(--ostp-primary);
    margin: 0 3px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--ostp-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--ostp-primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ostp-primary);
    box-shadow: 0 0 10px var(--ostp-primary);
}

.nav-cta .btn-ostp {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ostp-primary);
}

/* ===== HERO SECTION ===== */
.hero-ostp {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--ostp-border);
    border-radius: 50px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: var(--ostp-primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--ostp-text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ostp-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--ostp-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--ostp-text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

/* ===== SERVICIOS SECTION ===== */
.servicios-ostp {
    padding: 80px 0;
    background: var(--ostp-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--ostp-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--ostp-primary);
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--ostp-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.servicio-card {
    display: block;
    background: rgba(10, 15, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.servicio-card:hover {
    transform: translateY(-10px);
    border-color: var(--ostp-primary);
    box-shadow: 0 20px 30px rgba(0, 240, 255, 0.2);
}

.servicio-card i {
    font-size: 2.5rem;
    color: var(--ostp-primary);
    margin-bottom: 20px;
}

.servicio-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.servicios-cta {
    text-align: center;
}

/* ===== CÓMO FUNCIONA ===== */
.como-funciona {
    padding: 80px 0;
    background: var(--ostp-darker);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(10, 15, 30, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 20px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 240, 255, 0.2);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--ostp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--ostp-primary);
}

/* ===== CASOS DE ÉXITO ===== */
.casos-exito {
    padding: 80px 0;
    background: var(--ostp-dark);
}

.casos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ===== FAQ ===== */
.faq {
    padding: 80px 0;
    background: var(--ostp-darker);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--ostp-primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--ostp-text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 20px;
}

/* ===== CTA FINAL ===== */
.cta-final {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(123, 46, 218, 0.1));
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--ostp-text-muted);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== CONTACTO SECTION ===== */
.contacto-ostp {
    padding: 60px 0;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 30px;
    padding: 50px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.contacto-info h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.contacto-info p {
    margin: 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacto-info i {
    color: var(--ostp-primary);
    width: 30px;
}

.contacto-info a {
    color: var(--ostp-text);
    text-decoration: none;
}

.contacto-info a:hover {
    color: var(--ostp-primary);
}

/* ===== FOOTER CORREGIDO ===== */
.footer-ostp {
    background: var(--ostp-darker);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-info img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--ostp-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-legal {
    color: var(--ostp-primary);
    font-size: 0.8rem;
    margin-top: 10px;
}

.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-contact p {
    color: var(--ostp-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    color: var(--ostp-text);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--ostp-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    color: var(--ostp-text-muted);
}

.footer-bottom p {
    margin: 5px 0;
}

/* ===== GRACIAS PAGE ===== */
.gracias-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.gracias-container i {
    font-size: 5rem;
    color: var(--ostp-primary);
    margin-bottom: 30px;
}

.gracias-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contacto-rapido {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--ostp-border);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
}

.contacto-rapido p {
    margin: 10px 0;
}

/* ===== ANIMACIONES ===== */
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .casos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .casos-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contacto-info p {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}