/* Reset y Variables */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image {
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-image img {
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Brands Slider */
.brands-slider {
    overflow: hidden;
    margin: 2rem 0;
    padding: 1rem 0;
}

.brands-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
}

.brand-item {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;

}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-color);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1fb855;
}

.btn-email {
    background: var(--dark-color);
    color: white;
}

/* Plans Section */
.plans-section {
    padding: 80px 0;
    background: var(--light-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.plan-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.plan-tab {
    padding: 12px 30px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

.plan-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.plans-grid {
    position: relative;
    min-height: 600px;
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

.plan-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.plan-name {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

.plan-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-mxn {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-usd {
    display: block;
    font-size: 1.2rem;
    color: var(--text-color);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.guarantee-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.8;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background: var(--light-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.step-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Installation Section */
.installation-section .plan-tab {
    min-width: 150px;
}

.installation-steps-container {
    animation: fadeIn 0.5s ease;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.testimonial-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.testimonial-rating {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-comment {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-color);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .plans-container {
        grid-template-columns: 1fr;
    }
    
    .plan-tabs {
        flex-direction: column;
    }
}
/* ===== NUEVOS ESTILOS: HERO CAROUSELS ===== */
.hero-carousel-wrap {
    width: 100%;
    overflow: hidden;
    padding: 0.75rem 0;
    background: rgba(0,0,0,0.25);
}
.hero-carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
}
.hero-ltr {
    animation: scrollLTR 30s linear infinite;
}
.hero-rtl {
    animation: scrollRTL 30s linear infinite;
}
@keyframes scrollLTR {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scrollRTL {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.hero-carousel-item {
    flex-shrink: 0;
    width: 220px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
}
.hero-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== BRANDS SLIDER - mejorado y más grande ===== */
.brands-slider {
    overflow: hidden;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
}
.brands-track {
    display: flex;
    gap: 2rem;
    animation: scrollBrands 20s linear infinite;
    width: max-content;
}
@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brand-item {
    flex-shrink: 0;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.brand-item img {
    max-width: 100%;
    max-height: 55px;
    object-fit: contain;
}

/* ===== TV BRANDS CAROUSEL (en sección características) ===== */
.tv-brands-slider {
    overflow: hidden;
    padding: 1rem 0;
}
.tv-brands-track {
    display: flex;
    gap: 2rem;
    animation: scrollBrands 25s linear infinite;
    width: max-content;
}
.tv-brand-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 110px;
}
.tv-brand-item img {
    width: 80px;
    height: 50px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s;
}
.tv-brand-item:hover img { opacity: 1; }
.tv-brand-item span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

/* ===== RESELLERS SECTION ===== */
.resellers-section {
    background: linear-gradient(135deg, var(--bg-color, #0d0d0d) 0%, rgba(0,0,0,0.95) 100%);
    padding: 5rem 0;
}
.resellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.reseller-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.reseller-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-color, #00ff88);
    box-shadow: 0 10px 30px rgba(0,255,136,0.15);
}
.reseller-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
}
.reseller-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.75rem;
}
.reseller-card p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* ===== INSTALLATION SECTION ===== */
.installation-section {
    background: rgba(0,0,0,0.5);
    padding: 5rem 0;
}
.device-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    justify-content: center;
}
.device-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}
.device-tab.active, .device-tab:hover {
    border-color: var(--neon-color, #00ff88);
    color: var(--neon-color, #00ff88);
    background: rgba(0,255,136,0.08);
}
.install-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.install-step-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s;
}
.install-step-card:hover { transform: translateY(-4px); }
.install-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--neon-color, #00ff88);
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.install-step-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.install-step-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
    padding: 5rem 0;
    background: rgba(0,0,0,0.4);
}
.calculator-wrapper {
    max-width: 900px;
    margin: 3rem auto 0;
}
.calculator-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}
.calc-col {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 2rem;
}
.cable-col { border-color: rgba(255,100,100,0.3); }
.iptv-col { border-color: rgba(0,255,136,0.3); }
.calc-col h3 { color: #fff; font-size: 1.2rem; margin-bottom: 1.2rem; text-align: center; }
.calc-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.calc-list li { color: rgba(255,255,255,0.8); padding: 0.4rem 0; font-size: 0.9rem; }
.calc-price-input label { color: rgba(255,255,255,0.7); font-size: 0.85rem; display: block; margin-bottom: 0.5rem; }
.calc-plan-label { color: rgba(255,255,255,0.7); font-size:0.85rem; margin-bottom: 0.3rem; }
.calc-vs {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neon-color, #00ff88);
    text-shadow: 0 0 15px var(--neon-color, #00ff88);
    align-self: center;
    text-align: center;
    padding: 0 0.5rem;
}
.calc-result {
    background: rgba(0,255,136,0.1);
    border: 2px solid var(--neon-color, #00ff88);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: background 0.4s;
}
.calc-savings-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-color, #00ff88);
    text-shadow: 0 0 20px var(--neon-color, #00ff88);
}
.calc-savings-label {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-top: 0.5rem;
}
@media (max-width: 768px) {
    .calculator-box { grid-template-columns: 1fr; }
    .calc-vs { display: none; }
    .hero-carousel-item { width: 150px; height: 90px; }
    .resellers-grid { grid-template-columns: 1fr; }
    .install-steps-grid { grid-template-columns: 1fr; }
    .device-tabs { gap: 0.5rem; }
}

/* ===== GUARANTEE BADGE ===== */
.guarantee-badge {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, rgba(0,255,136,0.1), rgba(0,200,100,0.15));
    border: 2px solid var(--neon-color, #00ff88);
    border-radius: 12px;
    padding: 1.2rem 2rem;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

/* === Section title white overrides for dark background sections === */
.plans-section .section-title,
.features-section .section-title,
.steps-section .section-title,
.resellers-section .section-title,
.installation-section .section-title,
.calculator-section .section-title,
.hero .section-title {
    color: #ffffff;
}
.plans-section .section-subtitle,
.features-section .section-subtitle,
.steps-section .section-subtitle,
.resellers-section .section-subtitle,
.installation-section .section-subtitle {
    color: rgba(255,255,255,0.85);
}
