:root {
    --primary: #00d9ff;
    --accent: #10b981;
    --dark: #0a1128;
    --dark-light: #131f46;
    --gray: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navegación */
nav {
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s;
}

nav.scrolled {
    background: rgba(10, 17, 40, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: -4px;
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

/* Animación del menú hamburguesa cuando está activo */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a1128 0%, #1a2744 50%, #0f2744 100%);
    color: white;
    padding: 10rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('/static/img/fondo_voybot2.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Stats Section */
.stats {
    background: var(--dark-light);
    padding: 4rem 2rem;
    position: relative;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(0, 217, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0, 217, 255, 0.15);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 217, 255, 0.4);
    background: rgba(0, 217, 255, 0.1);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-light);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.15);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
}

.feature-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: white;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* How it Works */
.how-it-works {
    background: var(--dark-light);
    padding: 6rem 2rem;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.steps {
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
    flex-shrink: 0;
}

.step-content {
    background: var(--dark);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 217, 255, 0.15);
}

.step-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: white;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray);
    line-height: 1.7;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    width: 100%;
    min-height: 60vh;
    margin: 0 auto;
    background: url('/static/img/fondo_evento.jpg') center center/cover no-repeat;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(19, 31, 70, 0.85);
    z-index: 1;
}

.contact-cta,
.contact .section-header {
    position: relative;
    z-index: 2;
}

.contact-cta {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.whatsapp-card {
    background: var(--dark-light);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 2px solid rgba(0, 217, 255, 0.2);
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.whatsapp-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.whatsapp-card:hover {
    border-color: #25D366;
    box-shadow: 0 25px 70px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
    position: relative;
    z-index: 1;
}

.whatsapp-icon svg {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.whatsapp-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.whatsapp-card p {
    color: var(--gray);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    padding: 1.25rem 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #25D366 0%, #20b358 100%);
    width: 100%;
    max-width: 350px;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20b358 0%, #1a9e4d 100%);
}

.btn-whatsapp svg {
    margin-right: 10px;
    flex-shrink: 0;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #20b358 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 40px;
    height: 40px;
    fill: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Footer */
footer {
    background: var(--dark-light);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

footer p {
    margin-bottom: 0.5rem;
    color: #94a3b8;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-developed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-developed p {
    margin-bottom: 0;
    color: #94a3b8;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* ========== MEDIA QUERIES - RESPONSIVE ========== */

/* Tablets y pantallas medianas */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles */
@media (max-width: 768px) {
    /* Menú hamburguesa */
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10,17,40,0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        transition: all 0.3s;
    }
    
    nav ul li a:hover {
        background: rgba(0, 217, 255, 0.1);
        color: var(--primary);
    }
    
    nav ul.active {
        right: 0;
    }
    
    /* Hero - Ajustes para móvil */
    .hero {
        padding: 8rem 1.5rem 6rem;
        min-height: 80vh;
        background-size: auto 100%;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .hero::before {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Stats */
    .stats {
        padding: 3rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Features */
    .features {
        padding: 4rem 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* How it works */
    .how-it-works {
        padding: 4rem 1.5rem;
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        margin: 0 auto 1rem;
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    /* Contact */
    .contact {
        padding: 4rem 1.5rem;
        min-height: 50vh;
        background-size: cover;
        background-position: center center;
    }
    
    .contact::before {
        background: rgba(19, 31, 70, 0.88);
    }
    
    .whatsapp-card {
        padding: 2rem 1.5rem;
    }
    
    /* WhatsApp float button */
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 35px;
        height: 35px;
    }
    
    /* Footer */
    footer {
        padding: 2rem 1.5rem;
    }
    
    .footer-logo {
        height: 40px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    nav ul {
        width: 80%;
    }
    
    /* Hero - Optimización para pantallas pequeñas */
    .hero {
        padding: 7rem 1rem 5rem;
        min-height: 70vh;
        background-size: auto 100%;
        background-position: center center;
    }
    
    .hero::before {
        background: rgba(0,0,0,0.75);
    }
    
    /* Contact - Optimización para pantallas pequeñas */
    .contact {
        background-size: auto 100%;
        background-position: center center;
    }
    
    .features-grid,
    .stats-grid {
        gap: 1rem;
    }
    
    .feature-card,
    .step-content,
    .whatsapp-card {
        padding: 1.25rem;
    }
    
    .btn-whatsapp {
        padding: 1rem 1.5rem;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .features,
    .steps {
        max-width: 1400px;
    }
}