/* ==========================================
   GLOBAL TEL ECONET - xAI MINIMALIST ULTRA-DARK SYSTEM
   Enhanced Contrast + Scroll Animations + Speed Test
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&display=swap');

:root {
    /* Light Mode Tokens (Default) — IMPROVED CONTRAST */
    --bg:           oklch(98% 0.01 280);
    --surface:      rgba(0, 0, 0, 0.03);
    --surface-warm: rgba(0, 0, 0, 0.05);
    --fg:           oklch(10% 0.04 280);
    --fg-2:         oklch(22% 0.02 280);
    --muted:        oklch(40% 0.02 280);
    --meta:         oklch(50% 0.02 280);
    --border:       rgba(0, 0, 0, 0.12);
    --border-soft:  rgba(0, 0, 0, 0.06);
    --border-focus: oklch(55% 0.18 196 / 0.5);
    
    --accent:        oklch(45% 0.18 196);
    --accent-glow:   oklch(55% 0.18 196 / 0.35);
    --accent-yellow: oklch(58% 0.16 85);
    --accent-yellow-glow: oklch(70% 0.16 85 / 0.3);
    
    --success:      #15803d;
    --warn:         #b45309;
    --danger:       #dc2626;

    /* Brand helpers */
    --whatsapp:     oklch(52% 0.17 145);
    
    --header-bg: rgba(250, 250, 250, 0.85);
    --header-bg-scrolled: rgba(250, 250, 250, 0.97);

    /* xAI Typography style */
    --font-display: "Geist Mono", ui-monospace, "SF Mono", "Roboto Mono", Menlo, Monaco, monospace;
    --font-body:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono:    "Geist Mono", ui-monospace, "SF Mono", "Roboto Mono", Menlo, Monaco, monospace;

    /* Spacing & Radii (xAI sharp edges for engineering look) */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    --transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    
    /* Focus */
    --focus-ring: 0 0 0 3px oklch(55% 0.18 196 / 0.5);
}

:root[data-theme="dark"] {
    /* Dark Mode Tokens — IMPROVED CONTRAST */
    --bg:           oklch(12% 0.04 280);
    --surface:      rgba(255, 255, 255, 0.04);
    --surface-warm: rgba(255, 255, 255, 0.06);
    --fg:           oklch(98% 0.005 280);
    --fg-2:         oklch(82% 0.01 280);
    --muted:        oklch(68% 0.02 280);
    --meta:         oklch(55% 0.02 280);
    --border:       rgba(255, 255, 255, 0.1);
    --border-soft:  rgba(255, 255, 255, 0.05);
    --border-focus: oklch(69% 0.18 196 / 0.5);
    
    --accent:        oklch(69% 0.18 196);
    --accent-glow:   oklch(69% 0.18 196 / 0.35);
    --accent-yellow: oklch(82% 0.16 85);
    --accent-yellow-glow: oklch(82% 0.16 85 / 0.3);
    
    --success:      #22c55e;
    --warn:         #eab308;
    --danger:       #ef4444;

    /* Brand helpers */
    --whatsapp:     oklch(62% 0.17 145);

    --header-bg: rgba(10, 11, 17, 0.75);
    --header-bg-scrolled: rgba(10, 11, 17, 0.97);
}


/* ==========================================
   BASE & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--fg);
    position: relative;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--muted);
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-focus);
}

/* ==========================================
   SCROLL-DRIVEN ANIMATIONS (Starlink/Motion style)
   ========================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* Slide from left */
[data-animate="slide-left"] {
    opacity: 0;
    transform: translateX(-60px);
}
[data-animate="slide-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
[data-animate="slide-right"] {
    opacity: 0;
    transform: translateX(60px);
}
[data-animate="slide-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
[data-animate="scale"] {
    opacity: 0;
    transform: scale(0.92);
}
[data-animate="scale"].is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Fade only */
[data-animate="fade"] {
    opacity: 0;
    transform: none;
}
[data-animate="fade"].is-visible {
    opacity: 1;
}

/* ==========================================
   NEBULA EFFECTS (GLOW BACKGROUNDS)
   ========================================== */
.nebula-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
}

.nebula-cyan {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.nebula-purple {
    background: radial-gradient(circle, oklch(50% 0.2 310) 0%, transparent 70%);
    bottom: 20%;
    left: -200px;
}

.nebula-yellow {
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    top: 40%;
    right: -200px;
    opacity: 0.15;
}

/* ==========================================
   UTILITY & INTERACTION CLASSES
   ========================================== */
.text-center { text-align: center; }
.text-teal { color: var(--accent); }
.text-yellow { color: var(--accent-yellow); }
.text-muted { color: var(--muted); }

/* Glassmorphism Panel */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 0px;
}

/* Custom Heading Layouts */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ==========================================
   BUTTONS (xAI UPPERCASE MONOSPACE)
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-teal {
    background: var(--accent);
    color: oklch(98% 0.005 280);
    border: 1px solid var(--accent);
}

.btn-teal:hover {
    background: oklch(74% 0.18 196);
    border-color: oklch(74% 0.18 196);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-yellow {
    background: var(--accent-yellow);
    color: oklch(10% 0.02 85);
    border: 1px solid var(--accent-yellow);
}

.btn-yellow:hover {
    background: oklch(86% 0.16 85);
    border-color: oklch(86% 0.16 85);
    box-shadow: 0 0 20px var(--accent-yellow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--border);
    color: var(--fg);
}

.btn-outline:hover {
    background: var(--border);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: -1px;
    padding-top: 1px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    background: var(--header-bg-scrolled);
    border-bottom: 1px solid var(--border-soft);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .navbar {
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 38px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--fg);
}

.nav-link.active {
    color: var(--fg);
}

.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--fg);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 0px;
    border: 1px solid var(--border);
    justify-content: center;
    align-items: center;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    padding-top: 170px;
    padding-bottom: 96px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.badge-highspeed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-warm);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 0px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-display);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-yellow);
    border-radius: 0px;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-yellow);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 30%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 16px;
    color: var(--fg-2);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 28px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 28px;
    font-weight: 400;
    color: var(--fg);
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.stat-lbl {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Hero Image & Orbital Frame */
.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-bg-effect {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border-radius: 0px;
    background: radial-gradient(circle, rgba(0, 168, 150, 0.15) 0%, rgba(234, 179, 8, 0.05) 100%);
    z-index: -1;
    border: 1px dashed var(--border);
    animation: rotate-orbit 40s linear infinite;
}

@keyframes rotate-orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-image-container {
    overflow: hidden;
    border-radius: 0px;
    border: 1px solid var(--border);
    position: relative;
}

.hero-image {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg);
    padding: 14px 20px;
    border-radius: 0px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.speed-card {
    top: 15%;
    left: -30px;
    border-left: 3px solid var(--accent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.users-card {
    bottom: 10%;
    right: -20px;
    border-left: 3px solid var(--accent-yellow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.speed-icon {
    width: 36px;
    height: 36px;
    border-radius: 0px;
    background: rgba(0, 168, 150, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid rgba(0, 168, 150, 0.2);
}

.speed-info {
    display: flex;
    flex-direction: column;
}

.speed-title {
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-display);
}

.speed-val {
    font-size: 16px;
    font-weight: 400;
    color: var(--fg);
    font-family: var(--font-display);
}

.users-avatars {
    display: flex;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 1px solid var(--border);
    margin-right: -4px;
    background: var(--surface-warm);
    color: var(--fg);
}

.users-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    margin-left: 8px;
}

/* ==========================================
   SECTION COMMON HEADER
   ========================================== */
.section-header {
    margin-bottom: 60px;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 500;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 300;
    color: var(--fg);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--fg-2);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */
.benefits-section {
    padding: 96px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--surface);
    padding: 40px 24px;
    border-radius: 0px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.benefit-card:hover {
    background: var(--surface-warm);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px var(--accent-glow);
    transform: translateY(-6px);
}

.benefit-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 0px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon-wrapper {
    background: var(--accent);
    color: oklch(98% 0.005 280);
    border-color: var(--accent);
}

.benefit-card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--fg);
    font-family: var(--font-display);
}

.benefit-card-text {
    font-size: 14px;
    color: var(--fg-2);
    line-height: 1.6;
}

/* Fibra badge for mes de regalo */
.fibra-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 168, 150, 0.1);
    color: var(--accent);
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-display);
    border: 1px solid rgba(0, 168, 150, 0.2);
    margin-top: 12px;
}

/* ==========================================
   URBAN & RURAL SERVICES
   ========================================== */
.urban-rural-services {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.urban-rural-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.urban-rural-service-card {
    background: linear-gradient(135deg, var(--surface) 0%, transparent 100%);
    padding: 32px 32px;
    border-radius: 0px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-yellow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.urban-rural-service-card:hover {
    border-color: var(--accent-yellow);
    background: linear-gradient(135deg, var(--surface-warm) 0%, transparent 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 15px var(--accent-yellow-glow);
    transform: translateY(-5px);
}

.urban-rural-service-icon-wrapper {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
}

.urban-rural-service-card:hover .urban-rural-service-icon-wrapper {
    background: var(--accent-yellow);
    color: oklch(10% 0.02 85);
    border-color: var(--accent-yellow);
}

.urban-rural-content {
    display: flex;
    flex-direction: column;
}

.urban-rural-service-card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--fg);
    font-family: var(--font-display);
}

.urban-rural-service-card-text {
    font-size: 14px;
    color: var(--fg-2);
    line-height: 1.6;
}

@media (max-width: 820px) {
    .urban-rural-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .urban-rural-services {
        padding: 64px 0;
    }
    .urban-rural-service-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 32px 24px;
    }
}

/* ==========================================
   SPEED TEST SECTION
   ========================================== */
.speedtest-section {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.speedtest-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.speedtest-intro {
    max-width: 700px;
    text-align: center;
}

.speedtest-intro p {
    color: var(--fg-2);
    font-size: 15px;
    line-height: 1.7;
    margin-top: 8px;
}

.speedtest-widget {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.speedtest-disclaimer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    max-width: 900px;
    width: 100%;
}

.disclaimer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.speedtest-disclaimer i {
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}

.speedtest-disclaimer p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.disclaimer-action {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .speedtest-disclaimer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .disclaimer-action {
        text-align: left;
    }
    .disclaimer-action .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 580px) {
    .speedtest-section {
        padding: 64px 0;
    }
    /* speedtest-widget iframe styles removed */
}

/* ==========================================
   PLANS SECTION
   ========================================== */
.plans-section {
    padding: 96px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    margin-top: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.plan-card {
    background: var(--surface);
    border-radius: 0px;
    border: 1px solid var(--border);
    padding: 48px 32px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: var(--border);
    background: var(--surface);
}

/* Popular Plan Highlight */
.plan-card.popular {
    background: linear-gradient(180deg, rgba(0, 168, 150, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.plan-card.popular:hover {
    background: linear-gradient(180deg, rgba(0, 168, 150, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: var(--accent);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: oklch(98% 0.005 280);
    padding: 4px 16px;
    border-radius: 0px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-display);
    border: 1px solid var(--accent);
}

.plan-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.plan-name {
    font-size: 24px;
    font-weight: 500;
    color: var(--fg);
    margin-bottom: 10px;
}

.plan-target {
    font-size: 14px;
    color: var(--fg-2);
    margin-bottom: 24px;
    min-height: 38px;
    line-height: 1.5;
}

.plan-price-wrapper {
    display: flex;
    align-items: baseline;
    font-family: var(--font-display);
}

.currency {
    font-size: 20px;
    font-weight: 400;
    color: var(--fg);
    margin-right: 4px;
}

.price {
    font-size: 48px;
    font-weight: 400;
    color: var(--fg);
    line-height: 1;
    letter-spacing: -0.02em;
}

.period {
    font-size: 14px;
    color: var(--muted);
    margin-left: 8px;
}

.plan-features {
    margin-bottom: 40px;
    flex-grow: 1;
}

.plan-features ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--fg-2);
}

.plan-features li i {
    color: var(--accent-yellow);
    font-size: 14px;
}

.plan-footer {
    margin-top: auto;
}

.plans-note {
    margin-top: 48px;
    font-size: 13px;
    color: var(--muted);
}

/* Cotizar card special styling */
.custom-plan-card.popular {
    text-align: center;
}

.custom-plan-card .plan-price-wrapper {
    justify-content: center;
}

.custom-plan-card .plan-features ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 580px) {
    .custom-plan-card .plan-features ul {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   INTERACTIVE SPEED EXPERIENCE SIMULATOR
   ========================================== */
.simulator-section {
    padding: 96px 0;
    border-top: 1px solid var(--border);
}

.simulator-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.simulator-slider-box {
    padding: 40px;
    background: var(--surface);
    border-radius: 0px;
    border: 1px solid var(--border);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.slider-speed-val {
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 400;
    color: var(--fg);
    font-family: var(--font-display);
}

.slider-speed-val span {
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
}

/* Speed Slider */
.speed-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: var(--meta);
    border: 1px solid var(--muted);
    outline: none;
    margin-bottom: 40px;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 26px;
    border-radius: 0px;
    background: var(--accent-yellow);
    cursor: pointer;
    border: 1px solid var(--accent-yellow);
    box-shadow: 0 0 10px var(--accent-yellow-glow);
    transition: var(--transition);
}

.speed-slider::-webkit-slider-thumb:hover {
    background: var(--fg);
    border-color: var(--fg);
    transform: scale(1.1);
}

.speed-slider::-moz-range-thumb {
    width: 18px;
    height: 26px;
    border-radius: 0px;
    background: var(--accent-yellow);
    cursor: pointer;
    border: 1px solid var(--accent-yellow);
    box-shadow: 0 0 10px var(--accent-yellow-glow);
    transition: var(--transition);
}

.speed-slider::-moz-range-thumb:hover {
    background: var(--fg);
    border-color: var(--fg);
    transform: scale(1.1);
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 0px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.activity-item.active {
    background: rgba(0, 168, 150, 0.05);
    border-color: var(--accent);
}

.activity-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.activity-icon {
    font-size: 16px;
    color: var(--fg);
    width: 32px;
    height: 32px;
    border-radius: 0px;
    background: var(--surface-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.activity-item.active .activity-icon {
    background: var(--accent);
    color: oklch(98% 0.005 280);
    border-color: var(--accent);
}

.activity-name {
    font-weight: 500;
    font-size: 14px;
}

.activity-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 0px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-display);
}

.status-optimal {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.status-good {
    background: rgba(234, 179, 8, 0.12);
    color: var(--warn);
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.status-poor {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.25);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
    padding: 96px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 0px;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 15px var(--accent-glow);
}

.stars {
    color: var(--accent-yellow);
    margin-bottom: 20px;
    font-size: 12px;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--fg-2);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 500;
    font-family: var(--font-display);
    font-size: 15px;
}

.user-role {
    font-size: 12px;
    color: var(--muted);
}

/* ==========================================
   CONTACT & FORM SECTION
   ========================================== */
.contact-section {
    padding: 96px 0;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-text {
    font-size: 16px;
    color: var(--fg-2);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 0px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.contact-detail-item:hover .detail-icon {
    background: var(--accent);
    color: oklch(98% 0.005 280);
    border-color: var(--accent);
}

.contact-detail-item:nth-child(1) .detail-icon {
    color: var(--fg);
}
.contact-detail-item:nth-child(1):hover .detail-icon {
    background: var(--whatsapp);
    color: oklch(98% 0.005 280);
    border-color: var(--whatsapp);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-display);
}

.detail-link {
    font-size: 18px;
    font-weight: 400;
    color: var(--fg);
    font-family: var(--font-display);
}

.detail-link:hover {
    color: var(--accent);
}

.detail-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--fg);
    font-family: var(--font-display);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: var(--surface);
    border-radius: 0px;
    border: 1px solid var(--border);
    padding: 48px;
}

.form-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-2);
    letter-spacing: 0.02em;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    transition: var(--transition);
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0px;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

.form-input:focus {
    background: var(--surface-warm);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.form-input:focus + .input-icon {
    color: var(--accent);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    padding-left: 16px;
}

/* Error States */
.error-msg {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.form-group.error .form-input {
    border-color: var(--danger);
}

.form-group.error .error-msg {
    display: block;
}

/* Form Success Frame */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0;
}

.form-success.active {
    display: flex;
    animation: fade-in 0.3s ease forwards;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 0px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.success-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
}

.success-text {
    font-size: 15px;
    color: var(--fg-2);
    margin-bottom: 24px;
    max-width: 360px;
    line-height: 1.6;
}

.contact-form.hidden {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 64px;
}

.brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    font-size: 13px;
    color: var(--fg-2);
    line-height: 1.6;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 0px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--fg);
}

.social-links a:hover {
    background: var(--accent);
    color: oklch(98% 0.005 280);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-display);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-links span {
    font-size: 13px;
    color: var(--fg-2);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

/* ==========================================
   RESPONSIVE DESIGN Breakpoints
   ========================================== */

/* Tablet Viewports */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 440px;
        margin: 0 auto;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .simulator-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-info {
        position: static;
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Mobile Navigation Trigger */
@media (max-width: 820px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: oklch(12% 0.04 280);
        transition: var(--transition);
        padding: 40px;
        border-top: 1px solid var(--border);
    }
    
    .header.scrolled .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .nav-menu ul li a {
        font-size: 18px;
        font-family: var(--font-display);
        color: oklch(90% 0.01 280);
    }
    
    .nav-actions .btn:not(#theme-toggle) {
        display: none;
    }
}

/* Mobile Viewports */
@media (max-width: 580px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding-top: 120px;
        padding-bottom: 64px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .floating-card {
        padding: 10px 14px;
    }
    
    .speed-card {
        left: -10px;
        top: 10%;
    }
    
    .users-card {
        right: -10px;
        bottom: 5%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .simulator-slider-box {
        padding: 24px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
    pointer-events: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba56;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-bubble {
    background-color: var(--surface);
    color: var(--fg);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateX(20px);
    animation: slideInBubble 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 4s forwards;
    pointer-events: auto;
    position: relative;
}

/* Small triangle pointing right */
.whatsapp-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--border);
}

.whatsapp-bubble::before {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--surface);
    z-index: 1;
}

@keyframes slideInBubble {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 820px) {
    .whatsapp-float-container {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .whatsapp-bubble {
        display: none;
    }
}

/* ==========================================================================
   Starlink Coverage Section
   ========================================================================== */

.coverage-section {
    padding: 100px 0;
    background-color: var(--bg-1);
    position: relative;
    overflow: hidden;
}

.coverage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-2);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.coverage-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(30, 215, 96, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.coverage-content p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.coverage-form {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.coverage-form .input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.coverage-form .input-group i {
    position: absolute;
    left: 20px;
    color: var(--muted);
    font-size: 1.1rem;
}

.coverage-form input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-1);
    color: var(--fg-1);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.coverage-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.1);
}

.coverage-form button {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
    height: 54px;
    border-radius: 12px;
}

.coverage-note {
    font-size: 0.9rem !important;
    color: var(--accent) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
}

/* Coverage Map */
.coverage-visual {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

#coverage-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Fix for dark mode map tiles */
[data-theme="dark"] #coverage-map .leaflet-tile {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Coverage section responsive */
@media (max-width: 992px) {
    .coverage-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .coverage-visual {
        grid-row: 1;
        height: 300px;
    }
    
    .coverage-form {
        flex-direction: column;
    }
    
    .coverage-form button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .coverage-container {
        padding: 30px 20px;
    }
}

/* Map Legend Styles */
.map-legend {
    background: var(--bg-2);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--fg-1);
    z-index: 1000;
}

.map-legend h4 {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.legend-scale {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legend-gradient {
    height: 10px;
    width: 240px;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.9));
    border-radius: 4px;
    display: block;
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
}
