/* ===== RESET Y VARIABLES ===== */
:root {
    --primary: #0a0a0f;
    --secondary: #00f2ff;
    --secondary-dark: #0088ff;
    --neon-blue: #00f7ff;
    --neon-glow: 0 0 10px rgba(0, 242, 255, 0.5), 0 0 20px rgba(0, 136, 255, 0.3);
    --glass-bg: rgba(10, 10, 20, 0.7);
    --glass-border: rgba(0, 242, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --gradient-1: linear-gradient(135deg, #00f2ff 0%, #0088ff 100%);
    --gradient-2: linear-gradient(45deg, #0a0a0f 0%, #001a2b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== UTILIDADES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glow-text {
    color: var(--neon-blue);
    text-shadow: var(--neon-glow);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--primary);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    position: relative;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo-text {
    background: var(--gradient-1);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-highlight {
    color: var(--neon-blue);
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-blue);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--neon-blue);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-2);
    overflow: hidden;
    padding: 0 1rem;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-mockup {
    position: relative;
}

.mockup-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--neon-glow);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.mockup-card:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.mockup-screen {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.mockup-header {
    background: rgba(0, 242, 255, 0.1);
    padding: 0.8rem;
    display: flex;
    gap: 0.5rem;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.mockup-dot:first-child { background: #ff5f5f; }
.mockup-dot:nth-child(2) { background: #ffd966; }
.mockup-dot:last-child { background: #6bcf7f; }

.mockup-content {
    padding: 1rem;
}

.mockup-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-item.highlight {
    background: rgba(0, 242, 255, 0.1);
    border-radius: 8px;
}

.mockup-price {
    margin-left: auto;
    color: var(--neon-blue);
    font-weight: 600;
}

.mockup-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    font-weight: 700;
    color: var(--neon-blue);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--neon-blue);
    border-right: 2px solid var(--neon-blue);
    transform: rotate(45deg);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== TARJETAS DE SERVICIOS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.service-card:hover .card-border {
    border-color: var(--neon-blue);
    box-shadow: inset var(--neon-glow);
}

/* ===== BENEFICIOS ===== */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.beneficio-item {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.beneficio-item:hover {
    transform: scale(1.05);
}

.beneficio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.1);
    box-shadow: var(--neon-glow);
}

/* ===== CÓMO FUNCIONA ===== */
.steps-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.step-line {
    position: absolute;
    left: 30px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-blue), transparent);
    box-shadow: var(--neon-glow);
}

.step-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--neon-blue);
    box-shadow: var(--neon-glow);
    position: relative;
    z-index: 2;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--neon-blue);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.5;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h3 {
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* ===== DEMO SECTION ===== */
.demo-showcase {
    text-align: center;
}

.demo-devices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.device {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--neon-glow);
    transition: transform 0.3s ease;
}

.device:hover {
    transform: translateY(-10px);
}

.device.tablet {
    width: 400px;
    height: 300px;
}

.device.phone {
    width: 200px;
    height: 350px;
}

.device-screen {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.demo-dashboard, .demo-menu {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0a0a0f, #001a2b);
    border-radius: 10px;
    padding: 1rem;
}

.demo-slider {
    margin-top: 3rem;
}

.slider-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.slide {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    color: var(--neon-blue);
    transition: all 0.3s ease;
}

.slide.active {
    background: var(--gradient-1);
    color: var(--primary);
    box-shadow: var(--neon-glow);
}

.slider-controls button {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.slider-controls button:hover {
    background: var(--neon-blue);
    color: var(--primary);
    box-shadow: var(--neon-glow);
}

/* ===== TESTIMONIOS ===== */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
}

.testimonio-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
}

.testimonio-author {
    display: flex;
    flex-direction: column;
}

.testimonio-author strong {
    color: var(--neon-blue);
}

/* ===== CALL TO ACTION ===== */
.cta-section {
    background: var(--gradient-2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,242,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===== FORMULARIO ===== */
.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: var(--neon-glow);
    background: rgba(0, 242, 255, 0.05);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.contacto-info {
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #050508;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--neon-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--neon-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 50%;
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--neon-blue);
    color: var(--primary);
    box-shadow: var(--neon-glow);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* ===== ANIMACIONES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.fade-in-delay.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-mockup {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contacto-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 1px solid var(--neon-blue);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-cta {
        display: none;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
    
    .step-line {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .device.tablet {
        width: 300px;
        height: 225px;
    }
    
    .device.phone {
        width: 150px;
        height: 260px;
    }
}