/* ================================================================
   SILMAR ANGELS — mobile.css  (v1.0)
   Mejoras de experiencia móvil — Android & iOS
   Cargar DESPUÉS de style.css y refine.css:
     <link rel="stylesheet" href="css/mobile.css">
   ================================================================ */

/* ── 1. SAFE AREA (notch iPhone / barra Android) ─────────────── */
:root {
  --safe-top:    env(safe-area-inset-top,    0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left,   0px);
  --safe-right:  env(safe-area-inset-right,  0px);
  --bottom-nav-h: 60px;
}

/* ── 2. BASE MÓVIL — previene zoom en inputs iOS ─────────────── */
@media (max-width: 768px) {
  input, select, textarea, button {
    font-size: 16px !important; /* evita zoom automático de iOS */
    -webkit-tap-highlight-color: transparent;
  }
  /* Excepción: textos pequeños dentro de botones no se estiran */
  button .text-xs, button small { font-size: inherit !important; }

  /* Mejora scroll en iOS (momentum) */
  html, body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
  }

  /* Touch targets mínimos 44×44px en todos los links y botones */
  a, button, [role="button"], label[for] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* Excepción: links en párrafos de texto */
  p a, li a, td a, .text-link { min-height: unset; display: inline; }
}

/* ── 3. HEADER MÓVIL ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header {
    height: 60px;
    padding-top: var(--safe-top);
  }
  .header-inner {
    height: 60px;
    padding: 0 1rem;
    gap: 0.75rem;
  }
  .logo-img { width: 36px; height: 36px; }
  .logo-name { font-size: 0.92rem; }
  .logo-tagline { display: none; }

  /* Hamburger más grande y táctil */
  .hamburger {
    width: 44px;
    height: 44px;
    padding: 0.6rem;
    margin-left: auto;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    background: var(--cream-2);
    border: 1px solid var(--border);
  }
  .hamburger span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .hamburger.open { background: var(--gold-pale); border-color: var(--gold-light); }

  /* Menú desplegable móvil — slide-in suave */
  .nav-main {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 250, 243, 0.99);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    z-index: 800;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1.25rem calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav-main.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideNavDown 0.22s ease forwards;
  }
  @keyframes slideNavDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-main.open .nav-list {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
  }
  .nav-main.open .nav-list li { width: 100%; }
  .nav-main.open .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-cinzel);
    letter-spacing: 0.04em;
    color: var(--ink);
    border: 1px solid transparent;
    min-height: 52px;
    transition: all 0.18s ease;
  }
  .nav-main.open .nav-link:hover,
  .nav-main.open .nav-link.nav-active {
    background: var(--gold-pale);
    border-color: var(--border);
    color: var(--gold-dark);
  }

  /* Área de usuario en el menú abierto */
  .nav-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
  }
  .nav-mobile-footer .btn-auth,
  .nav-mobile-footer .user-chip,
  .nav-mobile-footer .btn-logout-mini {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  /* Ocultar área de usuario en header cuando el menú está abierto */
  .user-nav-area .btn-auth { display: none; }
  .user-nav-area .btn-auth:last-of-type { display: none; }

  /* Reducir elementos del user nav en mobile */
  .user-nav-area {
    gap: 0.4rem;
  }
  .btn-logout-mini,
  .btn-auth-login,
  .btn-auth-register {
    display: none; /* se moverán al menú */
  }
  .user-chip { display: flex; }
  .user-chip-name { max-width: 80px; }
}

/* ── 4. BARRA DE NAVEGACIÓN INFERIOR (Bottom Nav) ────────────── */
@media (max-width: 768px) {
  /* Forzar espacio para la barra inferior */
  body {
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(253, 250, 243, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    z-index: 700;
    box-shadow: 0 -4px 20px rgba(58, 46, 31, 0.08);
  }

  .mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--ink-muted);
    font-size: 0.6rem;
    font-family: var(--font-cinzel);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.18s ease;
    border-radius: 0;
    min-height: unset;
    padding: 0.35rem 0.25rem;
    border-top: 2px solid transparent;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav a .bn-icon {
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.2s var(--tr-bounce, cubic-bezier(0.34, 1.56, 0.64, 1));
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:hover {
    color: var(--gold-dark);
    border-top-color: var(--gold);
    background: linear-gradient(180deg, var(--gold-pale) 0%, transparent 100%);
  }
  .mobile-bottom-nav a.active .bn-icon,
  .mobile-bottom-nav a:hover .bn-icon {
    transform: scale(1.15);
  }

  /* Badge de notificación en el bottom nav */
  .mobile-bottom-nav a .bn-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 16px);
    width: 16px;
    height: 16px;
    background: var(--rose-dark);
    color: #fff;
    border-radius: 50%;
    font-size: 0.55rem;
    font-family: var(--font-body);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cream);
  }
  .mobile-bottom-nav a { position: relative; }
}

/* Ocultar bottom nav en escritorio */
@media (min-width: 769px) {
  .mobile-bottom-nav { display: none !important; }
}

/* ── 5. HERO MÓVIL ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100svh - 60px);
    padding-top: 1.5rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 2.5rem;
    gap: 1.25rem;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
  .hero-subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.6;
  }
  .hero-badge, .hero-user-welcome {
    margin: 0 auto 1rem;
    font-size: 0.9rem;
  }
  .hero-actions, .hero-actions-user {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .hero-actions a, .hero-actions-user a {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    min-height: 48px;
    border-radius: 12px;
  }
  .hero-stats {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .hero-stats .stat {
    font-size: 0.85rem;
  }
  .hero-stats .stat-number {
    font-size: 1.5rem;
  }
  .hero-visual { display: none; }

  /* Orbs deshabilitados en móvil (mejor performance) */
  .orb { display: none !important; }
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding-top: 1rem;
  }
  .hero-inner {
    padding: 1.25rem 0.75rem 2rem;
    gap: 1rem;
  }
  .hero-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
  .hero-actions a, .hero-actions-user a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
  }
}

/* ── 6. SECCIONES Y CARDS ────────────────────────────────────── */
@media (max-width: 768px) {
  /* Base: todas las imágenes responsive */
  img { max-width: 100%; height: auto; display: block; }

  /* Sobre mí */
  .about-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-photo { max-width: 100%; max-height: 280px; margin: 0 auto; border-radius: 12px; }
  .about-badge-float { position: static; transform: none; margin-top: 1rem; text-align: center; }
  .about-content { text-align: center; }
  .credentials-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .about-text { text-align: left; }

  /* Servicios */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .srv-card, .service-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }
  .srv-card:hover, .service-card:hover { transform: none; box-shadow: var(--shadow-sm); }

  /* Cards genéricas */
  .card { padding: 1.25rem; }
  .card:hover { transform: none; }

  /* Planes */
  .planes-grid { grid-template-columns: 1fr; gap: 1rem; }
  .planes-row-2 { grid-template-columns: 1fr; gap: 1rem; }
  .plan-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }
  .plan-card.featured { transform: none; }

  /* Testimonios */
  .testimonios-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .testimonio-card { padding: 1.25rem 1rem; border-radius: 12px; }

  /* Blog cards */
  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .blog-card { border-radius: 12px; }
  .blog-card:hover { transform: none; }

  /* Galerías */
  .galeria-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .galeria-item {
    border-radius: 10px;
    aspect-ratio: 1;
    overflow: hidden;
  }
  .galeria-item img { width: 100%; height: 100%; object-fit: cover; }

  /* Tienda */
  .tienda-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .producto-img { height: 130px; object-fit: cover; }

  /* Contacto */
  .contacto-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contacto-info, .contacto-form { padding: 1.25rem 1rem; }

  /* Grids generales */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  /* Tienda en 1 columna en móviles muy pequeños */
  .tienda-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr; gap: 0.4rem; }

  /* Secciones con padding optimizado */
  .about, .services, .planes, .testimonios, .contacto {
    padding: 2.5rem 0;
  }

  /* Padding horizontal reducido */
  .container { padding: 0 0.75rem; }

  .srv-card, .plan-card, .service-card, .card {
    padding: 1rem 0.75rem;
  }
}

/* ── 7. TABLAS RESPONSIVAS ───────────────────────────────────── */
@media (max-width: 768px) {
  .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
  }
  /* Auto-envolver tablas sin clase */
  table {
    min-width: 500px;
  }
  th, td { padding: 0.6rem 0.65rem; font-size: 0.8rem; }
  th { font-size: 0.7rem; }
}

/* ── 8. FORMULARIOS MÓVIL ────────────────────────────────────── */
@media (max-width: 768px) {
  .form-group { margin-bottom: 1.1rem; }
  .form-row-2, .form-row, .form-grid-2 {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  select, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 16px !important; /* crítico para evitar zoom iOS */
    border-radius: var(--r-md);
    min-height: 52px;
  }
  textarea { min-height: 110px; }

  /* Botones de submit */
  .btn-submit, .btn-auth-submit, [type="submit"] {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
    justify-content: center;
    border-radius: 14px;
  }
}

/* ── 9. PANEL DE ADMINISTRACIÓN MÓVIL ───────────────────────── */
@media (max-width: 900px) {
  .ap-shell { grid-template-columns: 1fr; padding: 0.75rem; }

  /* Sidebar en scrollable horizontal strip */
  .ap-side {
    position: sticky;
    top: 60px;
    z-index: 50;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-lg);
    margin-bottom: 1rem;
    scrollbar-width: none;
  }
  .ap-side::-webkit-scrollbar { display: none; }
  .ap-side h4 { display: none; }
  .ap-side a {
    white-space: nowrap;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    flex-shrink: 0;
    border-radius: var(--r-full);
    min-height: 40px;
  }

  /* Stats grid */
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .stat-num { font-size: 1.5rem; }
  .stat-lbl { font-size: 0.6rem; }

  /* Módulos admin */
  .ap-modulos { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Two-col admin */
  .two-col { grid-template-columns: 1fr !important; gap: 1rem; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── 10. PÁGINA MI CUENTA ────────────────────────────────────── */
@media (max-width: 768px) {
  .cuenta-hero-card { flex-direction: column; text-align: center; gap: 1rem; }
  .cuenta-meta { justify-content: center; }
  .cuenta-actions { flex-direction: column; align-items: center; gap: 0.6rem; }
  .cuenta-actions a { width: 100%; max-width: 280px; justify-content: center; }
  .account-cards { grid-template-columns: 1fr; gap: 1rem; }

  /* Panel layout */
  .panel-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.35rem;
    overflow-x: auto;
  }
  .sidebar-logo { display: none; }
  .nav-section-label { display: none; }
  .nav-item { padding: 0.5rem 0.75rem; font-size: 0.78rem; }
  .main-content { padding: 1rem; }
}

/* ── 11. MODAL / OVERLAY MÓVIL ───────────────────────────────── */
@media (max-width: 768px) {
  .orden-form-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem 1.25rem 2rem !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .orden-form-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 1.25rem;
  }
  .orden-form-overlay {
    align-items: flex-end;
  }
}

/* ── 12. WHATSAPP FLOAT MEJORADO ─────────────────────────────── */
@media (max-width: 768px) {
  .wa-float {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
    right: 1rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    z-index: 600;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
  }
  .wa-float:hover { transform: scale(1.1); }
  /* El label de texto lo ocultamos en móvil para ahorrar espacio */
  .wa-float span, .wa-float-label { display: none; }
}

/* ── 13. STICKY CTA (botón flotante de conversión) ───────────── */
/* Solo aparece en páginas de landing/home en móvil */
@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 0.5rem);
    left: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
    z-index: 650;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--ink);
    font-family: var(--font-cinzel);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
  }
  .mobile-sticky-cta.visible {
    opacity: 1;
    pointer-events: all;
    animation: ctaPulse 2.5s ease-in-out infinite;
  }
  @keyframes ctaPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(201,168,76,0.4); }
    50%       { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.6); }
  }
  .page-interna .mobile-sticky-cta { display: none; }
}

/* ── 14. ESCUELA (páginas dark) ──────────────────────────────── */
@media (max-width: 768px) {
  .esc-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .esc-prog-grid { grid-template-columns: 1fr; }
  .esc-steps { grid-template-columns: 1fr; }
  .esc-footer-grid { grid-template-columns: 1fr; }
  .esc-nav-links { display: none; }
  .esc-bloques-grid { grid-template-columns: 1fr; }

  .esc-header { padding: 2.5rem 1.25rem 2rem; }
  .esc-title { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* ── 15. FOOTER MÓVIL ────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-footer { padding: 2.5rem 1.25rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ── 16. BLOG MÓVIL ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .blog-filters { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .blog-filters::-webkit-scrollbar { display: none; }
  .blog-filters { display: flex; white-space: nowrap; gap: 0.5rem; padding-bottom: 0.25rem; }
  .blog-card { border-radius: var(--r-lg); }
  .blog-card-inner { flex-direction: column; }
  .post-content { padding: 1.5rem 1.25rem 3rem; }
  .post-content h1 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
}

/* ── 17. TERAPIAS MÓVIL ──────────────────────────────────────── */
@media (max-width: 768px) {
  .items-grid { grid-template-columns: 1fr !important; }
  .hub-header { flex-direction: column; text-align: center; gap: 1rem; }
  .hub-meta { justify-content: center; flex-wrap: wrap; }
  .hub-actions { flex-direction: column; align-items: center; gap: 0.6rem; }
  .hub-actions a, .hub-actions button { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── 18. PULL-TO-REFRESH VISUAL HINT ─────────────────────────── */
@media (max-width: 768px) {
  .ptr-hint {
    position: fixed;
    top: calc(60px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--gold-pale);
    border: 1px solid var(--gold-light);
    border-radius: 0 0 var(--r-full) var(--r-full);
    padding: 0.35rem 1.25rem;
    font-size: 0.72rem;
    font-family: var(--font-cinzel);
    color: var(--gold-dark);
    z-index: 999;
    transition: transform 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
  }
  .ptr-hint.ptr-showing { transform: translateX(-50%) translateY(0); }
}

/* ── 19. ACCESIBILIDAD Y LEGIBILIDAD MÓVIL ───────────────────── */
@media (max-width: 768px) {
  /* Aumentar contraste y legibilidad en pantallas pequeñas */
  .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
  .section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
    line-height: 1.1;
  }
  .section-subtitle {
    font-size: clamp(0.9rem, 3.5vw, 0.95rem);
    line-height: 1.6;
  }
  p, li {
    font-size: clamp(0.9rem, 2.5vw, 0.92rem);
    line-height: 1.7;
  }

  /* Espaciado vertical optimizado */
  .about, .services, .testimonios, .planes, .contacto {
    padding: 3rem 0;
  }

  /* Reducir animaciones pesadas */
  .float-symbol { animation: none !important; opacity: 0.3; }
  .hero-logo-ring, .hero-logo-ring-2, .hero-logo-ring-3 { animation: none !important; }

  /* Asegurar buen contraste en todos los textos */
  body { color: var(--ink); }
  a { color: var(--gold-dark); text-decoration: none; }
  a:hover { text-decoration: underline; }
}

/* ── 20. PERFORMANCE — disable heavy effects on mobile ───────── */
@media (max-width: 768px) {
  /* Sin blur pesado en elementos que no son el header */
  .service-card, .plan-card, .card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Sombras más ligeras */
  .service-card:hover, .plan-card:hover, .blog-card:hover {
    box-shadow: var(--shadow-sm);
    transform: none;
  }
  /* Reducir radial-gradient del body en móvil */
  body {
    background: var(--cream) !important;
  }
}

/* ── 21. SCROLLBAR OCULTA EN LISTAS HORIZONTALES ────────────── */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* ── 22. GALERÍA TOUCH-FRIENDLY ──────────────────────────────── */
@media (max-width: 768px) {
  .galeria-item { overflow: hidden; border-radius: 10px; cursor: pointer; }
  .galeria-item img { transition: transform 0.3s ease; }
  .galeria-item:active img { transform: scale(0.97); }
}

/* ── 23. HEADER HIDDEN CLASS (scroll behavior) ───────────────── */
.header-hidden {
  transform: translateY(-110%) !important;
  transition: transform 0.3s ease !important;
}
.site-header {
  transition: transform 0.3s ease, box-shadow 0.2s ease;
}

/* ── 24. UTILS MÓVIL ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .center-mobile { text-align: center !important; }
  .full-mobile { width: 100% !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: block !important; }
}
