/* =====================================================
   AGUN MEDIAS — PREMIUM MOBILE EXPERIENCE
   Applies only on ≤768px. Desktop untouched.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ── PAGE ENTRANCE ── */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* Entrance fade-in for whole page */
  .m-page-ready body > * {
    animation: mPageIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
  }
  @keyframes mPageIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── AMBIENT GLOW ORBS ── */
  body::before {
    content: '';
    position: fixed;
    top: -15vh;
    left: -20vw;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(245,124,0,0.18) 0%, transparent 65%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 8s ease-in-out infinite alternate;
  }
  @keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(10vw, 8vh) scale(1.12); }
  }

  /* ── NAVBAR ── */
  .nav {
    padding: 14px 0;
    background: rgba(5,5,5,0.88);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav.scrolled {
    padding: 10px 0;
    background: rgba(5,5,5,0.95);
  }
  .nav-logo img {
    height: clamp(72px, 20vw, 100px) !important;
    transform: scale(1) !important;
    transform-origin: left center;
  }
  .nav-hamburger {
    background: rgba(245,124,0,0.1) !important;
    border: 1px solid rgba(245,124,0,0.25) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    transition: background 0.3s ease;
  }
  .nav-hamburger:active {
    background: rgba(245,124,0,0.25) !important;
  }
  .nav-hamburger span {
    background: var(--orange) !important;
  }

  /* ── MOBILE MENU ── */
  .mobile-menu {
    background: rgba(4,4,4,0.97) !important;
    backdrop-filter: blur(50px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(50px) saturate(200%) !important;
    padding: 110px 28px 60px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }
  /* Glow dot accent in menu */
  .mobile-menu::before {
    content: '';
    position: absolute;
    top: -10vh;
    right: -10vw;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(245,124,0,0.12) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
  }
  .mobile-menu a {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(36px, 11vw, 52px) !important;
    color: rgba(255,255,255,0.25) !important;
    text-decoration: none !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: color 0.25s ease !important;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease !important;
  }
  .mobile-menu.open a {
    opacity: 1;
    transform: translateX(0);
  }
  .mobile-menu.open a:nth-child(1) { transition-delay: 0.06s !important; }
  .mobile-menu.open a:nth-child(2) { transition-delay: 0.12s !important; }
  .mobile-menu.open a:nth-child(3) { transition-delay: 0.18s !important; }
  .mobile-menu.open a:nth-child(4) { transition-delay: 0.24s !important; }
  .mobile-menu.open a:nth-child(5) { transition-delay: 0.30s !important; }
  .mobile-menu.open a:nth-child(6) { transition-delay: 0.36s !important; }
  .mobile-menu.open a:nth-child(7) { transition-delay: 0.42s !important; }
  .mobile-menu a::after {
    content: '→';
    font-size: 20px;
    color: var(--orange);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .mobile-menu a:hover,
  .mobile-menu a:active {
    color: var(--white) !important;
  }
  .mobile-menu a:hover::after,
  .mobile-menu a:active::after {
    opacity: 1;
    transform: translateX(0);
  }
  .mobile-menu a:last-child { border-bottom: none !important; }

  /* ── HERO ── */
  .hero {
    padding-top: 108px !important;
    min-height: 100svh !important;
    display: flex !important;
    align-items: center !important;
  }
  .hero .container { text-align: center !important; }

  .t-hero {
    font-size: clamp(44px, 14vw, 72px) !important;
    line-height: 0.87 !important;
    margin-bottom: 22px !important;
    letter-spacing: 0.01em !important;
  }
  /* Hero text word reveal */
  .t-hero .word {
    display: inline-block;
    overflow: hidden;
  }
  .hero-sub {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: rgba(255,255,255,0.48) !important;
    margin-bottom: 40px !important;
    max-width: 88% !important;
    margin-inline: auto !important;
  }
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    max-width: 340px !important;
    margin-inline: auto !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 14px !important;
    padding: 19px 24px !important;
    border-radius: 18px !important;
    letter-spacing: 0.06em !important;
  }
  /* Primary CTA glow */
  .hero-actions .btn-primary {
    box-shadow: 0 8px 32px rgba(245,124,0,0.35) !important;
    animation: ctaPulse 3s ease-in-out infinite;
  }
  @keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(245,124,0,0.35); }
    50%       { box-shadow: 0 8px 48px rgba(245,124,0,0.55); }
  }

  /* Scroll hint */
  .m-scroll-hint {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    opacity: 0.35;
    animation: bounceDown 2s ease-in-out infinite;
  }
  .m-scroll-hint span {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
  }
  .m-scroll-hint i { color: var(--orange); font-size: 18px; }
  @keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
  }

  /* ── MARQUEE ── */
  .marquee-wrap {
    padding: 18px 0 !important;
    margin: 32px 0 !important;
    transform: rotate(-1.5deg) scale(1.04) !important;
  }
  .marquee-item { font-size: 26px !important; padding: 0 24px !important; }
  .marquee-item::after { margin-left: 48px !important; }

  /* ── ABOUT / STATS ── */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 40px !important;
  }
  .stat-box {
    padding: 28px 24px !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(245,124,0,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
    border: 1px solid rgba(245,124,0,0.12) !important;
    position: relative;
    overflow: hidden;
  }
  .stat-box::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(245,124,0,0.15) 0%, transparent 70%);
    filter: blur(16px);
  }
  .stat-num { font-size: clamp(48px, 14vw, 72px) !important; }
  .stat-label { font-size: 14px !important; letter-spacing: 0.05em; }

  /* ── SERVICES LIST ── */
  .service-list-item {
    border-radius: 18px !important;
    padding: 22px 20px !important;
    background: rgba(15,15,15,0.8) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .service-list-item h3 {
    font-size: clamp(22px, 6vw, 32px) !important;
  }
  .service-list-item span {
    font-size: 22px !important;
    opacity: 0.2 !important;
  }
  .service-list-item i {
    font-size: 20px !important;
  }

  /* ── PROCESS STEPS ── */
  .process-container {
    flex-direction: column !important;
    gap: 24px !important;
    margin-top: 36px !important;
  }
  .process-title { position: static !important; }
  .process-step {
    position: static !important;
    box-shadow: none !important;
    padding: 28px 24px !important;
    border-radius: 20px !important;
    background: rgba(12,12,12,0.85) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(16px) !important;
  }
  .process-num {
    font-size: 52px !important;
    margin-bottom: 12px !important;
  }
  .process-step h3 { font-size: 30px !important; margin-bottom: 10px !important; }
  .process-step p  { font-size: 14px !important; line-height: 1.7 !important; }

  /* ── BLOG LIST ── */
  .blog-list-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 22px 0 !important;
  }
  .blog-list-row h3 {
    font-size: clamp(22px, 6vw, 32px) !important;
    line-height: 1.1 !important;
  }
  .blog-list-row i { justify-self: start !important; margin-top: 10px !important; }

  /* ── CTA BANNER ── */
  .cta-banner {
    border-radius: 24px !important;
    padding: 48px 22px !important;
    margin-bottom: 40px !important;
  }
  .cta-banner h2 {
    font-size: clamp(34px, 10vw, 56px) !important;
    line-height: 0.92 !important;
    margin-bottom: 14px !important;
  }
  .cta-banner p {
    font-size: 14px !important;
    margin-bottom: 28px !important;
  }
  .cta-banner .btn,
  .cta-banner a.btn {
    padding: 18px 28px !important;
    font-size: 14px !important;
    border-radius: 16px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* ── FOOTER ── */
  .footer { padding: 48px 0 28px !important; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-bottom {
    margin-top: 32px !important;
    padding-top: 20px !important;
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center !important;
  }
  .footer-bottom p { font-size: 13px !important; }
  .footer img[alt="AGUN MEDIAS Logo"] {
    height: 56px !important;
    transform: scale(1) !important;
  }

  /* ── FLOATING WHATSAPP ── */
  .m-fab-wa {
    position: fixed !important;
    bottom: 24px !important;
    right: 20px !important;
    z-index: 9990 !important;
    width: 58px !important;
    height: 58px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 32px rgba(37,211,102,0.4) !important;
    text-decoration: none !important;
    animation: fabPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both 1.2s, waPulse 3s ease-in-out 2s infinite !important;
    transition: transform 0.2s ease !important;
  }
  .m-fab-wa:active { transform: scale(0.92) !important; }
  .m-fab-wa i {
    color: white !important;
    font-size: 26px !important;
  }
  @keyframes fabPop {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
  }
  @keyframes waPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(37,211,102,0.4); }
    50%       { box-shadow: 0 8px 48px rgba(37,211,102,0.65); }
  }

  /* ── SECTION REVEAL ── */
  .m-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  }
  .m-reveal.m-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── GLOBAL TOUCH POLISH ── */
  .btn { -webkit-tap-highlight-color: transparent !important; }
  a    { -webkit-tap-highlight-color: transparent !important; }
  .hoverable:hover { transform: none !important; }
}

/* ── SMALL PHONES (≤480px) ── */
@media (max-width: 480px) {
  .t-hero { font-size: clamp(36px, 14vw, 52px) !important; }
  .hero-sub { font-size: 14px !important; }
  .stat-num { font-size: clamp(40px, 13vw, 60px) !important; }
  .cta-banner h2 { font-size: clamp(28px, 9vw, 44px) !important; }
  .service-list-item h3 { font-size: clamp(18px, 5.5vw, 26px) !important; }
  .process-step h3 { font-size: 24px !important; }
}
