/* VARIABLES Y RESET */
:root {
    --primary: #8B5CF6;
    --secondary: #06B6D4;
    --accent: #F59E0B;
    --dark: #0F172A;
    --light: #F8FAFC;
    --gray: #64748B;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

.texto-rojo {
  color: rgb(234, 75, 7);
  font-weight: bold;
  font-size: 1.5em;
  text-transform: uppercase;
}

/* HEADER TRANSPARENTE */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
    /* Fallback para navegadores que no soportan background-clip */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--gradient);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

/* HERO SLIDER */
.hero-slider {
    height: 100vh;
    position: relative;
    margin-top: 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    align-items: center;
}

.slide {
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: linear-gradient(135deg, var(--dark) 0%, rgba(139, 92, 246, 0.1) 100%);
    min-height: 100vh;
    position: relative;
}

.slide-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.slide h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.slide h1 span {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
    /* Fallback */
}

.slide p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray);
    opacity: 0.9;
}

.slide-image {
    position: absolute;
    right: 10%;
    max-width: 500px;
    width: 40%;
    border-radius: 20px;
    transform: perspective(1000px) rotateY(-15deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.swiper-pagination-bullet {
    background: var(--light);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--secondary);
    opacity: 1;
}

/* SECCIÓN CARACTERÍSTICAS */
.features {
    padding: 100px 5%;
    background: var(--dark);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
    /* Fallback */
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* VIDEO HERO */
.video-hero {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    overflow: hidden;
}

.video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.video-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.video-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* FAQ ACORDEÓN */
.faq {
    padding: 100px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
    width: 100%;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.accordion-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 500px;
    opacity: 1;
}

.accordion-content p {
    color: var(--gray);
    line-height: 1.6;
}

/* PLANES */
.pricing {
    padding: 100px 5%;
    background: rgba(255, 255, 255, 0.02);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.08);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
    /* Fallback */
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* SECCIÓN RESELLER MEJORADA */
#reseller_info {
    text-align: center;
}

#reseller_info .section-title {
    margin-bottom: 3rem;
}

#reseller_info .video-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#reseller_info .video-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: justify;
    width: 100%;
    max-width: 700px;
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, var(--dark), #1E293B);
    padding: 50px 5% 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-links a {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-links a:hover {
    color: white;
    background: var(--gradient);
    transform: translateY(-3px);
}

/* ESTILOS PARA AUTENTICACIÓN */
.auth-section {
    padding: 120px 5% 100px;
    background: var(--dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

.auth-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-links a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary);
}

/* RESPONSIVE PARA AUTENTICACIÓN */
@media (max-width: 768px) {
    .auth-section {
        padding: 100px 2% 80px;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .auth-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .form-group input {
        padding: 0.7rem 0.8rem;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

    .slide {
        padding: 0 5%;
        text-align: center;
    }

    .slide-image {
        display: none;
    }

    .slide-content {
        margin: 0 auto;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .video-content {
        padding: 0 1rem;
    }

    .video-content h2 {
        font-size: 2rem;
    }

    .accordion-header {
        padding: 1rem;
    }

    .accordion-content {
        padding: 0 1rem;
    }

    .accordion-item.active .accordion-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .feature-card,
    .pricing-card {
        padding: 1.5rem 1rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}



/* MEJORAS DE ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FOCUS VISIBLE PARA ACCESIBILIDAD */
.cta-button:focus-visible,
.accordion-header:focus-visible,
.social-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}