/* ============================================================
   VIXUAL MOVIE — RESPONSIVE FIXES
   Breakpoints: 1200 | 1024 | 768 | 640 | 480 | 380
   ============================================================ */

/* ── Overflow horizontal ────────────────────────────────────── */
html,
body {
  overflow-x: hidden !important;
  max-width: 100%;
}

/* ── Star field: apagar animación 3D pesada en móvil ────────── */
/* box-shadow con ~100 valores + preserve-3d consume GPU constantemente */
@media (max-width: 1024px) {
  .star-field .layer {
    animation: none !important;
    transform: none !important;
    opacity: 0.25;
  }
  .star-field {
    perspective: none !important;
    -webkit-perspective: none !important;
  }
}

/* ── Swipers: ceder scroll vertical al navegador ─────────────── */
@media (max-width: 1024px) {
  .swiper,
  .swiper-container,
  .brands-swiper {
    touch-action: pan-y !important;
  }
}

/* Clip horizontal: solo en html/body para no crear scroll containers por sección */
@media (max-width: 1024px) {
  .wrapper { max-width: 100vw; }
}

/* Shapes decorativos: se salen del layout en mobile */
.shape,
.shape.right,
.shape.s3 {
  pointer-events: none;
}

/* Reset helpers */
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; }

/* Banner image: ancho fijo de 551px se sale en pantallas pequeñas */
@media (max-width: 1024px) {
  .banner__right .image { width: 100% !important; max-width: 100%; }
}

/* Card-box: 397px fijo se sale en móvil */
@media (max-width: 480px) {
  .card-box { width: 100% !important; max-width: 100%; }
}

/* ============================================================
   NAVIGATION — LOGO & LANG SWITCHER
   ============================================================ */

/* Logo fijo */
.site-logo-fixed {
  position: fixed;
  top: 16px;
  left: 24px;
  z-index: 100;
}
.site-logo-fixed svg { width: 120px; height: 38px; }

/* Lang switcher: right spacing for hamburger button on mobile */
@media (max-width: 1024px) {
  .lang-switcher { right: 70px; top: 18px; }
  .lang-dropdown  { right: 70px; top: 56px; }
}

@media (max-width: 640px) {
  .site-logo-fixed svg { width: 100px; height: 32px; }
  .lang-switcher { right: 64px; top: 16px; }
  .lang-dropdown  { right: 64px; top: 52px; }
}

@media (max-width: 380px) {
  .site-logo-fixed { left: 14px; }
  .site-logo-fixed svg { width: 86px; height: 28px; }
  .lang-switcher { right: 58px; top: 14px; }
  .lang-dropdown  { right: 58px; top: 50px; }
}

/* ============================================================
   INDEX.PHP — BANNER / HERO
   ============================================================ */

/* Hero image container */
@media (max-width: 1200px) {
  .banner__right .image {
    max-width: 100%;
    height: 560px !important;
  }
}

@media (max-width: 1024px) {
  .banner .row { flex-direction: column; }
  .banner__left,
  .banner__right { width: 100%; text-align: center; }
  .banner__left .block-text { align-items: center; }
  .banner__right { margin-top: 40px; }
  .banner__right .image {
    width: 100% !important;
    height: 460px !important;
    max-width: 560px;
    margin: 0 auto;
  }
  .banner__right .owner { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .banner__right .image {
    height: 480px !important;
    max-width: 100%;
  }
  .banner .heading { font-size: clamp(2rem, 7vw, 3rem) !important; }
  .banner__left .desc { font-size: 1rem !important; }
}

@media (max-width: 640px) {
  .banner { padding-top: 100px; }
  .banner__right .image { height: 420px !important; }
  .banner-box { width: 100% !important; }
  .banner-box .main { flex-direction: column; gap: 12px; }
}

/* Follow Us floating card — tamaño reducido en vertical mobile */
@media (max-width: 768px) {
  .banner .banner__right .owner {
    padding: 10px 14px !important;
    border-radius: 18px !important;
  }
  .banner .banner__right .owner .image {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    margin-right: 9px !important;
  }
  .banner .banner__right .owner h5 {
    font-size: 12px !important;
    margin-bottom: 2px !important;
  }
  .banner .banner__right .owner p {
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .banner__right .image { height: 360px !important; }
  .banner .heading { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; }

  .banner .banner__right .owner {
    padding: 8px 12px !important;
    border-radius: 14px !important;
  }
  .banner .banner__right .owner .image {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    margin-right: 7px !important;
  }
  .banner .banner__right .owner h5 {
    font-size: 11px !important;
    margin-bottom: 1px !important;
  }
  .banner .banner__right .owner p {
    font-size: 10px !important;
  }
}

/* ── About images (index.php) ──────────────────────────────── */
@media (max-width: 1024px) {
  .about__right .images { position: relative; min-height: 340px; }
}

@media (max-width: 768px) {
  .about__right .images .img3,
  .about__right .images .img4,
  .about__right .images .img5 { display: none; }
  .about__right .images .img1,
  .about__right .images .img2 {
    position: relative !important;
    left: auto !important; right: auto !important;
    top: auto !important; bottom: auto !important;
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 10px;
  }
  .about__right .images {
    display: flex;
    flex-direction: column;
    min-height: unset;
  }
}

/* ── Banner box countdown ──────────────────────────────────── */
@media (max-width: 768px) {
  .banner-box { position: relative !important; bottom: auto !important; left: auto !important; margin-top: 24px; }
  .banner-box .main { flex-wrap: wrap; }
}

/* ── Brands swiper ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .vixualslider .slider { height: auto !important; }
  .slider3d .picture {
    width: min(280px, 70vw) !important;
    height: min(280px, 70vw) !important;
  }
}

/* ============================================================
   POPUPS — ROADMAP
   ============================================================ */
@media (max-width: 860px) {
  .rp-popup { padding: 24px 20px 20px; }
  .rp-swiper-wrap { padding: 0 44px 8px; }
}

@media (max-width: 640px) {
  .roadmap-overlay { padding: 12px; }
  .rp-popup { padding: 20px 14px 16px; border-radius: 18px; }
  .rp-swiper-wrap { padding: 0 36px 8px; }
  .rp-title { font-size: 1.2rem; }
  .rp-nav { width: 32px !important; height: 32px !important; }
}

@media (max-width: 480px) {
  .rp-popup { max-height: 88vh; overflow-y: auto; }
  .rp-swiper-wrap { padding: 0 28px 8px; }
  .rp-title { font-size: 1.05rem; }
}

/* ============================================================
   POPUPS — CONTACT
   ============================================================ */
@media (max-width: 768px) {
  .contact-popup {
    flex-direction: column;
    max-height: 92vh;
    overflow-y: auto;
  }
  .contact-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 28px 22px 20px;
  }
  .contact-right { padding: 22px 22px 28px; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .contact-overlay { padding: 10px; }
  .contact-popup { border-radius: 18px; }
  .contact-left  { padding: 22px 16px 16px; }
  .contact-right { padding: 16px 16px 22px; }
}

/* ============================================================
   POPUPS — SIGNIN
   ============================================================ */
@media (max-width: 768px) {
  .signin-popup {
    flex-direction: column !important;
    max-height: 92vh;
    overflow-y: auto;
  }
  .signin-left {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 24px 20px !important;
  }
}

/* ============================================================
   POPUPS — NEWSLETTER
   ============================================================ */
@media (max-width: 768px) {
  .nl-popup {
    flex-direction: column !important;
    max-height: 88vh;
    overflow-y: auto;
  }
  .nl-left {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    padding: 24px 20px !important;
  }
  .nl-right { padding: 20px 20px 24px !important; }
}

@media (max-width: 480px) {
  .nl-popup { max-width: calc(100vw - 20px) !important; border-radius: 18px; }
}

/* ============================================================
   ABOUT.PHP — HERO
   ============================================================ */
@media (max-width: 1024px) {
  .about-hero { padding: 120px 0 70px; }
  .about-hero::before { width: 400px; height: 400px; }
  .about-hero::after  { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
  .about-hero { padding: 100px 0 60px; }
  .about-hero h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
  .about-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  .about-stat { padding: 14px 18px; }
  .about-stat + .about-stat::before { display: none; }
  .about-stat strong { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .about-hero { padding: 90px 0 50px; }
  .about-hero-stats { grid-template-columns: 1fr 1fr; }
  .about-hero p.lead { font-size: 0.92rem; }
}

/* ── YouTube embed (about.php) ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero-yt-wrap { padding: 12px 0 0; margin-top: 0; }
}

@media (max-width: 768px) {
  .hero-yt-wrap { padding: 0; }
  .yt-frame-card { transform: none !important; }
  .yt-float-tag--1,
  .yt-float-tag--2 { display: none !important; }
  .yt-blob--1,
  .yt-blob--2 { display: none !important; }
}

/* ── Who We Are (about.php) ────────────────────────────────── */
@media (max-width: 768px) {
  .av-who { padding: 60px 0; }
  .av-who .image-wrap img { height: 320px !important; }
  .av-text { padding-left: 0 !important; margin-top: 32px; }
}

@media (max-width: 480px) {
  .av-who .image-wrap img { height: 240px !important; }
}

/* ── Mission / Vision cards ────────────────────────────────── */
@media (max-width: 768px) {
  .av-mv { padding: 60px 0; }
  .mv-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .mv-card { padding: 22px 16px; }
  .mv-card .mv-icon { width: 48px; height: 48px; }
}

/* ── Problem grid ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .av-problem { padding: 60px 0; }
  .problem-grid { grid-template-columns: 1fr !important; }
  .problem-item { padding: 24px 20px; }
  .problem-num { font-size: 2rem; }
}

/* ── Solution list ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .av-solution { padding: 60px 0; }
  .sol-item { padding: 18px 20px; }
}

/* ── Values grid ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .av-values { padding: 60px 0; }
}

/* ── Stats grid ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .av-stats { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .stat-card { padding: 26px 16px; }
  .stat-card .num { font-size: 2.2rem; }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr !important; }
}

/* ── Team grid ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .av-team { padding: 60px 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
  .team-card { padding: 24px 14px 20px; }
}

@media (max-width: 380px) {
  .team-grid { grid-template-columns: 1fr !important; }
}

/* ── Tech tags ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .av-tech { padding: 60px 0; }
  .tech-tag { padding: 7px 14px; font-size: 0.7rem; }
}

/* ── CTA section ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .av-cta { padding: 60px 0 70px; }
  .av-cta-box { padding: 48px 28px; }
  .av-cta-btns { flex-direction: column; align-items: center; gap: 10px; }
  .av-cta-btns .action-btn { width: 100%; max-width: 300px; text-align: center; }
}

@media (max-width: 480px) {
  .av-cta-box { padding: 36px 20px; }
}

/* ============================================================
   GENERAL SECTION PADDING — BOTH PAGES
   ============================================================ */
@media (max-width: 768px) {
  .about { padding: 60px 0 !important; }
  section { padding-top: 60px; padding-bottom: 60px; }
}

@media (max-width: 480px) {
  section { padding-top: 50px; padding-bottom: 50px; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ============================================================
   OVERLAY SCROLL FIX — prevent body scroll when popup open
   ============================================================ */
body.popup-open { overflow: hidden !important; }

/* ============================================================
   GENERAL BLOCK-TEXT ALIGNMENT ON MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .block-text .heading { word-break: break-word; }
}
