/* V5 ULTRA — mobile-only pixel tuning without affecting desktop or LTE/Fija desktop */

@media (max-width: 768px) {
  /* ── Mobile home: hide desktop pills, show mobile pills below alert bar ── */
  body.page-home .nav-links-desktop { display: none !important; }
  body.page-home .nav-links-mobile {
    display: flex !important; justify-content: center; padding: 10px 0 8px;
    background: #F8F8F9;
  }
  body.page-home .nav-links-mobile .nav-top-link {
    font: 700 15px/1 'Lexend', sans-serif !important; color: #0092BC !important;
    text-decoration: none; border-radius: 999px; padding: 8px 24px;
  }
  body.page-home .nav-links-mobile .nav-top-link.active {
    background: #0092BC !important; color: #fff !important;
  }
  /* Wrap mobile pills in toggle container — PP-1 Figma 5552:649 (264x45) */
  body.page-home .nav-links-mobile {
    margin: 0 auto; width: 264px; height: 45px; padding: 3px; gap: 0 !important;
    background: #fff; border: 1px solid #D9DEE8; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(33,71,128,.08);
    justify-content: space-between; align-items: center;
  }
  body.page-home .nav-links-mobile .nav-top-link {
    border-radius: 999px; flex: 1; display: flex !important; justify-content: center;
    align-items: center; height: 100%; padding: 0 !important; text-align: center;
  }

  :root {
    --etb-mobile-side: 16px;
    --etb-mobile-radius: 16px;
    --etb-mobile-blue: #214780;
    --etb-mobile-cyan: #0092BC;
  }

  body { overflow-x: hidden; }

  /* Navbar / general top rhythm */
  body.page-plans .etb-navbar,
  body.page-checkout .etb-navbar,
  body.page-thanks .etb-navbar {
    min-height: 92px;
  }

  /* 1.2.0.1 + 1.2.0.2 hero */
  .plans-hero {
    min-height: auto !important;
  }
  .plans-hero-content {
    padding: 34px var(--etb-mobile-side) 28px !important;
  }
  .plans-hero h1,
  .plans-hero-title {
    font-size: 28px !important;
    line-height: 1.08 !important;
    margin-bottom: 10px !important;
  }
  .plans-hero p,
  .plans-hero-subtitle {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
  .plans-hero input,
  .plans-hero .hero-input,
  .plans-hero .address-input {
    height: 46px !important;
    border-radius: 12px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 14px !important;
  }

  /* No-address explainer and FAQ */
  #faq-noaddr, #faq-bottom, #movil-faq { gap: 10px !important; }
  .plans-faq-item,
  .plans-faq-item:hover,
  .plans-faq-item:focus-within,
  .plans-faq-item.active {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1.5px solid #e5e7eb !important;
  }
  .plans-faq-header {
    min-height: 62px !important;
    padding: 18px 22px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    /* Match item border-radius so hover bg is clipped correctly */
    border-radius: 16px !important;
  }
  .plans-faq-item.active .plans-faq-header {
    border-radius: 16px 16px 0 0 !important;
  }
  .plans-faq-panel .accordion-content, .accordion-content {
    font-size: 13px !important;
    line-height: 1.5 !important;
    padding: 0 22px 18px !important;
  }
  /* Home FAQ mobile */
  .faq-card { overflow: hidden !important; }
  .faq-trigger { border-radius: 16px !important; }
  .faq-card:has(.faq-panel.open) .faq-trigger { border-radius: 16px 16px 0 0 !important; }

  /* 1.2.0.2 plans carousel */
  .bg-\[\#F8F8F9\].py-10.px-4 {
    padding: 24px 0 10px !important;
  }
  .bg-\[\#F8F8F9\].py-10.px-4 .section-title {
    font-size: 22px !important;
    line-height: 1.08 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 310px;
  }
  #plans-carousel-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  #plans-carousel-wrap > button { display: none !important; }
  #plans-carousel-wrap > div {
    overflow: visible !important;
    padding: 0 !important;
  }
  #plans-carousel {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc((100vw - 78vw) / 2);
    padding: 8px calc((100vw - 78vw) / 2) 10px !important;
    transform: none !important;
    -webkit-overflow-scrolling: touch;
  }
  #plans-carousel::-webkit-scrollbar { display: none; }
  #plans-carousel > div {
    width: 78vw !important;
    min-width: 78vw !important;
    max-width: 296px;
    padding: 0 !important;
    scroll-snap-align: center;
    transition: transform .28s ease, opacity .28s ease;
  }
  #plans-carousel > div.is-active { transform: scale(1); z-index: 2; }
  #plans-carousel > div:not(.is-active) { transform: scale(.86); opacity: .72; }
  .plan-card-redesign {
    min-height: 346px !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 18px rgba(33,71,128,.10) !important;
    padding: 18px 18px 16px !important;
    transform: none !important;
  }
  .plan-card-redesign.active {
    box-shadow: 0 10px 24px rgba(33,71,128,.16) !important;
  }
  .plan-card-price { font-size: 32px !important; line-height: 1 !important; }
  .plan-card-price-unit { font-size: 14px !important; }
  .plan-card-btn-outline, .plan-card-btn {
    height: 44px !important;
    font-size: 15px !important;
    border-radius: 999px !important;
    width: 100% !important;
  }

  /* Mobile pagination dots injected by JS */
  .v5-carousel-dots {
    display: flex; justify-content: center; gap: 8px; padding: 8px 0 2px;
  }
  .v5-carousel-dot {
    width: 10px; height: 10px; border-radius: 999px; background: #9ca3af; border: 0; padding: 0;
  }
  .v5-carousel-dot.is-active { width: 20px; background: var(--etb-mobile-blue); }

  /* Shared checkout mobile rhythm */
  .co-stepper { padding: 22px 20px 8px !important; gap: 12px !important; }
  .co-step { width: 32px !important; height: 32px !important; font-size: 18px !important; }
  .co-line { width: 48px !important; height: 4px !important; border-radius: 999px !important; }
  .s1-wrap, .s2-wrap, .s3-wrap { padding-bottom: 124px !important; }
  .s1-inner, .s2-inner, .s3-inner { padding-left: 14px !important; padding-right: 14px !important; }
  .s1-title, .s2-title, .s3-title { font-size: 22px !important; line-height: 1.06 !important; }

  /* Floating bar card-like mobile without desktop impact */
  .fb-wrap {
    left: 14px !important; right: 14px !important; bottom: 12px !important;
    border-top: 0 !important; border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(33,71,128,.16) !important;
  }
  .fb-inner { padding: 12px 16px !important; gap: 12px !important; }
  .fb-avatar { display: none !important; }
  .fb-price { font-size: 18px !important; }
  .fb-btn { min-width: 136px; justify-content: center; padding: 13px 22px !important; }
  .fb-spacer { height: 108px !important; }

  /* 1.2.5 — FIJA agenda inside checkout_step3 */
  .s3-subtitle { margin: 10px 0 22px !important; font-size: 14px !important; }
  .s3-date-title, .s3-slots-title, .s3-sched-title {
    font-size: 15px !important;
    line-height: 1.25 !important;
    color: var(--etb-mobile-blue) !important;
  }
  .s3-date-card, .s3-sched-card, .s3-addr-card, .s3-plan-card {
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.07) !important;
  }
  .s3-date-display, .s3-date-val {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
  .s3-slots { gap: 12px !important; }
  .s3-slot-lbl {
    min-height: 52px !important;
    border-radius: 14px !important;
    padding: 14px 14px 14px 42px !important;
  }
  .s3-confirm-btn, .s3-confirm-dir-btn, .s3-download-btn, .s3-download-btn-fija, .s3-continuar-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }
  .s3-banner { margin: 28px -14px 24px !important; padding: 34px 18px !important; }
  .s3-banner-title { font-size: 18px !important; margin-bottom: 24px !important; }
  .s3-banner-steps { gap: 28px !important; }
  .s3-banner-step span { font-size: 11px !important; }
  .s3-infografia { min-height: 220px !important; }
  #s3-infografia-area { min-height: 220px !important; }
  #s3-infografia-area iframe { min-height: 220px !important; }

  /* 1.2.6 — thank you page */
  .ty-wrap--fija, .ty-wrap--lte { min-height: calc(100vh - 92px) !important; }
  .ty-content-area {
    padding: 38px 22px 58px !important;
    justify-content: flex-start !important;
  }
  .ty-title {
    font-size: 28px !important;
    line-height: 1.18 !important;
    margin-bottom: 22px !important;
  }
  .ty-row { gap: 18px !important; }
  .ty-robot img { width: 170px !important; height: 230px !important; }
  .ty-cun-label, .ty-cun-msg { font-size: 14px !important; }
  .ty-cun-number { font-size: 16px !important; line-height: 1.35 !important; }
  .ty-email-note {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: 18px !important;
    max-width: 260px;
  }
  .ty-btn {
    height: 50px !important;
    line-height: 50px !important;
    border-radius: 14px !important;
    max-width: 280px !important;
    margin-bottom: 14px !important;
  }
  .ty-back-link { font-size: 14px !important; }
  .ty-tagline { margin-top: 18px !important; font-size: 15px !important; }
  .ty-curve-bl { left: -170px !important; bottom: -170px !important; width: 300px !important; height: 300px !important; }
  .ty-curve-tr { right: -100px !important; top: -100px !important; width: 240px !important; height: 240px !important; }
}


/* V7 — Home mobile pixel-perfect tuning (desktop safe) */
@media (max-width: 768px) {
  body.page-home .main-nav { position: sticky; top: 0; z-index: 50; background: #F8F8F9; }
  body.page-home .main-nav .main-nav-inner { min-height: 96px !important; padding: 0 18px !important; justify-content: space-between !important; }
  body.page-home .main-nav .nav-logo-img { width: 56px !important; height: 44px !important; }
  body.page-home .main-nav .nav-links-wrap {
    display: none !important;
  }
  body.page-home .main-nav .nav-links-wrap .nav-top-link {
    display: none !important;
  }
  body.page-home .main-nav .nav-top-link { font: 700 15px/1 'Lexend', sans-serif !important; color: #0092BC !important; }
  body.page-home .main-nav .nav-top-link.active { background: #0092BC !important; color: #fff !important; }
  /* PP-2 AlertBar Mobile — Figma 5552:416 (412x34, text 14px) */
  body.page-home .alert-bar { height: 34px !important; }
  body.page-home .alert-bar .alert-item { font-size: 14px !important; }
  body.page-home .alert-bar .alert-dot { font-size: 14px !important; }

  body.page-home .home-mobile-only { display: flex !important; }
  body.page-home .home-title-desktop { display: none !important; }
  body.page-home .home-title-mobile { display: inline !important; }
  body.page-home [data-home-section="planes"] { padding: 14px 0 22px !important; }
  body.page-home .home-mobile-copy { padding: 0 16px !important; }
  /* PP-3 §1 Hero Hogar Mobile — Figma 5552:443/444 (title 344x64 ~32px, subtitle 296x16) */
  body.page-home .home-mobile-title { font: 700 32px/1 'Lexend', sans-serif !important; color: #214780 !important; margin: 8px 0 6px !important; text-align: center !important; }
  body.page-home .home-mobile-subtitle { display: block !important; font: 400 14px/1.13 'Lexend', sans-serif !important; color: #515151 !important; text-align: center !important; margin: 0 0 14px !important; }

  body.page-home #planes-carousel,
  body.page-home #conexion-carousel { width: 100% !important; overflow: visible !important; }
  body.page-home #planes-carousel .carousel-track,
  body.page-home #conexion-carousel .carousel-track {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    gap: 8px !important; overflow-x: auto !important; overflow-y: hidden !important;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0 6% 8px !important;
    scrollbar-width: none; min-height: auto !important; align-items: stretch !important;
    justify-content: flex-start !important; position: relative !important;
  }
  body.page-home #planes-carousel .carousel-track::-webkit-scrollbar,
  body.page-home #conexion-carousel .carousel-track::-webkit-scrollbar { display: none; }
  body.page-home #planes-carousel .carousel-slide,
  body.page-home #conexion-carousel .carousel-slide {
    flex: 0 0 88% !important; width: 88% !important; min-width: 88% !important; max-width: none !important;
    height: auto !important; margin-left: 0 !important; margin-right: 0 !important;
    opacity: .5 !important; transform: scale(.92) !important;
    filter: none !important; left: auto !important; right: auto !important;
    position: relative !important; top: auto !important; bottom: auto !important;
    scroll-snap-align: center; transition: transform .25s ease, opacity .25s ease;
    border-radius: 16px !important; overflow: hidden !important;
  }
  body.page-home #planes-carousel .carousel-slide.is-active,
  body.page-home #planes-carousel .carousel-slide.center,
  body.page-home #conexion-carousel .carousel-slide.is-active,
  body.page-home #conexion-carousel .carousel-slide.center { opacity: 1 !important; transform: scale(1) !important; z-index: 3 !important; }
  body.page-home #planes-carousel .carousel-slide.is-active .promo-card,
  body.page-home #planes-carousel .carousel-slide.center .promo-card,
  body.page-home #conexion-carousel .carousel-slide.is-active .promo-card,
  body.page-home #conexion-carousel .carousel-slide.center .promo-card { box-shadow: 0 10px 24px rgba(33,71,128,.16) !important; }
  body.page-home #planes-carousel .promo-card,
  body.page-home #conexion-carousel .promo-card {
    width: 100% !important; height: auto !important; min-height: auto !important;
    aspect-ratio: auto !important; border-radius: 16px !important;
    overflow: hidden !important; box-shadow: 0 6px 18px rgba(33,71,128,.1) !important;
    padding: 0 !important;
  }
  body.page-home #planes-carousel .planes-slide-img,
  body.page-home #conexion-carousel .planes-slide-img { width: 100% !important; height: auto !important; display: block !important; border-radius: 16px !important; }
  body.page-home #planes-dots,
  body.page-home #conexion-dots { margin-top: 8px !important; margin-bottom: 0 !important; }
  body.page-home #planes-dots .carousel-dot,
  body.page-home #conexion-dots .carousel-dot { width: 9px !important; height: 9px !important; background: #9CA3AF !important; }
  body.page-home #planes-dots .carousel-dot.active,
  body.page-home #conexion-dots .carousel-dot.active-teal,
  body.page-home #conexion-dots .carousel-dot.active { width: 18px !important; border-radius: 999px !important; background: #214780 !important; }

  body.page-home #s1-cta-pill,
  body.page-home #pospago-cta-wrap { display: none !important; }
  /* PP-3 Card Navega Mobile — Figma 5552:456 (240x72, icon 40x40, text 16px) */
  body.page-home .home-mobile-mini-card {
    width: 240px; max-width: 240px; min-height: 72px; margin: 16px auto 0;
    background: #fff; border-radius: 10px; padding: 16px 17px; align-items: center; gap: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.10); text-decoration: none; color: #214780;
    display: flex !important;
  }
  body.page-home .home-mini-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; }
  body.page-home .home-mini-icon svg { width: 40px; height: 40px; display: block; }
  body.page-home .home-mini-copy { display: flex; flex-direction: column; gap: 5px; }
  body.page-home .home-mini-copy strong { font: 700 16px/1 'Lexend', sans-serif; color: #214780; }
  body.page-home .home-mini-copy small { font: 400 14px/1.15 'Lexend', sans-serif; color: #0092BC; }

  /* PP-4 Mobile Divider — Figma 5552:482/483 (text 20px medium Lexend Deca w-336) */
  body.page-home .home-mobile-divider { padding: 25px 16px !important; }
  body.page-home .home-mobile-divider-inner { height: auto !important; }
  body.page-home .home-mobile-divider-copy { font: 500 20px/1.05 'Lexend Deca', sans-serif !important; max-width: 336px; }

  body.page-home [data-home-section="moviles"] { padding: 28px 0 22px !important; }
  body.page-home [data-home-section="moviles"] .container { padding: 0 16px !important; }
  /* PP-5 §2 Mobile — Figma 5552:486/487 (title 32px Bold, subtitle 14px #515151) */
  body.page-home [data-home-section="moviles"] .section-title { font: 700 32px/1 'Lexend', sans-serif !important; color: #214780 !important; margin-bottom: 6px !important; text-align: center !important; }
  body.page-home [data-home-section="moviles"] .section-subtitle { font: 400 14px/1.3 'Lexend', sans-serif !important; margin-bottom: 12px !important; text-align: center !important; color: #515151 !important; }

  /* PP-6 §3 Mobile — Figma 5552:516 (title 32px Bold w-338, padding 25 15) */
  body.page-home .home-mobile-plus { padding: 25px 15px !important; }
  body.page-home .home-mobile-plus h2 { font-size: 32px !important; line-height: 1 !important; margin-bottom: 25px !important; max-width: 338px; }
  body.page-home .home-mobile-plus-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; align-items: stretch !important; }
  body.page-home .home-mobile-plus-main { grid-column: 1 / -1 !important; order: 3; }
  body.page-home .home-mobile-plus-side { display: contents !important; }
  body.page-home .home-mobile-plus-side > a { width: 100% !important; }
  body.page-home .home-mobile-plus-grid img { width: 100% !important; height: auto !important; border-radius: 12px !important; box-shadow: 0 6px 18px rgba(0,0,0,.18) !important; }

  /* PP-7 FAQ Mobile — Figma 5552:534/536 (title 32px w-318, items rx-16 px-25 py-20, q 16px Bold, a 14px Light) */
  body.page-home .home-mobile-faq { padding: 25px 15px !important; }
  body.page-home .home-mobile-faq h2 { font-size: 32px !important; line-height: 1 !important; margin-bottom: 25px !important; max-width: 318px !important; margin-left: auto !important; margin-right: auto !important; }
  body.page-home #home-faq { gap: 10px !important; }
  body.page-home #home-faq .plans-faq-item { border-radius: 16px !important; }
  body.page-home #home-faq .plans-faq-header { min-height: auto !important; padding: 20px 25px !important; font-size: 16px !important; line-height: 1.15 !important; }
  body.page-home #home-faq .accordion-content { font-size: 14px !important; line-height: 1.15 !important; padding: 0 25px 20px !important; color: #214780 !important; font-weight: 300 !important; }
  body.page-home .etb-footer { margin-top: 0 !important; }
}

@media (min-width: 769px) {
  .home-title-mobile, .home-mobile-only, .home-mobile-subtitle { display: none !important; }
  .nav-hamburger { display: none !important; }
  .mm-overlay, .mm-panel { display: none !important; }
  #mv-cards-dots { display: none !important; }
  .mv-chat-luz { display: none !important; }
}

/* ── Mobile Menu Panel ── */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex !important; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; padding: 6px;
    margin-left: auto; flex-shrink: 0;
  }
  .mm-overlay {
    display: block !important;
    position: fixed; inset: 0; z-index: 299; background: rgba(0,0,0,.4);
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .mm-overlay.open { opacity: 1; pointer-events: all; }
  .mm-panel {
    display: flex !important; flex-direction: column;
    position: fixed; top: 0; right: -100%; width: 88%; max-width: 360px;
    height: 100%; z-index: 300; background: #fff; overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0,0,0,.12); transition: right .3s ease;
    padding: 28px 24px 40px;
  }
  .mm-panel.open { right: 0; }
  .mm-close {
    position: absolute; top: 16px; right: 16px; background: none; border: none;
    font-size: 28px; color: #878787; cursor: pointer; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
  }
  .mm-close:hover { background: #f5f5f5; }
  .mm-hello { font: 700 22px/1.2 'Lexend', sans-serif; color: #214780; margin: 0 0 4px; }
  .mm-sub { font: 400 14px/1.3 'Lexend', sans-serif; color: #878787; margin: 0 0 24px; }
  .mm-link {
    display: flex; align-items: center; gap: 14px; padding: 16px 0;
    border-bottom: 1px solid #f0f0f0; text-decoration: none;
    font: 500 15px/1 'Lexend', sans-serif; color: #214780; cursor: pointer;
  }
  .mm-link:last-of-type { border-bottom: none; }
  .mm-details { border-bottom: 1px solid #f0f0f0; }
  .mm-details summary { list-style: none; }
  .mm-details summary::-webkit-details-marker { display: none; }
  .mm-details[open] .mm-chev { transform: rotate(180deg); }
  .mm-chev { transition: transform .25s; flex-shrink: 0; }
  .mm-details-body { padding: 0 0 16px 36px; }
  .mm-details-body p { font: 400 13px/1.5 'Lexend', sans-serif; color: #515151; margin: 0; }
  .mm-contact {
    margin-top: auto; padding-top: 32px;
  }
  .mm-contact-title { font: 700 20px/1.2 'Lexend', sans-serif; color: #214780; margin: 0 0 4px; }
  .mm-contact-sub { font: 400 14px/1.3 'Lexend', sans-serif; color: #878787; margin: 0 0 16px; }
  .mm-phone {
    width: 100%; height: 52px; border: 2px solid #0092bc; border-radius: 999px;
    padding: 0 20px; font: 400 15px/1 'Lexend', sans-serif; color: #214780;
    outline: none; box-sizing: border-box; margin-bottom: 16px;
  }
  .mm-phone::placeholder { color: #9ca3af; }
  .mm-btns { display: flex; gap: 10px; }
  .mm-btn {
    flex: 1; height: 46px; border-radius: 999px; border: none; cursor: pointer;
    font: 700 14px/1 'Lexend', sans-serif; display: flex; align-items: center;
    justify-content: center; gap: 8px; transition: opacity .15s;
  }
  .mm-btn:hover { opacity: .88; }
  .mm-btn-wa { background: #25D366; color: #fff; }
  .mm-btn-call { background: #0092bc; color: #fff; }

  /* ── Lead Popup mobile full-screen ── */
  .lead-overlay {
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .lead-overlay > div {
    width: 100% !important; max-width: 100% !important; height: 100% !important;
    border-radius: 0 !important; padding: 60px 28px 40px !important;
    flex-direction: column !important; justify-content: center !important;
    align-items: center !important; text-align: center !important;
    gap: 0 !important;
  }
  .lead-overlay .md\:w-5\/12 { display: none !important; }
  .lead-overlay .md\:w-7\/12 { width: 100% !important; max-width: 320px; }
  .lead-overlay .md\:w-7\/12 h3 { font-size: 28px !important; line-height: 1.12 !important; margin-bottom: 12px !important; }
  .lead-overlay .md\:w-7\/12 h3 span { color: #7DFFB3 !important; }
  .lead-overlay .md\:w-7\/12 .font-bold.text-lg { font-size: 20px !important; margin-bottom: 6px !important; }
  .lead-overlay .md\:w-7\/12 input[type="tel"] {
    height: 52px !important; border-radius: 999px !important;
    font-size: 14px !important; padding: 0 20px !important;
    margin-bottom: 14px !important;
  }
  .lead-overlay .md\:w-7\/12 label.flex { text-align: left !important; margin-bottom: 20px !important; }
  .lead-overlay .md\:w-7\/12 .flex.gap-3 { gap: 12px !important; }
  .lead-overlay .md\:w-7\/12 .flex.gap-3 button {
    height: 46px !important; border-radius: 999px !important; font-size: 14px !important;
  }
  .lead-popup-terms { display: block !important; }

  /* ── Location modal mobile polish ── */
  .lm-box {
    width: 100% !important; max-width: 100% !important; height: 100% !important;
    border-radius: 0 !important; padding: 32px 24px 28px !important;
    display: flex; flex-direction: column; justify-content: flex-start;
    overflow-y: auto;
  }
  .lm-title { font-size: 20px !important; }
  .lm-btn-validate { margin-top: auto; }

  /* ── Checkout step 2 mobile refinements ── */
  .s2-title { font-size: 20px !important; }
  .s2-card { padding: 20px 16px !important; }
  .s2-input { height: 56px !important; border-radius: 18px !important; font-size: 14px !important; }
  .s2-input-wrap { min-height: 56px !important; border-radius: 18px !important; }
  .s2-input-inner { height: 52px !important; padding-top: 22px !important; font-size: 14px !important; }
  .s2-input-label { font-size: 11px !important; }
  .s2-form-fields { gap: 14px !important; }
  .s2-grid { gap: 14px !important; }
  .s2-grid-row2, .s2-grid-row3 { gap: 14px !important; }
  .s2-links-row { flex-direction: column !important; gap: 4px !important; text-align: center !important; }
  .s2-links-row a { font-size: 13px !important; }

  /* Step 2 OTP mobile */
  .s2-otp-row { gap: 14px !important; }
  .s2-otp-input {
    width: 52px !important; height: 52px !important;
    font-size: 22px !important; border-radius: 14px !important;
  }
  .s2-otp-phone { font-size: 16px !important; letter-spacing: 1px !important; }

  /* Step 2 validated badge */
  .s2-badge-wrap { width: 80px !important; height: 80px !important; margin-bottom: 18px !important; }
  .s2-validated-title { font-size: 20px !important; line-height: 1.25 !important; }

  /* ── Step 1 mobile ── */
  .s1-card { padding: 20px 16px !important; }
  .s1-total-lbl, .s1-total-val { font-size: 20px !important; }

  /* ── LTE Planes Móvil — Hero ── */
  body.page-movil #movil-planes ~ section,
  #movil-planes + section { padding-top: 28px !important; padding-bottom: 28px !important; }

  /* Hero section padding too large (64px) on mobile */
  body.page-movil > div > section:first-of-type,
  #movil-planes { padding-top: 28px !important; }
  body.page-movil section[style*="padding:64px"] {
    padding: 32px 16px 28px !important;
  }
  body.page-movil section[style*="padding:64px"] h1 {
    font-size: 30px !important;
    line-height: 1.08 !important;
    margin-bottom: 8px !important;
  }
  body.page-movil section[style*="padding:64px"] p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  body.page-movil section[style*="padding:64px"] span {
    font-size: 13px !important;
  }

  /* ── LTE Planes Móvil — mobile carousel ── */
  body.page-movil #movil-planes > div { padding: 0 !important; }
  body.page-movil #mv-cards-grid {
    display: flex !important; grid-template-columns: none !important;
    gap: 12px !important; overflow-x: auto !important; overflow-y: visible !important;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 8px 16px 12px !important; scrollbar-width: none;
  }
  body.page-movil #mv-cards-grid::-webkit-scrollbar { display: none; }
  body.page-movil #mv-cards-grid > div {
    flex: 0 0 80% !important; min-width: 80% !important; max-width: 300px !important;
    scroll-snap-align: center;
    opacity: .5 !important; transform: scale(.88) !important;
    transition: transform .25s ease, opacity .25s ease;
  }
  body.page-movil #mv-cards-grid > div.mv-active {
    opacity: 1 !important; transform: scale(1) !important; z-index: 3 !important;
  }
  body.page-movil #mv-cards-dots { display: flex !important; }

  /* LTE hero mobile */
  body.page-movil #movil-planes + section + section h2,
  body.page-movil section h2[style*="36px"] {
    font-size: 26px !important; line-height: 1.08 !important;
  }

  /* LTE step 1: "Resumen de tu plan" */
  body.page-movil .s1-title,
  body.page-checkout .s1-title { font-size: 20px !important; }

  /* LTE step 3: address card mobile */
  .s3-addr-card { padding: 20px 16px !important; }
  .s3-addr-title { font-size: 16px !important; }
  .s3-complemento { font-size: 14px !important; }

  /* Chat con Luz button — hide on desktop (shown via section class) */
  .mv-chat-luz { display: block; }

  /* ── Spinner mobile: 52×52px (Figma mobile spec) — SVG container size only ── */
  .validando-spinner {
    width: 52px !important; height: 52px !important;
  }
  .lm-spinner {
    width: 52px !important; height: 52px !important;
  }

  /* ── Luz avatar: hidden in floatbar on mobile ── */
  .fb-avatar { display: none !important; }

  /* ── Hide old circle pseudo-elements — replaced by curve PNGs ── */
  .plans-hero:before, .plans-hero:after { display: none !important; }

  /* ── Hide desktop nav links on mobile (except home toggle), show hamburger ── */
  body:not(.page-home) .nav-links-wrap { display: none !important; }
  body.page-home .nav-hamburger { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   FIX: SVGs e imágenes desbordadas en mobile
   SVGs inline sin width/height se expanden al 100% del contenedor.
   Reglas globales de seguridad para evitar overflow horizontal.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── SVGs inline: nunca más anchos que su contenedor ── */
  svg:not(.etb-spin) {
    max-width: 100%;
    overflow: visible; /* Permite que decoraciones se vean fuera del viewBox */
  }

  /* ── Imágenes: seguridad contra overflow ── */
  img {
    max-width: 100%;
    height: auto;
  }

  /* ── Contenedores que pueden desbordar en mobile ── */
  .s1-inner, .s2-inner, .s3-inner,
  .plans-hero-content,
  .lm-box, .modal-box,
  .checkout-container, .checkout-content,
  .faq-container {
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* ── Infografía contrato (iframe PDF): respetar ancho ── */
  .s3-infografia {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .s3-infografia iframe {
    max-width: 100% !important;
  }

  /* ── Decorative SVG curves: no desbordar ── */
  .plans-hero img[src*="vector-curve"],
  .ty-curve-bl, .ty-curve-tr {
    max-width: 50vw !important;
  }

  /* ── Íconos en plan cards: constrained ── */
  .plan-card-feature svg,
  .plan-card-feature img {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }

  /* ── Íconos CTA: constrained ── */
  .plans-cta-feature svg,
  .plans-cta-feature img {
    max-width: 40px !important;
    max-height: 40px !important;
  }

  /* ── Botón download contrato: ancho completo ── */
  .s3-download-btn {
    max-width: 100% !important;
  }

  /* ── Lead popup: contenido no desborda ── */
  #leadPopup > div {
    max-width: 94vw !important;
    box-sizing: border-box !important;
  }

  /* ── Footer checkout: íconos de redes no desbordan ── */
  .checkout-footer div[style*="gap:14px"] svg,
  .checkout-footer div[style*="gap:14px"] img {
    max-width: 26px !important;
    max-height: 26px !important;
  }

  /* ── Dropdown arrow SVG sin tamaño explícito ── */
  .dropdown-arrow {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
  }

  /* ── FAQ: asegurar que contenido de panel no desborde ── */
  .plans-faq-panel,
  .faq-panel {
    overflow-x: hidden !important;
    word-break: break-word;
  }
  .plans-faq-panel p,
  .faq-panel p,
  .accordion-content {
    max-width: 100% !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* ── Step 2: badge validado no desborda ── */
  .s2-badge-wrap img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ── Navbar hamburger: ícono constrained ── */
  .nav-hamburger svg {
    width: 28px !important;
    height: 28px !important;
  }

}

/* ═══════════════════════════════════════════════════════════════════════
   FIX GLOBAL: :focus-visible no crea doble borde
   Aplica a desktop y mobile.
   ═══════════════════════════════════════════════════════════════════════ */

/* FAQ buttons: sin outline (el item padre ya tiene border) */
.plans-faq-header:focus,
.plans-faq-header:focus-visible,
.faq-trigger:focus,
.faq-trigger:focus-visible {
  outline: none !important;
}

/* Inputs que ya tienen box-shadow en focus: sin outline doble */
.s2-input:focus-visible,
.s2-input-inner:focus-visible,
.s2-select:focus-visible,
.lm-input:focus-visible,
.lm-input-inner:focus-visible,
.lm-select:focus-visible,
.s2-otp-dash:focus-visible,
.s3-nip-dash:focus-visible,
#tipoDoc:focus-visible,
#citySelect:focus-visible {
  outline: none !important;
}

/* Botones de acción: box-shadow en lugar de outline */
.s2-btn-validate:focus-visible,
.s3-confirm-btn:focus-visible,
.s3-continuar-btn:focus-visible,
.lm-btn-validate:focus-visible,
.fb-btn:focus-visible,
.s3-download-btn:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(33,71,128,.3) !important;
}

/* Checkboxes y radios: sin outline doble */
.s1-accept input[type="checkbox"]:focus-visible,
.s2-check-row input[type="checkbox"]:focus-visible,
#leadPopup input[type="checkbox"]:focus-visible,
#lead-autorizo:focus-visible,
.s3-slot-lbl input[type="radio"]:focus-visible {
  outline: none !important;
}

/* FAQ hover: sin cambio de borde */
.plans-faq-item:hover,
.plans-faq-item:focus-within,
#plans-faq-accordion .plans-faq-item:hover,
.faq-card:hover,
.faq-card:focus-within {
  border-color: inherit !important;
}

/* Checkout footer: espacio para floatbar */
.checkout-footer {
  padding-bottom: 160px !important;
}
