/* ============================================================
   ÉLIXIR CUBA · EXPERIENCIA MÓVIL PREMIUM
   Estética negro + oro · inspiración Rolex / Aman / Apple / LV.
   100% aditivo: todo vive dentro de @media, el escritorio NO cambia.
   Breakpoints: 1024 (tablet) · 768 · 430 · 375 · 320.
   ============================================================ */

/* ===================== TABLET (≤1024px) ===================== */
@media (max-width: 1024px) {
  .section { padding: 88px 0; }
  .casas-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===================== MÓVIL (≤768px) ====================== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  img, video, canvas, model-viewer { max-width: 100%; height: auto; }

  /* Respiración lateral uniforme — nada toca los bordes */
  .container { padding-left: 22px !important; padding-right: 22px !important; }

  /* Separación uniforme y con aire entre TODAS las secciones */
  .section { padding: 62px 0 !important; }
  .cubania { padding: 66px 0 !important; }

  /* ---------- TIPOGRAFÍA (jerarquía premium, sin saltos feos) ---------- */
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.7rem) !important; line-height: 1.08 !important; letter-spacing: .01em !important; text-wrap: balance; }
  .hero-sub { font-size: 1rem !important; line-height: 1.62 !important; max-width: 40ch !important; text-wrap: pretty; }
  .eyebrow { font-size: .66rem !important; letter-spacing: .24em !important; }
  h2 { font-size: clamp(1.65rem, 6.4vw, 2.1rem) !important; line-height: 1.16 !important; text-wrap: balance; }
  h3 { line-height: 1.25 !important; }
  p { text-wrap: pretty; }

  /* ---------- HERO: altura controlada, sin huecos vacíos gigantes ---------- */
  .hero { height: auto !important; min-height: 90svh !important; }
  .hero-content { padding: 86px 22px 116px !important; }
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .hero-sub,
  .hero-content .hero-cta { max-width: 100% !important; }
  .hero-photo { background-position: 64% center !important; }   /* foco visual correcto */
  /* La barra de garantías se posicionaba mal y se cortaba en móvil; la ocultamos
     (la info de envíos ya está en la barra superior) para un hero limpio y premium. */
  .hero-feature { display: none !important; }

  /* ---------- BOTONES: táctiles (≥48px) y elegantes ---------- */
  .btn { min-height: 50px !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 14px 26px !important; font-size: .8rem !important; }
  .hero-cta { flex-direction: column; gap: 12px; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .icon-btn { min-width: 44px; min-height: 44px; }

  /* ---------- CARDS DE PRODUCTO: compactas, proporción cuidada ---------- */
  .prod-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .prod-media { aspect-ratio: 3 / 4 !important; }              /* recorte uniforme + evita CLS */
  .prod-photo { height: 100% !important; }
  .prod-info { padding: 12px 12px 16px !important; }
  .prod-info h3, .prod-card h3 { font-size: .9rem !important; }
  .prod-price { font-size: .9rem !important; }
  .prod-buy { min-height: 44px !important; font-size: .72rem !important; }

  /* ---------- CASAS EXCLUSIVAS: 2 columnas + caption elegante (táctil) ----------
     En escritorio el nombre aparece al pasar el mouse; en móvil no hay hover,
     así que mostramos un pie de foto fijo y limpio (estilo galería LV/Rolex). */
  .casas-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; width: 100% !important; max-width: 100% !important; align-items: start !important; }
  .casa { max-width: none !important; width: 100% !important; min-width: 0 !important; margin: 0 !important; }
  .casa:hover { transform: none !important; }
  .casa-img { aspect-ratio: 3 / 4 !important; width: 100% !important; min-width: 0 !important; object-fit: cover !important; }
  .casa-bubble { position: static !important; opacity: 1 !important; transform: none !important; width: auto !important; left: auto !important; right: auto !important; background: none !important; border: none !important; box-shadow: none !important; backdrop-filter: none !important; padding: 11px 2px 0 !important; text-align: center !important; }
  .casa-bubble::before, .casa-bubble::after { display: none !important; }
  .casa-bubble p { display: block !important; font-size: .72rem !important; line-height: 1.55 !important; color: var(--marfil-mute) !important; margin-top: 7px !important; font-weight: 300 !important; }
  .cb-name { display: block !important; font-family: var(--serif); color: var(--marfil); font-size: .88rem; letter-spacing: .03em; }
  .cb-tag { display: block !important; font-style: italic; color: var(--oro); font-size: .74rem; margin-top: 3px; }

  /* ---------- CATEGORÍAS: 2 por fila (más compactas) ---------- */
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; width: 100% !important; }
  .cat-card { min-width: 0 !important; min-height: 210px !important; }
  .cat-card .cat-orn { width: 38px !important; height: 38px !important; top: 14px !important; right: 14px !important; }
  .cat-info h3, .cat-card h3 { font-size: 1rem !important; }
  .cat-info { padding: 18px !important; }

  /* ---------- MENÚ MÓVIL (drawer): limpio, elegante, animación premium ---------- */
  .drawer-panel { width: 86% !important; max-width: 360px !important; padding: 88px 30px 32px !important; background: linear-gradient(180deg, #0c0c0d 0%, #070707 100%) !important; box-shadow: -30px 0 80px rgba(0,0,0,.6) !important; }
  .drawer-panel a { font-size: 1.18rem !important; padding: 18px 0 !important; letter-spacing: .08em !important; opacity: 0; transform: translateX(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .drawer.open .drawer-panel a { opacity: 1; transform: none; }
  .drawer.open .drawer-panel a:nth-child(1) { transition-delay: .10s; }
  .drawer.open .drawer-panel a:nth-child(2) { transition-delay: .16s; }
  .drawer.open .drawer-panel a:nth-child(3) { transition-delay: .22s; }
  .drawer.open .drawer-panel a:nth-child(4) { transition-delay: .28s; }
  .drawer.open .drawer-panel a:nth-child(5) { transition-delay: .34s; }
  .drawer.open .drawer-panel a:nth-child(6) { transition-delay: .40s; }
  .drawer.open .drawer-panel a:nth-child(7) { transition-delay: .46s; }
  .drawer-close { top: 24px !important; right: 22px !important; width: 44px !important; height: 44px !important; }

  /* Marcas de agua decorativas: muy sutiles para no estorbar */
  .watermark { opacity: .045 !important; }
  .watermark img { max-width: 220px; }

  /* Emilia: cabeza flotante más pequeña y chat a casi todo el ancho */
  #emilia-fab { width: 86px !important; height: 86px !important; right: 12px !important; bottom: 12px !important; }
  #emilia-panel { right: 8px !important; left: 8px !important; width: auto !important; bottom: 100px !important; }
}

/* ============== iPhone 13/14/15 · Galaxy (≤430px) ============== */
@media (max-width: 430px) {
  .hero h1 { font-size: 2.1rem !important; }
  .hero-content { padding-top: 78px !important; }
  .prod-grid { gap: 12px !important; }
  .casas-grid { gap: 13px !important; }
}

/* ================== iPhone SE / pequeños (≤375px) ================== */
@media (max-width: 375px) {
  .container { padding-left: 18px !important; padding-right: 18px !important; }
  .hero h1 { font-size: 1.96rem !important; }
  .hero-sub { font-size: .95rem !important; }
  .prod-info h3, .prod-card h3 { font-size: .85rem !important; }
}

/* ===================== Mínimo soportado (≤320px) ===================== */
@media (max-width: 320px) {
  .hero h1 { font-size: 1.8rem !important; }
  .btn { padding: 13px 20px !important; font-size: .76rem !important; }
  .prod-info { padding: 10px 10px 14px !important; }
}
