/* --- Variables de Diseño Tech / Cyber-Dark --- */
:root {
    --bg-main: #020205;          
    --bg-card: rgba(10, 10, 22, 0.85); 
    --primary-neon: #00f2fe;     
    --secondary-neon: #9d4edd;   
    --text-main: #ffffff;        
    --text-muted: #a0aec0;       
    --whatsapp-neon: #25d366;    
    --font-stack: 'Courier New', 'Segoe UI', monospace; 
    --nav-height: 75px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow: hidden;
}

/* --- CANVAS MATRIX ULTRA-VISIBLE --- */
#canvas-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;           
    opacity: 0.75;  /* Opacidad alta para resalte absoluto */
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6)); /* Resplandor neón */
    pointer-events: none;
}

/* --- CONTENEDOR CON EFECTO SCROLL SNAP --- */
.scroll-container {
    position: relative;
    z-index: 1;           
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* --- ESTRUCTURA DE SECCIONES TRASLÚCIDAS --- */
.hero,
.full-screen-section {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    box-sizing: border-box;
    width: 100%;
    /* Fondos muy translúcidos para ver el canvas detrás */
    background-color: rgba(2, 2, 5, 0.45);
}

.section-snap {
    scroll-snap-align: start;
    scroll-margin-top: 0px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height); 
}

/* --- Menú de Navegación Fijo --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(2, 2, 5, 0.85);
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    height: 100% !important;
    margin-top: 0 !important;
}

.logo {
    display: flex;         
    align-items: center;   
    gap: 12px;             
    text-decoration: none; 
}

.nav-logo-img {
    height: 40px;          
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text-cyan {
    font-family: 'Segoe UI', Roboto, sans-serif; 
    font-size: 1.4rem;
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00f0ff; 
    display: inline-block;
    animation: destelloCian 2s ease-in-out infinite;
}

@keyframes destelloCian {
    0%, 100% {
        color: #00f0ff;
        text-shadow: 0 0 4px rgba(0, 240, 255, 0.3);
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff, 0 0 30px #00f0ff;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-stack);
    font-size: 0.85rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

/* --- Títulos Globales --- */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.section-title h2 {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-title h2 i {
    color: var(--primary-neon);
    font-size: 1.6rem;
    margin-right: 10px;
}

.section-title p, .subtitle-section {
    color: #cbd5e1;
    font-family: var(--font-stack);
    font-size: 0.95rem;
}

/* --- Hero Section (Inicio) --- */
.hero {
    position: relative;
    text-align: center;
    overflow: hidden;
    background-color: transparent;
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;             
}

.css-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%; 
    height: 100%;
    display: flex;
    z-index: -2;
    opacity: 0.25; /* Suavizado para dejar relucir las letras Matrix */
    animation: slideAnimation 21s infinite;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 8, 30, 0.4) 0%, rgba(2, 2, 5, 0.7) 95%);
    z-index: 0;
}

@keyframes slideAnimation {
    0%, 28% { transform: translateX(0); }
    33%, 61% { transform: translateX(-33.33%); }
    66%, 95% { transform: translateX(-66.66%); }
    100% { transform: translateX(0); }
}

.tech-badge {
    display: inline-block;
    font-family: var(--font-stack);
    font-size: 0.8rem;
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 25px;
    background: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    width: 100%;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* --- Botones --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #00f2fe 0%, #4338ca 100%);
    color: #000;
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-stack);
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--primary-neon);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.8);
    color: #fff;
    transform: translateY(-2px);
}

.btn-card-dummy {
    display: inline-block;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-stack);
    margin-top: 15px;
    font-weight: bold;
}

/* --- Estilos de Bloques Semi-Transparentes --- */
.about-section-bg { background-color: rgba(2, 2, 5, 0.5); }
.catalog-bg { background-color: rgba(5, 5, 12, 0.55); }

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.unique-grid {
    grid-template-columns: 1fr !important;
}

.about-text h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}
.about-text p { color: #e2e8f0; margin-bottom: 20px; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

.tech-highlight {
    background: rgba(0, 242, 254, 0.08);
    border-left: 3px solid var(--primary-neon);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(6px);
}
.tech-highlight p { margin-bottom: 0; color: var(--text-main); }
.tech-highlight i { color: var(--primary-neon); margin-right: 5px; }

.about-stats { display: flex; flex-direction: column; gap: 20px; }

.stat-box {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(157, 78, 221, 0.35);
    backdrop-filter: blur(8px);
}
.stat-box h4 {
    font-size: 2.3rem;
    color: var(--secondary-neon);
    margin-bottom: 5px;
    font-family: var(--font-stack);
    text-shadow: 0 0 12px rgba(157, 78, 221, 0.6);
}
.stat-box p { font-size: 0.9rem; color: #cbd5e1; }

/* Caja de Oferta Centrada */
.offer-box {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    border: 1px solid var(--primary-neon) !important;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.25);
}
.offer-box h4 {
    color: var(--primary-neon);
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}
.price-title { font-weight: 700; color: var(--text-main) !important; letter-spacing: 1px; margin-bottom: 10px; }
.price-desc { margin-bottom: 15px; color: #e2e8f0; }
.price-highlight { color: var(--primary-neon) !important; font-family: var(--font-stack); font-weight: bold; }

/* --- Sección Catálogo (Efecto Tarjeta Giratoria 3D) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}
.flip-card { background-color: transparent; height: 360px; perspective: 1000px; }
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-1-bg, .card-2-bg, .card-3-bg { 
    background: rgba(10, 10, 22, 0.88); 
    backdrop-filter: blur(10px);
}

.flip-card-front { display: flex; align-items: center; justify-content: center; padding: 30px; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 15px; }
.card-icon { font-size: 2.8rem; color: var(--primary-neon); margin-bottom: 20px; text-shadow: 0 0 15px rgba(0, 242, 254, 0.5); }
.flip-card-front p { color: #cbd5e1; font-size: 0.95rem; }

.flip-card-back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.back-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(2, 2, 5, 0.92); z-index: 1; }
.back-content { position: relative; z-index: 2; width: 100%; text-align: left; }
.back-content h4 { font-size: 1.1rem; color: var(--primary-neon); margin-bottom: 15px; font-family: var(--font-stack); }

.team-list { list-style: none; margin-bottom: 10px; }
.team-list li { font-size: 0.9rem; margin-bottom: 6px; color: var(--text-main); }
.team-list li strong { color: var(--secondary-neon); }
.flip-card:hover .flip-card-back { border-color: var(--primary-neon); box-shadow: 0 0 25px rgba(0, 242, 254, 0.3); }

/* --- Sección: Proceso --- */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; width: 100%; }
.process-box { 
    background: var(--bg-card); 
    padding: 35px; 
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(8px);
}
.process-box h3 { color: var(--primary-neon); margin-bottom: 20px; font-size: 1.4rem; }
.tech-list { list-style-position: inside; color: #cbd5e1; }
.tech-list li { margin-bottom: 12px; font-size: 0.95rem; }
.tech-list li strong { color: var(--text-main); }
.guarantee-text { background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.4); padding: 15px; border-radius: 4px; margin-bottom: 20px; font-size: 0.95rem; }
.sub-tech { color: var(--secondary-neon); font-family: var(--font-stack); margin-bottom: 15px; }
.process-note { margin-top: 15px; color: var(--primary-neon); font-family: var(--font-stack); font-size: 0.9rem; }

/* --- Sección: Contacto + Footer --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(10, 10, 22, 0.88);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    width: 100%;
}
.contact-info h3 { font-size: 1.7rem; margin-bottom: 10px; font-family: var(--font-stack); }
.contact-info p { color: #cbd5e1; margin-bottom: 15px; font-family: var(--font-stack); }
.info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; font-size: 0.95rem; }
.info-item i { color: var(--secondary-neon); font-size: 1.1rem; }
.contact-action { display: flex; align-items: center; justify-content: center; }

footer { background-color: rgba(2, 2, 5, 0.9); color: var(--text-muted); padding: 20px 0 10px 0; text-align: center; border-top: 1px solid rgba(157, 78, 221, 0.2); width: 100%; margin-top: 20px;}
.motivation { font-family: var(--font-stack); color: var(--text-main); font-size: 0.9rem; max-width: 800px; margin: 0 auto 10px auto; }
.copyright { font-family: var(--font-stack); font-size: 0.8rem; }

/* --- Botón Flotante WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: rgba(2, 2, 5, 0.85);
    color: var(--whatsapp-neon);
    border: 2px solid var(--whatsapp-neon);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 1100;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); background-color: var(--whatsapp-neon); color: #000; box-shadow: 0 0 35px rgba(37, 211, 102, 0.9); }

/* --- Responsive --- */
@media (max-width: 992px) {
    body { overflow-y: auto; }
    .scroll-container { height: auto; overflow-y: visible; scroll-snap-type: none; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }    
    .hero .subtitle { font-size: 1.1rem; }
    .about-grid, .process-grid, .contact-wrapper { grid-template-columns: 1fr !important; gap: 30px; }
    .flip-card { height: auto; min-height: 360px; }
    .hero, .full-screen-section { height: auto; min-height: 100vh; padding: 80px 0; }
    .container { height: auto; }
}