/* === CANVAS / GSAP: ocultar en móvil === */
@media (max-width: 768px) {
    #canvas-container { display: none !important; }
    #loader           { display: none !important; }

    .gs-reveal, .gs-reveal-delay {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .newton-gap  { height: 80vh; }
    .scene-gap   { height: 16vh; }

    section#equilibrio  { padding-top: 70px; }
    .equilibrio-wide    { width: min(940px, 94vw); padding: 34px 26px; }
    .main-header        { padding: 0 20px; }
    .brand              { min-width: unset; }
    .brand-tagline      { display: none; }

    .tri-arrow { width: 40px; height: 40px; font-size: 28px; }
    .tri-range { left: 56px; right: 56px; }

    .final-card  { padding: 34px 26px; gap: 22px; flex-direction: column; text-align: center; }
    .final-card p { max-width: none; }

    .contact-card  { padding: 34px 26px; }
    .contact-grid  { grid-template-columns: 1fr; }

    .side-dock  { display: none; }
    .main-header .icon-btn[aria-label="Llamar"],
    .main-header .icon-btn[aria-label="Enviar correo"],
    .main-header .v-divider { display: none; }

    #nosotrosCard.is-floating {
        top: 80px;
        right: 4%;
        left: 4%;
        width: 92vw;
        max-width: 92vw;
        max-height: 42vh;
        font-size: .9rem;
    }

    section#contacto        { padding-top: 160px; }
    section#contacto-final  { min-height: 215vh; padding-bottom: 70px; gap: 18px; }
    .portal-stage           { padding-top: 18px; }
    .portal-stage-ui        { padding: 18px; }

    .mini-cart { width: calc(100vw - 32px); right: 0; left: 16px; top: 72px; }
}

@media (max-width: 480px) {
    section { padding: 14px; min-height: 100svh; }

    .main-header { padding: 0 14px; height: 64px; }
    .brand       { min-width: unset; gap: 8px; }
    .brand img   { height: 32px; }
    .brand-tagline { display: none; }
    .nav-actions { gap: 6px; }
    .icon-btn    { width: 34px; height: 34px; }
    .icon-btn svg { width: 19px; height: 19px; }
    .v-divider   { display: none; }
    .menu-toggle { margin-left: 4px; }

    .card        { padding: 26px 20px; max-width: 100%; width: 100%; border-radius: 16px; }
    .card h2     { font-size: 1.7rem; }
    .card p      { font-size: .95rem; }

    .pos-left, .pos-right {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .vitruvio-card { max-width: 100% !important; }
    .scroll-down-hint { width: 46px; height: 46px; }
    .equilibrio-wide  { padding: 22px 16px !important; }
    .tri-slider::before { padding-top: 75%; }

    #nosotrosCard > div > div:last-child { display: none; }

    .final-card     { flex-direction: column !important; text-align: center; }
    .contact-grid   { grid-template-columns: 1fr !important; }
    .field-full     { grid-column: 1 !important; }
    .contact-actions { flex-direction: column; gap: 8px; }
    .contact-actions .video-play-btn { width: 100%; justify-content: center; }

    .mini-cart { width: calc(100vw - 32px); right: 0; left: 16px; top: 72px; }
}

/* === VARIANTES DEL GAP NOSOTROS === */
@media (max-width: 480px)                  { :root { --nosotros-gap-h: 34vh; } }
@media (min-width: 481px) and (max-width: 768px)  { :root { --nosotros-gap-h: 40vh; } }
@media (min-width: 769px) and (max-width: 1024px) { :root { --nosotros-gap-h: 56vh; } }
@media (min-width: 1440px)                 { :root { --nosotros-gap-h: 92vh; } }

/* === PORTAL GAP === */
@media (max-width: 480px)                  { :root { --portal-gap-h: 10vh; --portal-spacer-h: 6vh; --portal-sticky-top: 88px; } }
@media (min-width: 481px) and (max-width: 768px)  { :root { --portal-gap-h: 12vh; --portal-spacer-h: 8vh; --portal-sticky-top: 90px; } }
@media (min-width: 769px) and (max-width: 1024px) { :root { --portal-gap-h: 16vh; --portal-spacer-h: 10vh; } }
@media (min-width: 1440px)                 { :root { --portal-gap-h: 22vh; --portal-spacer-h: 12vh; } }

/* === MÓVIL ESTÁTICO === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

body.is-mobile-static #canvas-container { display: none; }
body.is-mobile-static main              { padding-top: 64px; background: transparent; }

body.is-mobile-static section {
    min-height: unset;
    padding: 0;
    display: block;
}

body.is-mobile-static .scene-gap,
body.is-mobile-static .newton-gap,
body.is-mobile-static .nosotros-gap,
body.is-mobile-static .portal-gap,
body.is-mobile-static .portal-spacer { display: none; }

body.is-mobile-static .card {
    max-width: 100%;
    width: 100%;
    margin: 0 !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 32px 22px;
    box-shadow: none;
    border-top: 1px solid rgba(80,120,255,.08);
    animation: fadeUp .55s ease both;
}

body.is-mobile-static .card h2 { font-size: 1.75rem; }
body.is-mobile-static .card p  { font-size: .97rem; }

body.is-mobile-static section#inicio {
    background: radial-gradient(circle at 50% 38%, #dde6ff 0%, #eef2ff 100%);
    padding: 80px 0 0;
}

body.is-mobile-static section#inicio .card {
    background: rgba(255,255,255,.92);
    border-radius: 24px 24px 0 0;
    border: none;
    margin-top: 0 !important;
}

body.is-mobile-static section#inicio .card img { display: none; }

body.is-mobile-static section#tienda    { background: #f8f9ff; }
body.is-mobile-static section#servicios { background: #fff; }

body.is-mobile-static section#equilibrio {
    background: #f8f9ff;
    padding-top: 0 !important;
}

body.is-mobile-static section#equilibrio .mobile-static-img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    padding: 18px 40px 0;
    box-sizing: border-box;
}

body.is-mobile-static .er-slider-wrapper { display: none; }
body.is-mobile-static .equilibrio-wide   { padding: 20px 22px 32px !important; }

body.is-mobile-static section#nosotros   { background: #fff; min-height: unset !important; }
body.is-mobile-static #nosotrosCard      { position: static !important; width: 100% !important; max-width: 100% !important; }
body.is-mobile-static #nosotrosCard > div { flex-direction: column !important; }
body.is-mobile-static #nosotrosCard > div > div:last-child {
    display: block !important;
    max-width: 180px !important;
    margin: 16px auto 0 !important;
}

body.is-mobile-static section#contacto { background: #f8f9ff; }
body.is-mobile-static .final-card { flex-direction: column !important; text-align: left; border-radius: 0; }
body.is-mobile-static .final-media img { width: 100%; max-height: 180px; object-fit: contain; margin-bottom: 16px; }

body.is-mobile-static .portal-stage { display: none; }
body.is-mobile-static section#contacto-final { min-height: unset !important; background: #f8f9ff; }
body.is-mobile-static #contactFormCard { border-radius: 0; border: none; border-top: 1px solid rgba(80,120,255,.08); }
body.is-mobile-static .contact-grid   { grid-template-columns: 1fr !important; }
body.is-mobile-static .field-full     { grid-column: 1 !important; }
body.is-mobile-static .contact-actions { flex-direction: column; gap: 8px; }
body.is-mobile-static .contact-actions .video-play-btn { width: 100%; justify-content: center; }
body.is-mobile-static .mini-cart      { width: calc(100vw - 28px); right: 14px; left: 14px; top: 68px; }
body.is-mobile-static #scrollDownHint { display: none; }

body.is-mobile-static .main-header    { height: 64px; padding: 0 16px; }
body.is-mobile-static .brand          { min-width: unset; }
body.is-mobile-static .brand img      { height: 32px; }
body.is-mobile-static .brand-tagline  { display: none; }
body.is-mobile-static .nav-actions    { gap: 8px; }
body.is-mobile-static .icon-btn[aria-label="Llamar"],
body.is-mobile-static .icon-btn[aria-label="Enviar correo"],
body.is-mobile-static .v-divider      { display: none; }
