/* Mobile layout shared by the home page sections. Desktop keeps its own styles. */
.mobile-summary { display: none; }
.mobile-benefits { display: none; }
.specialty-controls { display: none; }
.mobile-header-compare, .mobile-plan-comparison { display: none; }

@media (max-width: 640px) {
  html { overflow-x: clip; }
  body { width: 100%; padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
  .shell { width: 90%; max-width: 100%; }
  .mainnav, .mainnav.scrolled {
    position: fixed; top: 0; left: 0; right: 0; width: 100%;
    padding: env(safe-area-inset-top, 0px) 16px 0;
    height: calc(64px + env(safe-area-inset-top, 0px)); margin: 0; gap: 8px;
    border-radius: 0; background: #fff;
  }
  .mainnav .brand-img { width: clamp(112px, 30vw, 132px); height: auto; }
  .mobile-header-compare { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; margin-left: auto; border: 1px solid #007f7d; border-radius: 12px; color: #007f7d; font-size: 12px; font-weight: 800; background: #fff; cursor: pointer; }
  .mobile-plan-comparison { display: block; margin-top: 24px; scroll-margin-top: calc(84px + env(safe-area-inset-top, 0px)); }
  .mobile-plan-comparison > summary { list-style: none; cursor: pointer; border: 1px solid #007f7d; border-radius: 12px; min-height: 48px; padding: 14px; color: #007f7d; font-size: 14px; font-weight: 800; text-align: center; }
  .mobile-plan-comparison > summary::-webkit-details-marker { display: none; }
  .mobile-plan-comparison > summary::after { content: ' +'; }
  .mobile-plan-comparison[open] > summary::after { content: ' −'; }
  .mobile-plan-comparison table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 16px; font-size: 12px; line-height: 1.5; }
  .mobile-plan-comparison th, .mobile-plan-comparison td { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; vertical-align: top; }
  .mobile-plan-comparison thead th { background: #e6f7f6; }
  .mobile-plan-comparison td { color: var(--muted); }
  .mobile-plan-comparison td strong { color: var(--navy); }
  .mobile-plan-comparison summary:focus-visible, .mobile-header-compare:focus-visible { outline: 2px solid #007f7d; outline-offset: 3px; }
  .hero { padding: 28px 0 40px; }
  .hero-trust-strip, .pitch-guarantees { display: none; }
  .hero-actions { margin-bottom: 0; }
  .hero-grid { gap: 28px; }
  .hero-title { font-size: clamp(28px, 7.4vw, 34px); }
  .hero-subtitle { font-size: 15px; line-height: 1.65; }
  .button, .pitch-cta-btn { white-space: normal; }
  .section, .vsl-pitch-section, .advantages-hub-section, .kids-section {
    padding-block: 48px;
  }
  .vsl-pitch-header, .advantages-hub-header, .kids-header { margin-bottom: 28px; }
  .vsl-pitch-title, .hub-title, .kids-title, .section-title {
    font-size: 26px; line-height: 1.25; letter-spacing: -.7px;
    margin-bottom: 16px; text-wrap: balance;
  }
  .vsl-pitch-desc, .hub-desc, .section-text { font-size: 15px; line-height: 1.65; }
  .vsl-pitch-grid, .kids-grid, .specialties, .plans-grid {
    grid-template-columns: minmax(0, 1fr); gap: 28px;
  }
  .vsl-pitch-grid > *, .kids-grid > *, .specialties > *, .footer-main-grid > * {
    min-width: 0; max-width: 100%;
  }
  .vsl-media-showcase { min-height: 0; }
  .vsl-device-scene { width: 100%; max-width: 340px; height: auto; padding: 12px 0; }
  .vsl-phone-mockup { position: relative; display: block; width: 94%; height: auto; left: auto; bottom: auto; margin-inline: auto; }
  .vsl-card-mockup { width: 78%; right: 0; top: 34%; }
  .vsl-pitch-content { gap: 16px; }
  .pitch-item { padding: 20px; gap: 14px; align-items: center; text-align: center; border-radius: 18px; }
  .pitch-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .pitch-text { min-width: 0; }
  .pitch-text h4 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
  .pitch-text p { font-size: 14px; line-height: 1.65; margin: 0; }
  .pitch-cta-box { margin-top: 8px; }
  .pitch-cta-btn { padding: 16px; font-size: 15px; gap: 10px; }
  .pitch-cta-btn svg { flex-shrink: 0; }
  .advantages-hub-grid, .kids-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px;
  }
  .hub-card, .kids-card { min-width: 0; padding: 20px 12px; border-radius: 16px; text-align: center; align-items: center; }
  .hub-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: 100%; }
  .hub-card-top { flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; }
  .hub-icon-wrapper, .kids-icon-circle { width: 42px; height: 42px; border-radius: 12px; margin: 0 0 12px; }
  .hub-icon-wrapper { margin: 0; }
  .hub-icon-wrapper img, .hub-icon-wrapper svg { width: 26px; height: 26px; }
  .hub-pill-badge { padding: 5px 8px; font-size: 11px; line-height: 1.4; max-width: 100%; color: #fff; background: #007f7d; text-align: center; }
  .spec-tag, .spec-tag.online { color: #fff; background: #007f7d; text-align: center; }
  .spec-tag.online { background: #007f7d; }
  .hub-card-body h3, .kids-card h3 { font-size: 15px; line-height: 1.4; margin: 0 0 8px; overflow-wrap: normal; }
  .hub-card-body p { font-size: 13px; line-height: 1.55; margin: 0; }
  .hub-card-body .desktop-summary, .hub-desc .desktop-summary { display: none; }
  .hub-card-body .mobile-summary, .hub-desc .mobile-summary { display: inline; }
  .hub-feature-tag { display: none; }
  .advantages-hub-cta { padding: 24px 20px; gap: 20px; }
  .cta-inner-text h3 { font-size: 21px; line-height: 1.35; }
  .kids-desc, .kids-card p { display: none; }
  .kids-content-left .button { width: 100%; padding: 14px 12px !important; font-size: 14px !important; }
  .kids-card { overflow-wrap: normal; }
  .kids-card h3 { margin-bottom: 0; }
  .kids-image-wrapper { flex-direction: column; gap: 12px; width: 100%; }
  .kids-inclusion-pill {
    position: static; width: 100%; max-width: 100%; box-sizing: border-box;
    padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5;
    white-space: normal; text-align: center; justify-content: center; background: #e6f7f6;
    transform: none !important;
  }
  .kids-inclusion-pill svg { flex: 0 0 20px; width: 20px; height: 20px; }
  .plan-card, .plan-title, .plan-price { text-align: left; }
  .plan-features { padding-left: 0; text-align: left; }
  .plan-features li { align-items: flex-start; justify-content: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
  .plan-grid { gap: 32px; }
  .plan-grid > div:first-child { padding-block: 8px 16px; }
  .plan-grid > div:first-child .section-title { margin: 0 0 28px; text-align: left; }
  .checks { display: grid; gap: 16px; margin: 0; padding: 0; text-align: left; }
  .checks li { margin: 0; padding: 0; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.6; }
  .checks li::before { margin-top: 2px; }
  .plan-features li i, .plan-features li svg { flex-shrink: 0; margin-top: 3px; }
  .footer-light { padding-bottom: 88px; }
  .footer-lead-bar-full { padding-block: 32px; margin-bottom: 32px; }
  .footer-lead-inner { align-items: stretch; text-align: center; gap: 20px; }
  .lead-info h3 { font-size: 23px; line-height: 1.3; margin-bottom: 10px; }
  .lead-info p { font-size: 14px; line-height: 1.6; }
  .lead-form { max-width: none; }
  .lead-input, .btn-pedir { min-width: 0; width: 100%; min-height: 48px; border-radius: 12px; font-size: 16px; }
  .footer-main-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; margin-bottom: 32px; }
  .footer-main-grid .brand, .social-links { justify-content: center; }
  .footer-main-grid .brand-img { width: 148px; height: auto; }
  .footer-desc { max-width: none; font-size: 14px; margin: 16px 0; }
  .social-links { gap: 12px; }
  .social-btn { display: grid; place-items: center; width: 44px; height: 44px; background: #edf2f6; border-radius: 12px; }
  .footer-col { border-top: 1px solid var(--line); padding-top: 24px; }
  .footer-col h4 { font-size: 14px; margin-bottom: 16px; }
  .footer-contact-item { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
  .footer-contact-item span { font-size: 11px; margin-bottom: 4px; }
  .footer-nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .footer-nav-list li { margin: 0; }
  .footer-nav-list a { display: block; padding-block: 10px; }
  .footer-badges { padding-top: 24px; margin-bottom: 24px; }
  .payment-icons { gap: 8px; }
  .pay-badge { padding: 10px 12px; }
  .pay-badge img { height: 20px; max-width: 48px; }
  .footer-bottom { align-items: center; text-align: center; gap: 16px; line-height: 1.6; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

  /* Keep the slide controls in place when banner text lengths differ. */
  .hero-slider-container { display: grid; align-items: start; touch-action: pan-y pinch-zoom; }
  .hero-slide { display: block; grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
  .hero-slide.active { visibility: visible; pointer-events: auto; animation: none; }
  .hero-slider-controls { gap: 12px; margin-top: 20px; }
  .hero-dots-wrapper { gap: 0; }
  .hero-dot, .hero-dot.active {
    width: 36px; height: 44px; min-width: 36px; min-height: 44px;
    border: 0; background: transparent; box-shadow: none; display: grid; place-items: center;
  }
  .hero-dot::after { content: ''; width: 8px; height: 8px; border-radius: 8px; background: #c8d9de; transition: width .2s; }
  .hero-dot.active::after { width: 24px; background: #007f7d; }
  .hero-arrow-btn { width: 44px; height: 44px; color: #007f7d; box-shadow: none; }
  .hero-arrow-btn:focus-visible, .hero-dot:focus-visible { outline: 2px solid #007f7d; outline-offset: 3px; }
  .hub-pill-badge, .spec-tag, .spec-tag.online, .kids-inclusion-pill,
  .hero-top-badge, .hub-badge, .kids-badge, .vsl-pitch-badge, .badge-popular {
    background: #007f7d !important; color: #fff !important;
  }
  .hero-top-badge svg, .hero-top-badge i, .kids-inclusion-pill svg,
  .hub-badge svg, .kids-badge svg, .vsl-pitch-badge svg { color: #fff !important; }
  .hero-top-badge svg { fill: currentColor; }

  /* Shorter mobile journey: offer, benefits, plans and answers. */
  .hero-title > .desktop-summary, .hero-subtitle > .desktop-summary { display: none; }
  .hero-title > .mobile-summary, .hero-subtitle > .mobile-summary { display: inline; }
  .hero-subtitle strong { display: block; color: var(--navy); margin-top: 8px; font-size: 15px; }
  .hero-art-wrapper .image-container { height: clamp(190px, 52vw, 250px); }
  .advantages-hub-cta,
  .specialties-left > .hub-badge, .specialties-left > .section-text,
  .specialties-left > .button, .plan-grid > div:first-child .checks,
  main > .cta { display: none; }
  .vsl-pitch-section { padding-block: 20px 28px; }
  .vsl-pitch-section > .shell > .mobile-summary { display: none; }
  .vsl-pitch-grid { gap: 28px; }
  .vsl-pitch-content { grid-row: 1; }
  .vsl-media-showcase { grid-row: 2; }
  .vsl-pitch-content .pitch-cta-box { display: none; }
  .section, .advantages-hub-section, .kids-section { padding-block: 36px; }
  .advantages-hub-header, .kids-header { margin-bottom: 22px; }
  .advantages-hub-grid { margin-bottom: 0; gap: 10px; }
  .hub-card { padding: 16px 12px; }
  .hub-card-top { gap: 8px; margin-bottom: 10px; }
  .hub-card-body h3 { margin-bottom: 6px; }
  .kids-content-left .button { margin-top: 0; }
  .plan-grid > div:first-child { padding: 0; }
  .plan-grid > div:first-child .section-title { margin-bottom: 0; }
  .footer-lead-bar-full { margin-bottom: 24px; }
  .footer-main-grid { gap: 20px; }

  .pitch-text .desktop-summary, .vsl-pitch-title .desktop-summary,
  .hero-actions .desktop-summary, .hub-title .desktop-summary { display: none; }
  .pitch-text .mobile-summary, .vsl-pitch-title .mobile-summary,
  .hero-actions .mobile-summary, .hub-title .mobile-summary { display: inline; }
  .vsl-pitch-badge, .vsl-pitch-desc, .advantages-hub-grid, .plan-card .plan-features { display: none; }
  .pitch-item { padding: 18px; gap: 10px; }
  .pitch-text h4 { font-size: 17px; margin-bottom: 6px; }
  .pitch-text p { font-size: 14px; line-height: 1.55; }
  .mobile-benefits { display: block; }
  .mobile-benefits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .mobile-benefit { min-width: 0; border: 1px solid #e4eef0; border-radius: 16px; background: #f8fafc; overflow: hidden; }
  .mobile-benefit:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mobile-benefit summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-direction: column; padding: 18px 12px; gap: 12px; text-align: center; }
  .mobile-benefit summary::-webkit-details-marker { display: none; }
  .mobile-benefit-title { display: block; width: 100%; min-height: 2.8em; font-size: 15px; line-height: 1.4; font-weight: 800; }
  .mobile-benefit-hint { font-size: 12px; color: #007f7d; font-weight: 700; }
  .mobile-benefit-hint > span { display: inline-block; transition: transform .2s; }
  .mobile-benefit[open] .mobile-benefit-hint > span { transform: rotate(45deg); }
  .mobile-benefit-body { border-top: 1px solid #e4eef0; padding: 14px 12px; text-align: center; }
  .mobile-benefit-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
  .mobile-benefit-body a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 800; color: #007f7d; text-decoration: underline; }
  .mobile-core-benefits { display: none; }
  .kids-image-wrapper { display: flex; margin-top: 4px; }
  .kids-inclusion-pill { display: none; }
  .mobile-core-benefits > summary { padding: 18px 4px; font-size: 14px; line-height: 1.5; font-weight: 700; cursor: pointer; color: #007f7d; }
  .mobile-benefits summary:focus-visible { outline: 2px solid #007f7d; outline-offset: -3px; }
  .plan-audience { display: block; font-size: 15px; color: var(--muted); margin: 8px 0 20px; }
  .plan-card .plan-price { justify-content: flex-start; margin: 0 0 8px; }
  .plan-card .badge-popular { display: inline-flex; align-self: flex-start; width: fit-content; max-width: 100%; border-radius: 50px; padding: 6px 10px; margin-bottom: 12px; font-size: 11px; line-height: 1.4; }
  .mobile-plan-features { display: grid; gap: 14px; list-style: none; padding: 0; margin: 20px 0 28px; }
  .mobile-plan-features li { display: flex; gap: 10px; font-size: 14px; line-height: 1.55; }
  .mobile-plan-features li::before { content: '✓'; color: #007f7d; font-weight: 800; flex-shrink: 0; }
  .mobile-onboarding { display: block; padding-block: 36px; }
  .mobile-onboarding .section-title { text-align: left; }
  .mobile-onboarding ol { list-style: none; padding: 0; margin: 24px 0 16px; counter-reset: step; }
  .mobile-onboarding li { position: relative; padding: 0 0 22px 42px; counter-increment: step; }
  .mobile-onboarding li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e6f7f6; color: #007f7d; font-weight: 800; }
  .mobile-onboarding strong { display: block; font-size: 15px; margin-bottom: 6px; }
  .mobile-onboarding li span { font-size: 14px; line-height: 1.6; color: var(--muted); }
  .mobile-account-link { display: flex; justify-content: center; align-items: center; min-height: 48px; border: 1px solid #007f7d; color: #007f7d; font-size: 14px; font-weight: 800; border-radius: 12px; }
  .specialties .pills-grid {
    grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 12px) / 2); gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: none; scroll-behavior: auto; overflow-anchor: none; scrollbar-width: none;
    padding: 4px 0 8px; min-width: 0;
  }
  .specialties .pills-grid::-webkit-scrollbar { display: none; }
  .specialties .pill-item { scroll-snap-align: start; min-width: 0; min-height: 164px; justify-content: center; }
  .specialties .pill-item:hover { transform: none; }
  .specialties .pill-name { font-size: 14px; min-height: 2.5em; display: grid; place-items: center; }
  .specialty-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: -12px; }
  .specialty-controls p { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--muted); }
  .specialty-controls button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #007f7d; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .specialty-controls button:focus-visible, .specialties .pill-item:focus-visible { outline: 2px solid #007f7d; outline-offset: -2px; }
}

@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .hero-slide.active .hero-top-badge,
  .hero-slide.active .hero-title,
  .hero-slide.active .hero-subtitle,
  .hero-slide.active .hero-actions,
  .hero-slide.active .hero-art-wrapper {
    animation: mobile-hero-enter .6s cubic-bezier(.22, 1, .36, 1) both;
  }
  .hero-slide.active .hero-title { animation-delay: .06s; }
  .hero-slide.active .hero-subtitle { animation-delay: .14s; }
  .hero-slide.active .hero-actions { animation-delay: .22s; }
  .hero-slide.active .hero-art-wrapper { animation-delay: .28s; }
}

@keyframes mobile-hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
