:root {
    --orange: #F26300;
    --orange-dark: #cc5400;
    --orange-glow: rgba(242, 99, 0, 0.4);
    --sidebar-width: 260px;
    --sidebar-mini-width: 76px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== TEMA (claro/oscuro) ===== */
    --bg: #000000;
    --text: #ffffff;
    --section-bg: #0b0b0b;
    --muted-text: rgba(255, 255, 255, 0.6);
    --faint-text: rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] {
    --bg: #f3f4f6;
    --text: #14171c;
    --section-bg: #ffffff;
    --muted-text: rgba(20, 23, 28, 0.6);
    --faint-text: rgba(20, 23, 28, 0.4);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== SCROLL SNAP ===== */
html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

input, button, select, textarea {
    font-family: inherit;
}

/* ===== PUSH LAYOUT ===== */
#mainContent {
    margin-left: var(--sidebar-mini-width);
    transition: margin-left 0.38s var(--ease);
}

body.sidebar-expanded #mainContent {
    margin-left: var(--sidebar-width);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-mini-width);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 200;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    transition: width 0.38s var(--ease), left 0.38s var(--ease);
}

body.sidebar-expanded .sidebar { width: var(--sidebar-width); }

.sidebar-header {
    padding: 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.sidebar-logo-wrap {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.sidebar-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-logo-mini { height: 36px; max-width: 44px; }
.sidebar-logo-full { display: none; }

body.sidebar-expanded .sidebar-logo-mini { display: none; }
body.sidebar-expanded .sidebar-logo-full {
    display: block;
    height: 46px;
    width: 100%;
    max-width: 200px;
    object-position: left center;
}

body.sidebar-expanded .sidebar-header { justify-content: flex-start; padding: 20px 18px; }

/* Botón de expandir/colapsar */
.sidebar-collapse-btn {
    position: absolute;
    top: 24px;
    left: var(--sidebar-mini-width);
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--orange);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 201;
    transition: left 0.38s var(--ease), transform 0.38s var(--ease), background 0.2s;
}

.sidebar-collapse-btn:hover { background: var(--orange); color: #fff; }

body.sidebar-expanded .sidebar-collapse-btn {
    left: var(--sidebar-width);
}

/* Nav — botones pill flotantes */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(242,99,0,0.3);
    border-radius: 2px;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav .nav-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 13px 0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #eeeeee;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: background 0.22s, color 0.22s, border-color 0.22s,
                box-shadow 0.22s, transform 0.22s, justify-content 0.1s, padding 0.22s;
}

body.sidebar-expanded .sidebar-nav .nav-pill {
    justify-content: flex-start;
    gap: 14px;
    padding: 13px 18px;
}

.sidebar-nav a.nav-pill:hover,
.sidebar-nav li.active .nav-pill {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    box-shadow: 0 4px 14px var(--orange-glow);
    transform: translateX(4px);
}

.nav-icon {
    width: 28px;
    text-align: center;
    font-size: 18px;
    color: var(--orange);
    flex-shrink: 0;
    transition: color 0.22s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-img {
    width: 19px;
    height: 19px;
    object-fit: contain;
    display: block;
    transition: filter 0.22s;
}

.nav-label {
    display: none;
    white-space: nowrap;
}

body.sidebar-expanded .nav-label { display: inline; }

.sidebar-nav a.nav-pill:hover .nav-icon,
.sidebar-nav li.active .nav-icon { color: #fff; }

.sidebar-nav a.nav-pill:hover .nav-icon-img,
.sidebar-nav li.active .nav-icon-img { filter: brightness(0) invert(1); }

.sidebar-nav li.cbplay .nav-pill {
    background: rgba(242,99,0,0.07);
    border-color: rgba(242,99,0,0.25);
    color: var(--orange);
    font-weight: 600;
}

.sidebar-nav li.cbplay a.nav-pill:hover,
.sidebar-nav li.cbplay.active .nav-pill {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.sidebar-nav li.cbplay .nav-icon { color: var(--orange); }

/* Social */
.sidebar-social {
    display: flex;
    flex-direction: column;
    padding: 16px 10px 22px;
    border-top: 1px solid #f0f0f0;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.sidebar-expanded .sidebar-social {
    flex-direction: row;
    padding: 16px 16px 22px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    transition: background 0.22s, color 0.22s, border-color 0.22s,
                transform 0.22s, box-shadow 0.22s;
}

.social-btn:hover {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px var(--orange-glow);
}

.theme-toggle {
    cursor: pointer;
}

/* ===== TOGGLE BUTTON ===== */
.sidebar-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1100;
    width: 46px;
    height: 46px;
    background: var(--orange);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    box-shadow: 0 4px 20px var(--orange-glow);
    transition: left 0.38s var(--ease), background 0.2s;
}

.sidebar-toggle:hover { background: var(--orange-dark); }

@media (min-width: 769px) {
    .sidebar-toggle { display: none; }
}

.sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.32s var(--ease), opacity 0.2s ease;
    transform-origin: center;
}

.sidebar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sidebar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== OVERLAY móvil ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* ===== HERO — CARRUSEL HORIZONTAL DE LAS 3 IMÁGENES ===== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hero-track::-webkit-scrollbar { display: none; }

.snap-section {
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Flechas del hero */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
}

.hero-arrow:hover {
    background: var(--orange);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.section-fullscreen picture,
.section-fullscreen picture img {
    width: 100%;
    height: 100%;
    display: block;
}

.section-fullscreen picture img {
    object-fit: cover;
    object-position: center top;
    /* Animación de entrada */
    transform: scale(1.05);
    opacity: 0.5;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity  0.7s ease;
    will-change: transform, opacity;
}

.snap-section.in-view picture img {
    transform: scale(1);
    opacity: 1;
}

/* ===== BARRA DE CONDICIONES (dentro del slide 1) ===== */
.planes-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 2px solid var(--orange);
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.planes-bar-highlight {
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.2px;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 72px;   /* por encima de la barra de condiciones */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.8);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.scroll-hint i {
    font-size: 18px;
    color: var(--orange);
    animation: bounce 1.8s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== PUNTOS DE NAVEGACIÓN ===== */
.slide-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.3);
}

.dot.active {
    background: var(--orange);
    transform: scale(1.5);
    box-shadow: 0 0 8px var(--orange-glow);
}

/* ===== SECCIÓN NUESTROS PLANES ===== */
.section-planes {
    background:
        radial-gradient(ellipse 60% 50% at 10% 50%, rgba(242,99,0,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 90% 50%, rgba(242,99,0,0.07) 0%, transparent 70%),
        var(--section-bg);
    padding: 80px 40px;
}

.planes-header {
    text-align: center;
    margin-bottom: 52px;
}

.planes-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1.1;
}

.planes-sub {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--orange);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

/* ---- Grilla responsive (sin scroll) ---- */
.plans-carousel {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
}

.plans-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding: 4px;
}

/* ---- Card ---- */
.plan-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
    flex: 0 0 290px;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.plan-card.featured {
    box-shadow: 0 6px 20px rgba(242,99,0,0.2);
}

/* Foto (incluye nombre, megas y precio) */
.plan-photo-wrap {
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background: #f3f4f6;
}

.plan-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.plan-card:hover .plan-photo { transform: scale(1.04); }

/* Etiqueta Prepago/Pospago */
.plan-modality {
    display: inline-block;
    margin: 16px 22px 0;
    padding: 4px 14px;
    background: #FFF3E8;
    color: var(--orange);
    border: 1px solid rgba(242,99,0,0.25);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Features */
.plan-features {
    flex: 1 1 auto;
    list-style: none;
    padding: 16px 22px 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
}

.plan-features li .fa-check-circle {
    color: #6B21A8;
    font-size: 16px;
    flex-shrink: 0;
}

/* TV Addon */
.plan-tv {
    margin: 0 16px 16px;
    background: #FFF3E8;
    border: 1px solid rgba(242,99,0,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 9px;
}

.plan-tv .fa-tv { color: var(--orange); font-size: 14px; }

/* CTA */
.plan-cta {
    display: block;
    flex-shrink: 0;
    margin: 0 16px 20px;
    padding: 13px;
    background: var(--orange);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
    box-shadow: 0 4px 16px var(--orange-glow);
}

.plan-cta:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--orange-glow);
}

/* Nota al pie */
.planes-footnote {
    text-align: center;
    margin-top: 44px;
    font-size: 12px;
    color: var(--faint-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Flechas de navegación (carrusel planes y promociones) */
.plans-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--orange);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--orange-glow);
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}

.plans-arrow:hover {
    background: var(--orange-dark);
    transform: translateY(-50%) scale(1.08);
}

.plans-arrow-prev { left: -8px; }
.plans-arrow-next { right: -8px; }

/* La grilla de planes ya no es un carrusel: oculta solo sus flechas */
.plans-carousel > .plans-arrow { display: none; }

/* ===== SECCIÓN PROMOCIONES ===== */
.section-promos {
    background: var(--section-bg);
    padding: 80px 40px 90px;
}

.promos-carousel {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
}

.promos-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.promo-slide {
    flex: 0 0 100%;
    min-width: 100%;
    overflow: hidden;
}

.promo-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop: grid 2 columnas, sin carousel */
@media (min-width: 769px) {
    .promos-track {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        transform: none !important;
        transition: none;
    }
    .promo-slide {
        flex: none;
        min-width: 0;
        border-radius: 16px;
        overflow: hidden;
    }
    .promo-dots { display: none; }
}

/* Dots de navegación (solo móvil) */
.promo-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 0 0;
}

.promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(128,128,128,0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s, width 0.3s;
    outline: none;
}

.promo-dot:hover { background: rgba(242,99,0,0.5); }

.promo-dot.active {
    background: var(--orange);
    transform: scale(1.35);
    width: 22px;
    border-radius: 4px;
}

/* ===== HERO / BREADCRUMB DE PÁGINA ===== */
.page-hero {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.page-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== SECCIÓN SERVICIOS (botones centrales) ===== */
.services-section {
    padding: 60px 24px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.service-btn {
    flex: 0 0 220px;
    background: #fff;
    border-radius: 18px;
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    text-decoration: none;
    color: #1f2937;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(242,99,0,0.1);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: background 0.25s, color 0.25s;
}

.service-name {
    font-size: 15px;
    font-weight: 700;
}

.service-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--orange-glow);
    background: var(--orange);
    color: #fff;
}

.service-btn:hover .service-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

@media (max-width: 768px) {
    .service-btn { flex: 0 0 100%; max-width: 320px; padding: 28px 20px; }
}

/* ===== PÁGINA PLACEHOLDER ===== */
.page-placeholder {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 120px 24px 80px;
}

.page-placeholder h1 {
    font-size: 32px;
    font-weight: 800;
}

.page-placeholder p {
    color: var(--muted-text);
    font-size: 15px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #fff;
    color: #1f2937;
    padding: 0;
}

.footer-contact {
    background: var(--orange);
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #fff;
}

.footer-contact-label {
    font-size: 18px;
    font-weight: 700;
}

.footer-contact-phone {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.footer-columns {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 24px 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-bottom p {
    font-size: 12.5px;
    color: #9ca3af;
}

/* Crédito de desarrollo — casi imperceptible sobre el fondo blanco */
.footer-bottom p.footer-powered {
    font-size: 10px;
    color: #1f2937;
    opacity: 0.05;
    margin-top: 2px;
    letter-spacing: 0.4px;
    transition: opacity 0.25s ease;
}

.footer-bottom p.footer-powered a {
    color: inherit;
    text-decoration: none;
}

/* Al pasar el cursor se vuelve legible, para que el enlace sea usable */
.footer-bottom p.footer-powered:hover {
    opacity: 0.55;
}

.footer-bottom p.footer-powered:hover a {
    text-decoration: underline;
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 768px) {
    #mainContent,
    body.sidebar-expanded #mainContent { margin-left: 0; }

    .sidebar,
    body.sidebar-expanded .sidebar {
        left: calc(-1 * var(--sidebar-width));
        width: var(--sidebar-width);
        z-index: 9500; /* por encima de top bar (8500) y bottom tabs (9000) */
    }

    .sidebar-overlay { z-index: 9400; }

    .sidebar.active { left: 0; }

    .sidebar-collapse-btn { display: none; }

    /* Logo en el header del sidebar — visible en móvil (sidebar está por encima del top bar) */
    .sidebar-header { display: flex; }
    .sidebar-logo-mini { display: none; }
    .sidebar-logo-full { display: block; }

    /* Nav sin padding extra — el header ya da separación */
    .sidebar-nav { padding-top: 8px; }

    .sidebar-nav .nav-pill { justify-content: flex-start; gap: 14px; padding: 13px 18px; }
    .nav-label { display: inline; }
    .sidebar-social { flex-direction: row; padding: 16px 16px 22px; }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    .sidebar-toggle {
        display: flex;
        top: 14px;
        left: 14px;
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .slide-dots { right: 10px; }
    .scroll-hint { bottom: 26px; }

    /* ===== HERO RESPONSIVE: imagen completa sin recorte en móvil ===== */
    .hero-carousel {
        height: auto;
        min-height: unset;
        overflow: hidden;
    }
    .hero-track {
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
    }
    .snap-section {
        flex: 0 0 100vw;
        width: 100vw;
        height: auto;
        scroll-snap-align: start;
    }
    .section-fullscreen picture {
        display: block;
        width: 100%;
    }
    .section-fullscreen picture img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: initial;
        display: block;
        transform: none !important;
        opacity: 1 !important;
    }
    .snap-section.in-view picture img {
        transform: none;
        opacity: 1;
    }
    .scroll-hint { display: none; }
    .slide-dots { display: none; }

    .section-planes { padding: 60px 20px; }
    .section-promos { padding: 40px 16px 60px; }
    .planes-title { font-size: 30px; }
    .promos-carousel { border-radius: 14px; }

    .plans-grid { flex-direction: column; align-items: stretch; }
    .plan-card { flex: 0 0 auto; width: 100%; max-width: 380px; margin: 0 auto; }

    .plans-arrow,
    .hero-arrow { display: none; }

    .footer-contact { padding: 18px 24px; flex-direction: column; gap: 8px; }
    .footer-columns { grid-template-columns: 1fr; gap: 32px; padding: 44px 28px; }
    .footer-bottom { padding: 20px 24px 28px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .plan-card { flex: 0 0 280px; }
    .section-planes { padding: 60px 24px; }
    .section-promos { padding: 60px 24px 80px; }
}

/* ===== BANNER RESPONSIVE: imagen completa ===== */
.page-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 60vw;
}
@media (max-width: 768px) {
    .page-hero img {
        max-height: none;
        height: auto;
        object-fit: contain;
    }
}

/* ===== BOTTOM TABS (mobile app style) ===== */
.bottom-tabs {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9000;
    transition: filter 0.3s ease, opacity 0.3s ease;
    background: var(--bg, #000);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
html[data-theme="light"] .bottom-tabs {
    background: #fff;
    border-top-color: rgba(0,0,0,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.bottom-tabs-inner {
    display: flex;
    align-items: stretch;
}
.btab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 11px;
    text-decoration: none;
    color: var(--muted-text);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: color .2s;
    min-width: 0;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    position: relative;
}
.btab i { font-size: 20px; line-height: 1; }
.btab.active, .btab:hover { color: var(--orange); }
.btab.active::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 2.5px;
    background: var(--orange);
    border-radius: 0 0 3px 3px;
}
/* CTA tab special style */
.btab-cta {
    background: var(--orange);
    color: #fff !important;
    border-radius: 12px;
    margin: 6px 4px;
    padding: 7px 8px;
    flex: 0 0 auto;
    width: 64px;
}
.btab-cta i { font-size: 22px; }
.btab-cta::after { display: none; }

/* Blur en bottom tabs cuando el sidebar está abierto */
body.sidebar-open .bottom-tabs {
    filter: blur(5px);
    opacity: 0.25;
    pointer-events: none;
}

@media (max-width: 768px) {
    .bottom-tabs { display: block; }
    /* Espacio para los bottom tabs — solo uno de los dos mecanismos */
    body { padding-bottom: 68px; }
    /* Ocultar solo el logo del footer en móvil */
    .footer-logo { display: none; }
    /* Breadcrumb: push below the hamburger */
    .page-hero .breadcrumb,
    .cot-breadcrumb,
    .jobs-breadcrumb,
    .page-hero-text { padding-top: 56px; }
    /* Ensure hero sections clear fixed top bar */
    .cot-hero, .jobs-hero { min-height: 180px; }
}

/* ===== FLOATING TOP NAV BAR (mobile) ===== */
.top-mobile-bar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 54px;
    z-index: 8500;
    background: var(--bg, #000);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
html[data-theme="light"] .top-mobile-bar {
    background: rgba(255,255,255,0.96);
    border-bottom-color: rgba(0,0,0,0.07);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* Hamburguesa integrada en el top bar */
.tmb-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}
.tmb-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text, #fff);
    border-radius: 2px;
    transition: transform .3s, opacity .2s;
}
.tmb-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tmb-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.tmb-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tmb-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 1;            /* toma el espacio disponible, logo queda a la izq */
    min-width: 0;
}
.top-mobile-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
    max-width: 160px;
}

.top-mobile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.top-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    flex-shrink: 0;
}
.top-mobile-btn-cta {
    width: auto;
    padding: 0 14px;
    background: var(--orange) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    font-family: inherit;
    border-radius: 8px;
    height: 36px;
}

@media (max-width: 768px) {
    .top-mobile-bar { display: flex; }
    /* Reset del margen del sidebar — en mobile el sidebar está fuera de pantalla */
    #mainContent {
        margin-left: 0 !important;
        padding-top: 54px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    /* Ocultar el toggle flotante desktop en móvil (usamos el del top bar) */
    .sidebar-toggle-desktop { display: none !important; }
}

/* ── Ocultar widget externo turnkey-credit ── */
#turnkey-credit { display: none !important; }

/* ── Logo adaptativo claro/oscuro ── */
.logo-adaptive      { display: block; }
.logo-adaptive-dark { display: none; }
[data-theme="dark"] .logo-adaptive      { display: none !important; }
[data-theme="dark"] .logo-adaptive-dark { display: block !important; }
