:root {
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    /* Apple Blue */
    --accent-hover: #0077ed;
    --border-color: #d2d2d7;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-color: #000000;
    --bg-secondary: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent-color: #0a84ff;
    --accent-hover: #0077ed;
    --border-color: #38383a;
    --glass-bg: rgba(28, 28, 30, 0.8);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Logo & Icon Fixes */
[data-theme="dark"] .logo img,
[data-theme="dark"] .footer-logo,
[data-theme="dark"] .footer-col a img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    /* 17px equivalent */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 54px;
    /* Apple nav height */
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.nav-content {
    width: 100%;
    max-width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 24px;
    width: auto;
    /* Match social icons style: Grayscale and slightly faded */
    filter: grayscale(100%);
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 0.95rem;
    /* ~12px in Apple logic, but let's go clearer */
}

.nav-links a {
    color: var(--text-primary);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Floating Payment Button */
.floating-pay-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #0063FF;
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 99, 255, 0.5);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floating-pulse 2s infinite;
}

.floating-pay-btn:hover {
    transform: scale(1.05) translateY(-5px);
    color: white !important;
}

/* Pulse Animation for Floating Btn */
@keyframes floating-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 99, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 99, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 99, 255, 0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    /* Pill shape */
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    color: var(--accent-color);
    background: transparent;
}

.btn-secondary:hover {
    text-decoration: underline;
}

/* Pago en Línea Button */
.btn-pulse {
    background: #0063FF;
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    animation: glow-pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

/* Shine Light Effect */
.btn-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 99, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 20px 0 rgba(0, 99, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 99, 255, 0);
    }
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* Hero */
/* Hero */
.hero {
    height: 900px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 150px;
    position: relative;
    overflow: hidden;
    /* Rounded bottom corners */
    border-radius: 0 0 50px 50px;
    /* Background logic moved to carousel */
    color: white;
    /* Force white text on image */
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    padding-bottom: 0;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Try to force high quality rendering */
}

.hero-slide.active {
    opacity: 1;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);

}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections */
section {
    padding: 80px 20px;
    max-width: 95%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Promo Banner */
/* Promo Banner */
.promo-banner {
    width: 95%;
    /* Match standard section width */
    max-width: 1400px;
    /* Optional cap for very large screens */
    margin: 40px auto;
    /* Separation from Hero */
    padding: 80px 40px;
    background: url('../assets/promo_banner_premium.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 24px;
    /* Rounded corners like Pricing */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow for depth */
    /* Force full width background override removed */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.4);
}

.promo-content {
    background: transparent;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    /* Text on left or center? User said "cintillo", wide stripe. */
    align-items: center;
}

.promo-text {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.promo-text h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.promo-text p {
    color: #1d1d1f;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.promo-text strong {
    color: #1d1d1f;
    font-weight: 700;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 95%;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.price-card {
    background: #1d1d1f;
    /* Dark background for ALL */
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.price-card.featured {
    border: 1px solid var(--accent-color);
    /* Just add accent border */
}

/* Ensure text is white for all */
.price-card h3,
.price-card .price,
.price-card li {
    color: white;
}

.price-card .price-ctx {
    color: rgba(255, 255, 255, 0.6);
}

.price-card .features li::before {
    color: var(--accent-color);
    /* Stickwick to accent checkmark */
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0 0;
}

.price-ctx {
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.features {
    text-align: left;
    margin-bottom: 40px;
    margin-top: 20px;
}

.features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.features li::before {
    content: "✓";
    margin-right: 10px;
    color: var(--accent-color);
    font-weight: bold;
}

/* Coverage */
.coverage {
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 24px;
    margin: 60px auto;
    padding: 80px 40px;
}

.coverage-check {
    margin: 40px auto;
    max-width: 500px;
    display: flex;
    gap: 10px;
}

.coverage-check input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    outline: none;
}

.coverage-check input:focus {
    border-color: var(--accent-color);
}

.map-container {
    width: 100%;
    height: 400px;
    /* Increased height for better view */
    background: #e5e5ea;
    border-radius: 18px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Ensure map is below navbar */
}

.node-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Features/Why Us */
.features-section {
    text-align: center;
    padding-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
    /* Ensure card takes full height of grid cell if needed, though grid handles it */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.feature-image {
    width: 100%;
    height: 400px;
    /* Increased height for full visual impact */
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
    /* Slightly subtle zoom */
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

details {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

summary {
    font-weight: 600;
    list-style: none;
    /* Hide default triangle */
    position: relative;
    padding-right: 30px;
}

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1rem;
}

details[open] summary::after {
    content: "−";
}

details p {
    margin-top: 15px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 60px 20px 20px;
    font-size: 0.8rem;
}

.footer-content {
    max-width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 30px;
    margin-bottom: 20px;
    filter: grayscale(100%);
    opacity: 0.7;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer Contact Icons */
.footer-col a img {
    width: 28px;
    /* Increased from 20px */
    height: auto;
    filter: grayscale(100%);
    /* Grayscale to match text */
    opacity: 0.7;
    /* Slightly fade to match text color */
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-right: 8px;
    /* Slightly more space */
}

.footer-col a:hover img {
    filter: grayscale(0%);
    /* Restore color on hover */
    opacity: 1;
    transform: scale(1.1);
}

.footer-bottom {
    max-width: 980px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    color: var(--text-secondary);
    text-align: center;
}

/* Floating Btn */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: transform 0.3s;
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .pricing-grid,
    .features-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
    }

    /* Burger Animation */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}