/* SmartersIPTV España Custom Responsive & Interactive Styles */
:root {
    --primary-color: #005CE7;
    --secondary-color: #651EFD;
    --dark-purple: #2B0C6B;
    --accent-green: #61CE70;
    --text-color: #7A7A7A;
    --heading-color: #111827;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --container-max-width: 1300px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Force visible for any animated elementor elements */
.elementor-invisible {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide any Elementor preloader/page transition spinners */
e-preloader, e-page-transition, .e-preloader, .swiper-lazy-preloader {
    display: none !important;
}

/* Compatible Devices Ticker/Bar: Specific to Homepage (#6bee4ef) & Comprar Page (#c67a9ed) */
.elementor-element-6bee4ef .swiper-wrapper,
.elementor-element-c67a9ed .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 28px !important;
    transform: none !important;
    padding: 10px 0 !important;
}
.elementor-element-6bee4ef .swiper-slide,
.elementor-element-c67a9ed .swiper-slide {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.elementor-element-6bee4ef .swiper-slide-image,
.elementor-element-c67a9ed .swiper-slide-image {
    max-height: 36px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Testimonials WhatsApp reviews carousel (.elementor-element-1bea183) */
.elementor-element-1bea183 .swiper-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 24px !important;
    transform: none !important;
    padding: 20px 0 !important;
    flex-wrap: wrap !important;
}
.elementor-element-1bea183 .swiper-slide {
    flex: 0 1 300px !important;
    max-width: 320px !important;
    width: 300px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
}
.elementor-element-1bea183 .swiper-slide-image {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    object-fit: contain !important;
}
@media (max-width: 640px) {
    .elementor-element-1bea183 .swiper-slide {
        flex: 0 1 100% !important;
        max-width: 290px !important;
        width: 100% !important;
    }
    .elementor-element-1bea183 .swiper-slide-image {
        max-width: 290px !important;
    }
}

/* Header and Mobile Menu */
header.elementor-location-header {
    background-color: #ffffff;
    position: relative;
    z-index: 9999;
}

/* Header Desktop Nav Link Styling */
.eael-simple-menu-horizontal li > a {
    color: #000000;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    transition: color 0.2s ease;
}

.eael-simple-menu-horizontal li.current-menu-item > a,
.eael-simple-menu-horizontal li.current_page_item > a,
.eael-simple-menu-horizontal li a:hover {
    color: #5200ff !important;
}

/* Mobile Nav Toggle */
.eael-simple-menu-toggle {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
    display: none;
    outline: none;
}

@media (max-width: 1024px) {
    .eael-simple-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .eael-simple-menu-container:not(.is-active) ul,
    .eael-simple-menu-container:not(.is-active) #menu-menu-1,
    .eael-simple-menu-container:not(.is-active) .eael-simple-menu-horizontal {
        display: none !important;
    }
    
    .eael-simple-menu-container.is-active ul,
    .eael-simple-menu-container.is-active #menu-menu-1,
    .eael-simple-menu-container.is-active .eael-simple-menu-horizontal {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        background: #ffffff !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.18) !important;
        padding: 20px 16px !important;
        z-index: 999999 !important;
        margin: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
    }
    
    .eael-simple-menu-container.is-active .eael-simple-menu-horizontal li {
        width: 100% !important;
        margin: 4px 0 !important;
        text-align: left !important;
        list-style: none !important;
    }
    
    .eael-simple-menu-container.is-active .eael-simple-menu-horizontal li a {
        display: block !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        transition: background 0.2s ease, color 0.2s ease !important;
    }
    
    .eael-simple-menu-container.is-active .eael-simple-menu-horizontal li a:hover,
    .eael-simple-menu-container.is-active .eael-simple-menu-horizontal li.current-menu-item a {
        background: #eff6ff !important;
        color: #005CE7 !important;
    }
}

/* Interactive Accordion for FAQs */
.elementor-accordion .elementor-accordion-item,
.eael-adv-accordion .eael-accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: #ffffff;
}

.elementor-accordion .elementor-accordion-item:hover,
.eael-adv-accordion .eael-accordion-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.elementor-accordion .elementor-tab-title,
.eael-adv-accordion .eael-accordion-header {
    cursor: pointer;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    user-select: none;
    transition: background 0.2s ease;
}

.elementor-accordion .elementor-tab-title:hover,
.eael-adv-accordion .eael-accordion-header:hover {
    background-color: #f8fafc;
}

.elementor-accordion .elementor-tab-content,
.eael-adv-accordion .eael-accordion-content {
    display: none;
    padding: 18px 24px 22px;
    color: #475569;
    line-height: 1.7;
    border-top: 1px solid #f1f5f9;
}

.elementor-accordion .elementor-tab-title.elementor-active + .elementor-tab-content,
.eael-adv-accordion .eael-accordion-header.active-default + .eael-accordion-content,
.elementor-accordion .elementor-accordion-item.active .elementor-tab-content,
.eael-adv-accordion .eael-accordion-item.active .eael-accordion-content {
    display: block !important;
}

.elementor-accordion-icon {
    transition: transform 0.3s ease;
}

.elementor-tab-title.elementor-active .elementor-accordion-icon,
.elementor-accordion-item.active .elementor-accordion-icon {
    transform: rotate(180deg);
}

/* Floating WhatsApp Widget */
.smarters-whatsapp-floating {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
}

.smarters-whatsapp-floating a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.smarters-whatsapp-floating a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
    color: #ffffff !important;
}

.smarters-whatsapp-floating .whatsapp-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 640px) {
    .smarters-whatsapp-floating .whatsapp-btn-text {
        display: none;
    }
    .smarters-whatsapp-floating a {
        padding: 14px;
        border-radius: 50%;
    }
}

/* Pricing Card Visual Enhancement */
.elementor-widget-container .elementor-price-table,
.pricing-card-highlight {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Keep the homepage hero balanced and visible on wide screens. */
@media (min-width: 1025px) {
    .elementor-2663 .elementor-element.elementor-element-02da375 > .elementor-container {
        align-items: center;
    }

    .elementor-2663 .elementor-element.elementor-element-0b614a2,
    .elementor-2663 .elementor-element.elementor-element-9329c4e,
    .elementor-2663 .elementor-element.elementor-element-9329c4e .elementor-widget-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .elementor-2663 .elementor-element.elementor-element-9329c4e img {
        display: block !important;
        width: min(100%, 520px) !important;
        height: auto !important;
        margin-inline: auto !important;
        object-fit: cover;
    }
}

/*
 * Device compatibility logos.
 * The exported Elementor markup expects Swiper, but this lightweight theme does
 * not load Elementor's JavaScript runtime. Use a reliable responsive grid so
 * every white logo stays visible against the brand background.
 */
.elementor-2663 .elementor-element.elementor-element-0213467,
.elementor-2663 .elementor-element.elementor-element-6bee4ef,
.elementor-2663 .elementor-element.elementor-element-6bee4ef .elementor-widget-container,
.elementor-2663 .elementor-element.elementor-element-6bee4ef .elementor-image-carousel-wrapper {
    background: #631df7 !important;
}

.elementor-2663 .elementor-element.elementor-element-6bee4ef .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 20px;
    width: min(1180px, calc(100% - 40px)) !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 26px 0 !important;
    transform: none !important;
}

.elementor-2663 .elementor-element.elementor-element-6bee4ef .swiper-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 44px !important;
    margin: 0 !important;
}

.elementor-2663 .elementor-element.elementor-element-6bee4ef .swiper-slide-image {
    display: block !important;
    width: 150px !important;
    max-width: 100% !important;
    height: 35px !important;
    object-fit: contain;
    opacity: 1 !important;
}

@media (max-width: 1024px) {
    .elementor-2663 .elementor-element.elementor-element-6bee4ef .swiper-wrapper {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .elementor-2663 .elementor-element.elementor-element-6bee4ef .swiper-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
        width: min(100% - 28px, 560px) !important;
        padding: 22px 0 !important;
    }
}

/* Interactive Feedback Toast */
.smarters-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10B981;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 100000;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
}
.smarters-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Blog Post Tables & Horizontal Overflow Safeguard */
.table-responsive,
.compare,
.section-inner:has(table),
.section:has(table) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.table-responsive {
    margin: 18px 0;
    width: 100%;
}

.comp-table,
.broad-table,
.price-table,
.speed-table,
.compare table {
    min-width: 480px;
}

.elementor-widget-theme-post-content table {
    max-width: 100%;
}

/* Comparison Table Mobile & Tablet Horizontal Scroll Fix (Comprar Page) */
@media (max-width: 1024px) {
    .elementor-element-5a4f013 .e-con-inner {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
        padding-bottom: 20px !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
        scroll-snap-type: x proximity;
    }
    .elementor-element-5a4f013 .e-con-inner::-webkit-scrollbar {
        height: 6px;
    }
    .elementor-element-5a4f013 .e-con-inner::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    .elementor-element-5a4f013 .e-con-inner::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 10px;
    }
    .elementor-element-897a222 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        min-width: 100% !important;
        gap: 14px !important;
        align-items: stretch !important;
    }
    .elementor-element-897a222 > .e-con {
        flex: 0 0 155px !important;
        width: 155px !important;
        min-width: 155px !important;
        max-width: 155px !important;
        box-sizing: border-box !important;
        scroll-snap-align: start;
    }
    .elementor-element-897a222 > .elementor-element-d7829e4 {
        flex: 0 0 165px !important;
        width: 165px !important;
        min-width: 165px !important;
        max-width: 165px !important;
        scroll-snap-align: start;
    }
}


