/* --- VARIABLES Y RESET --- */
:root {
    --bg-dark: #060b13; 
    --bg-card: #0f1626; 
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --accent-blue: #0d6efd; 
    --accent-yellow: #ffc107; 
    --accent-orange: #fd7e14; 
    --accent-green: #25d366;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* FIX AL MENÚ Y CONTROL DE DESBORDE RESPONSIVE */
html, body { 
    max-width: 100vw;
    overflow-x: hidden;
}

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 140px; 
}

body { 
    width: 100%; 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    line-height: 1.6; 
    position: relative; 
}

.container { 
    max-width: 1250px; 
    margin: 0 auto; 
    padding: 0 5%; 
    width: 100%; 
}

/* --- EFECTOS LUCES DE FONDO (ORBS) --- */
.glow-orb { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(120px); 
    z-index: -1; 
    opacity: 0.2; 
    animation: floatOrb 10s infinite alternate; 
}
.orb-1 { 
    width: 500px; 
    height: 500px; 
    background: var(--primary); 
    top: 10%; 
    left: -10%; 
}
.orb-2 { 
    width: 600px; 
    height: 600px; 
    background: var(--secondary); 
    top: 50%; 
    right: -10%; 
}
@keyframes floatOrb { 
    0% { transform: translateY(0) scale(1); } 
    100% { transform: translateY(50px) scale(1.1); } 
}

/* --- UTILIDADES --- */
.text-gradient { 
    background: linear-gradient(to right, var(--primary), var(--secondary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.btn-primary { 
    background: linear-gradient(to right, var(--primary), var(--secondary)); 
    color: #fff; 
    padding: 12px 28px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    transition: transform 0.3s; 
    display: inline-block; 
    text-align: center; 
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2); 
}

/* ========================================================================
   ¡NITIDEZ EXTREMA Y BLINDAJE DE IMÁGENES! 
   ======================================================================== */
.strict-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
    display: block !important;
    image-rendering: -webkit-optimize-contrast; 
    image-rendering: high-quality;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.media-container { 
    width: 100%; 
    height: 180px !important; 
    min-height: 180px; 
    max-height: 180px; 
    border-radius: 8px; 
    overflow: hidden !important; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.1); 
    margin-bottom: 20px; 
    position: relative; 
}
.media-container img { 
    transition: transform 0.4s ease; 
    will-change: transform; 
}
.service-card:hover .media-container img { 
    transform: scale(1.05) translateZ(0); 
}

.oval-img { 
    width: 100%; 
    height: 220px !important; 
    min-height: 220px; 
    max-height: 220px; 
    border-radius: 150px 150px 0 0; 
    background: rgba(0, 210, 255, 0.05); 
    overflow: hidden !important; 
    position: relative; 
}

.vertical-container { 
    width: 100%; 
    height: 480px !important; 
    min-height: 480px; 
    max-height: 480px; 
    border-radius: 20px; 
    overflow: hidden !important; 
    border: 1px solid rgba(0,210,255,0.2); 
    background: rgba(255,255,255,0.05); 
    position: relative; 
}

.media-placeholder.avatar { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.05); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: var(--text-muted); 
    font-size: 1.5rem; 
}

/* --- NAVEGACIÓN GLASS Y LOGO --- */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(6, 11, 19, 0.65); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); 
    z-index: 100; 
    border-bottom: 1px solid rgba(0, 210, 255, 0.2); 
    box-shadow: 0 4px 30px rgba(0, 210, 255, 0.05); 
    transition: all 0.3s ease; 
}
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
}
.logo-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
}
.main-logo { 
    height: 90px; 
    object-fit: contain; 
    position: relative; 
    z-index: 2; 
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.2)); 
    transition: transform 0.4s ease; 
}
.logo-glow { 
    position: absolute; 
    width: 70px; 
    height: 70px; 
    background: var(--primary); 
    filter: blur(35px); 
    opacity: 0.4; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 1; 
    animation: pulseGlow 3s infinite alternate; 
}
.logo-wrapper:hover .main-logo { 
    transform: scale(1.08) rotate(-2deg); 
}
@keyframes pulseGlow { 
    0% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.8); } 
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); } 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 40px; 
    align-items: center; 
}
.nav-links a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: 1.05rem; 
    transition: all 0.3s ease; 
    position: relative; 
    padding: 5px 0; 
}
.nav-links a::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: 0; 
    left: 0; 
    background: linear-gradient(to right, var(--primary), var(--secondary)); 
    transition: width 0.3s ease; 
}
.nav-links a:hover { 
    color: var(--primary); 
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.4); 
}
.nav-links a:hover::after { 
    width: 100%; 
}

/* ========================================================================
   ANIMACIONES MAGICAS DE SCROLL
   ======================================================================== */
.fade-in { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}
.fade-in.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- HERO SECTION --- */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    padding-top: 100px; 
    position: relative; 
}
.hero::before { 
    content: ''; 
    position: absolute; 
    top: 10%; 
    right: 10%; 
    width: 400px; 
    height: 400px; 
    background: var(--secondary); 
    filter: blur(150px); 
    opacity: 0.15; 
    z-index: -1; 
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}

.badge { 
    background: rgba(0, 210, 255, 0.1); 
    color: var(--primary); 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600; 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    display: inline-block; 
}
.hero h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    font-weight: 800; 
}
.hero p { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin-bottom: 30px; 
}

.hero-image { 
    position: relative; 
    z-index: 10; 
}
.hero-video-wrapper { 
    width: 100%; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(0, 210, 255, 0.1); 
    border: 1px solid rgba(255,255,255,0.15); 
    position: relative; 
    background: rgba(0,0,0,0.5); 
    transform-origin: left center;
    animation: floatVideo 6s ease-in-out infinite; 
}
.hero-video-wrapper::after { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.2); 
    pointer-events: none; 
    border-radius: 20px; 
}
.hero-video-player { 
    width: 100%; 
    height: auto; 
    display: block; 
    object-fit: cover; 
}
@keyframes floatVideo { 
    0%, 100% { transform: scale(1.35) translateY(0); } 
    50% { transform: scale(1.35) translateY(-15px); } 
}

/* --- ESTADÍSTICAS --- */
.stats-strip { 
    background: var(--bg-card); 
    border-top: 1px solid var(--border-color); 
    border-bottom: 1px solid var(--border-color); 
    padding: 40px 0; 
    margin-top: -30px; 
}
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    text-align: center; 
    gap: 20px; 
}
.stat-item h2 { 
    font-size: 2.5rem; 
    color: var(--primary); 
    margin-bottom: 5px; 
}
.stat-item p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    font-weight: 500; 
}

/* --- SLIDER INFINITO --- */
.slider-wrapper { 
    background: rgba(0,0,0,0.4); 
    padding: 40px 0 40px; 
    border-bottom: 1px solid var(--border-color); 
    width: 100%;
    overflow: hidden; 
}
.slider-container { 
    width: 100%; 
    overflow: hidden; 
    display: flex; 
}
.slider-track { 
    display: flex; 
    width: max-content; 
    animation: scrollInfinite 30s linear infinite; 
}
.slide { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin: 0 40px; 
    color: var(--text-muted); 
    transition: all 0.3s; 
}
.slide i { 
    font-size: 32px; 
    color: var(--accent-orange) !important; 
    filter: drop-shadow(0 0 8px rgba(253, 126, 20, 0.4)); 
    transition: all 0.3s; 
}
.slide span { 
    font-size: 1.1rem; 
    font-weight: 600; 
    white-space: nowrap; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.slide:hover { 
    color: white; 
    transform: scale(1.1); 
}
.slide:hover i { 
    color: var(--primary) !important; 
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.6)); 
}
@keyframes scrollInfinite { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- SECCIÓN GLOBAL HEADERS --- */
.section-header { 
    text-align: center; 
    margin-bottom: 50px; 
    padding-top: 80px; 
}
.section-header h2, .section-header h1 { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
}
.section-header p { 
    color: var(--text-muted); 
    max-width: 700px; 
    margin: 0 auto; 
}

/* ========================================================================
   SECCIÓN CATÁLOGO / PRECIOS
   ======================================================================== */
.pricing-section {
    padding: 120px 0 80px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}
.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}
.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
}
.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}
.pricing-features {
    list-style: none;
    margin-bottom: 35px;
    text-align: left;
}
.pricing-features li {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
}
.pricing-features i {
    color: var(--accent-green);
    margin-right: 10px;
}
.popular-badge {
    position: absolute;
    top: 25px;
    right: -40px;
    background: var(--accent-orange);
    color: white;
    padding: 5px 45px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- SERVICIOS --- */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin-bottom: 80px; 
}
.service-card { 
    background: var(--bg-card); 
    padding: 25px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    transition: transform 0.3s; 
    min-width: 0; 
    overflow: hidden;
}
.service-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(0, 210, 255, 0.4); 
}
.service-card h3 { 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
}
.service-card p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}

/* --- CASOS DE USO --- */
.use-cases { 
    padding: 40px 0 100px; 
}
.oval-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
}
.oval-card { 
    background: #091324; 
    border-radius: 150px 150px 20px 20px; 
    border: 1px solid rgba(255,255,255,0.05); 
    display: flex; 
    flex-direction: column; 
    text-align: center; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); 
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
    min-width: 0; 
}
.oval-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.15); 
}
.oval-icon-wrapper { 
    position: relative; 
    height: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 10; 
}
.oval-icon { 
    width: 70px; 
    height: 70px; 
    background: var(--accent-orange); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 28px; 
    color: white; 
    transform: translateY(-35px); 
    border: 5px solid #091324; 
    transition: transform 0.3s; 
}
.oval-card:hover .oval-icon { 
    transform: translateY(-35px) scale(1.1); 
}
.oval-content { 
    padding: 40px 20px 30px; 
}
.oval-content h3 { 
    font-size: 1.3rem; 
    margin-bottom: 12px; 
    color: var(--text-main); 
}
.oval-content p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    line-height: 1.5; 
}

/* --- RENDIMIENTO --- */
.why-us { 
    padding: 80px 0; 
    background: rgba(255,255,255,0.01); 
}
.why-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}
.why-image { 
    min-width: 0; 
}
.why-text h2 { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}
.why-text p { 
    color: var(--text-muted); 
}
.progress-box { 
    margin-bottom: 25px; 
}
.progress-info { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 8px; 
}
.progress-info h4 { 
    font-size: 1rem; 
    font-weight: 600; 
}
.progress-info span { 
    font-weight: bold; 
}
.progress-track { 
    width: 100%; 
    height: 12px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 10px; 
    overflow: hidden; 
}
.progress-fill { 
    height: 100%; 
    border-radius: 10px; 
}
.progress-fill.blue { 
    background: var(--accent-blue); 
    box-shadow: 0 0 10px var(--accent-blue); 
}
.progress-fill.yellow { 
    background: var(--accent-yellow); 
    box-shadow: 0 0 10px var(--accent-yellow); 
}
.progress-fill.orange { 
    background: var(--accent-orange); 
    box-shadow: 0 0 10px var(--accent-orange); 
}

/* --- TESTIMONIOS Y FAQ --- */
.testimo-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 80px; 
}
.testimo-card { 
    background: var(--bg-card); 
    border-left: 4px solid var(--primary); 
    padding: 30px; 
    border-radius: 0 10px 10px 0; 
}
.testimo-profile { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
}
.testimo-profile h4 { 
    font-size: 1.1rem; 
}
.testimo-profile span { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
}
.testimo-card p { 
    font-style: italic; 
    color: #cbd5e1; 
}

.faq-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 80px; 
}
.faq-item { 
    background: var(--bg-card); 
    padding: 25px; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
}
.faq-item h4 { 
    font-size: 1.1rem; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.faq-item h4 i { 
    color: var(--primary); 
    font-size: 0.8rem; 
}
.faq-item p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    margin-left: 20px; 
}

/* --- FOOTER Y CONTACTO --- */
footer { 
    background: #03070d; 
    padding: 60px 0 20px; 
    border-top: 1px solid var(--border-color); 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    margin-bottom: 40px; 
}
.footer-info p { 
    color: var(--text-muted); 
    max-width: 400px; 
    margin-bottom: 20px; 
}
.social-icons a { 
    color: var(--text-main); 
    font-size: 1.5rem; 
    margin-right: 15px; 
    transition: color 0.3s; 
}
.social-icons a:hover { 
    color: var(--primary); 
}
.footer-form h3 { 
    margin-bottom: 20px; 
    font-size: 1.5rem; 
}
.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}
.contact-form input { 
    padding: 15px; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    color: white; 
    font-family: 'Inter', sans-serif; 
}
.contact-form input:focus { 
    outline: none; 
    border-color: var(--primary); 
}
.footer-bottom { 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 0.8rem; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 20px; 
    margin-top: 20px; 
}

/* RESPONSIVE MÓVIL BLINDADO */
@media (max-width: 1100px) {
    .oval-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .vertical-container { height: 350px !important; min-height: 350px; max-height: 350px; }
}
@media (max-width: 900px) {
    .hero-grid, .why-grid, .testimo-grid, .faq-grid, .footer-grid, .pricing-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .pricing-card { transform: scale(1) !important; }
    
    .hero-video-wrapper { 
        transform: scale(1) translateX(0) !important; 
        animation: floatMobile 6s ease-in-out infinite; 
    }
}
@keyframes floatMobile { 
    0%, 100% { transform: scale(1) translateY(0); } 
    50% { transform: scale(1) translateY(-15px); } 
}
@media (max-width: 600px) {
    .oval-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ======================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #20b858;
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.4);
    color: #FFF;
}
@media (max-width: 900px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 32px;
    }
}