/* ==========================================================================
   responsive.css — Overrides mobile-first (se carga al final de la cascada)
   Breakpoints: 1024 / 768 / 560 / 420
   ========================================================================== */

/* ---------- <= 1024px : colapsa nav, aparece burger ---------- */
@media (max-width: 1024px) {
	.esp-header__nav { display: none; }
	.esp-header__burger {
		display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
		background: transparent; border: 0; color: var(--esp-crema); cursor: pointer; border-radius: var(--esp-radius-pill);
	}
	.esp-header__burger:hover { background: var(--esp-surface-3); color: var(--esp-dorado); }
	.esp-header__inner { gap: var(--esp-space-3); }
	/* Orden mobile: logo izquierda · carrito · hamburguesa derecha */
	.esp-header__brand { order: 1; flex: 1 1 auto; }
	.esp-header__actions { order: 2; flex: 0 0 auto; }
	.esp-header__burger { order: 3; }
	.esp-header__cta { display: none; }
	/* En mobile solo se ve el carrito (search/cuenta van dentro del drawer). */
	.esp-header__actions .esp-icon-btn:not(.esp-cart-link) { display: none; }
	.esp-footer__top { grid-template-columns: 1fr 1fr; }

	/* Home */
	.esp-hero__inner { grid-template-columns: 1fr; text-align: center; gap: var(--esp-space-7); }
	.esp-hero__copy { order: 1; } .esp-hero__visual { order: 2; }
	.esp-hero__lede { margin-inline: auto; } .esp-hero__cta { justify-content: center; }
	.esp-flavors { grid-template-columns: repeat(2, 1fr); }
	.esp-packs__grid { grid-template-columns: 1fr; }
	.esp-heatscale__grid { grid-template-columns: repeat(5, 1fr); gap: var(--esp-space-3); }
	.esp-madeinpr__inner { grid-template-columns: 1fr; text-align: center; }
	.esp-madeinpr::before { background: linear-gradient(0deg, rgba(10,6,5,0.92) 30%, rgba(10,6,5,0.55) 100%); }
	.esp-madeinpr__points { justify-items: center; }
	.esp-story__inner { grid-template-columns: 1fr; }

	/* Shop */
	.esp-shop__layout { grid-template-columns: 1fr; }
	.esp-shop__sidebar { position: static; }
	.esp-shop__filter-toggle { display: inline-flex; }
	.esp-shop__filters { display: none; }
	.esp-shop__filters.is-open { display: block; margin-top: var(--esp-space-3); }
	ul.products { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- <= 900px : single a 1 columna ---------- */
@media (max-width: 900px) {
	.esp-single__grid { grid-template-columns: 1fr; gap: var(--esp-space-6); }
	.esp-single__gallery { position: static; }
	.esp-single__summary .product_title { font-size: var(--esp-fs-700); }
}

/* ---------- <= 768px ---------- */
@media (max-width: 768px) {
	:root { --esp-header-h: 60px; }
	.esp-header__brand img, .esp-logo img { height: 42px; }
	.esp-topbar__list { gap: var(--esp-space-4); }
	.esp-topbar__item:nth-child(n+2) { display: none; }
	.esp-section { padding-block: var(--esp-space-7); }
	.esp-section__title { font-size: var(--esp-fs-700); }
	.esp-shop__title { font-size: var(--esp-fs-700); }
	.esp-footer__top { grid-template-columns: 1fr; gap: var(--esp-space-5); }
	.esp-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
	.esp-envios__card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	ul.products { grid-template-columns: repeat(2, 1fr); gap: var(--esp-space-4); }
	/* Secciones del home */
	.esp-pack-card { grid-template-columns: 1fr; }
	.esp-heatscale__grid { grid-template-columns: repeat(2, 1fr); }
	.esp-finalcta__title { font-size: var(--esp-fs-800); }
}

/* ---------- <= 560px ---------- */
@media (max-width: 560px) {
	.esp-btn { padding: 0.85rem 1.3rem; }
	.esp-single__summary form.cart { flex-direction: column; align-items: stretch; }
	.esp-single__summary form.cart .single_add_to_cart_button { width: 100%; }
}

/* ---------- <= 420px ---------- */
@media (max-width: 420px) {
	.esp-flavors { grid-template-columns: 1fr; }
	ul.products { grid-template-columns: 1fr; }
}

/* ---------- Desktop: oculta drawer ---------- */
@media (min-width: 1025px) {
	.esp-drawer { display: none !important; }
}

/* ==========================================================================
   DESIGN SYSTEM — responsive de utilidades (.container / .section / títulos)
   ========================================================================== */
@media (max-width: 768px) {
	.section { padding-block: var(--esp-space-7); }
	.section-title { font-size: var(--esp-fs-700); }
}
@media (max-width: 560px) {
	.container { padding-inline: var(--esp-space-4); }
	.btn { padding: 0.85rem 1.3rem; }
	.section { padding-block: var(--esp-space-6); }
}


/* === FIX MOVIL === */
@media (max-width: 1024px) {
  html, body { overflow-x: hidden !important; max-width: 100% !important; }
  img, video, svg { max-width: 100% !important; height: auto; }
  .esp-hero__inner, .esp-hero--video .esp-hero__inner { grid-template-columns: 1fr !important; text-align: center !important; }
  .esp-hero__copy { order: 1 !important; } .esp-hero__visual { order: 2 !important; }
  .esp-hero__title, .esp-hero__lede, .esp-hero__eyebrow { margin-left:auto !important; margin-right:auto !important; }
  .esp-hero__cta, .esp-hero__actions { justify-content: center !important; }
  .esp-flavors { grid-template-columns: repeat(2, 1fr) !important; }
  .esp-madeinpr__inner, .esp-story__inner, .esp-packs__grid, .esp-pack-card, .esp-finalcta__inner { grid-template-columns: 1fr !important; }
  ul.products { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; float: none !important; }
  ul.products::before, ul.products::after { display: none !important; content: none !important; }
  ul.products > li, ul.products li.product, .woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; }
  .esp-header__brand img, .esp-logo img { height: 40px !important; width: auto !important; }
  .esp-benefits__inner, .esp-marquee__track, .esp-topbar__list, .esp-footer__pay { flex-wrap: wrap !important; }
}
@media (max-width: 560px) {
  .esp-flavors, ul.products { grid-template-columns: 1fr !important; }
  .esp-shell, .container { padding-left: 1rem !important; padding-right: 1rem !important; }
  .esp-hero__title, .esp-section__title { font-size: clamp(1.8rem, 8vw, 2.6rem) !important; word-break: break-word; }
}

/* === FIX MOVIL 2 — desborde residual === */
@media (max-width: 1024px) {
  .esp-hero__visual, .esp-hero__bottles { width: 100% !important; max-width: 100% !important; }
  .esp-hero__visual img, .esp-hero__bottles img { max-width: 100% !important; height: auto !important; }
  .esp-benefits__inner { justify-content: center !important; }
  .esp-benefits .esp-badge { flex: 1 1 44% !important; }
  .esp-benefits .esp-badge + .esp-badge { border-left: 0 !important; }
}
@media (max-width: 560px) {
  .esp-benefits .esp-badge { flex: 1 1 100% !important; text-align: center !important; }
}

/* === FIX MOVIL 3 — drawer vertical + hero cta + imagenes === */
.esp-drawer__panel .esp-menu, .esp-drawer__panel ul.esp-menu, .esp-drawer__panel nav ul {
  display: flex !important; flex-direction: column !important; align-items: stretch !important;
  gap: 0 !important; width: 100% !important; list-style: none !important; padding: 0 !important; margin: 0 !important;
}
.esp-drawer__panel .esp-menu li, .esp-drawer__panel nav li { width: 100% !important; }
.esp-drawer__panel .esp-menu a, .esp-drawer__panel nav a {
  display: block !important; width: 100% !important; padding: 0.85rem 0.25rem !important;
  border-bottom: 1px solid var(--esp-border) !important; font-size: 1.4rem !important;
  white-space: normal !important; text-align: left !important;
}
@media (max-width: 560px) {
  .esp-hero__cta, .esp-hero__actions { flex-wrap: wrap !important; gap: 0.6rem !important; }
  .esp-hero__cta > *, .esp-hero__actions > * { flex: 1 1 100% !important; justify-content: center !important; text-align: center !important; }
  .esp-madeinpr__inner img, .esp-madeinpr__visual img, .esp-story__inner img { max-width: 240px !important; margin-left: auto !important; margin-right: auto !important; display: block !important; }
}

/* === SCROLL FIRE (solo movil) === */
.esp-scrollfire { display: none; }
@media (max-width: 768px) {
  .esp-scrollfire { display: block; position: relative; height: 200vh; background: #0a0605; }
  .esp-scrollfire__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .esp-scrollfire__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background:#0a0605; }
  .esp-scrollfire__bottle { position: absolute; left: 50%; bottom: 11vh; transform: translateX(-50%); height: 60vh; width: auto; z-index: 1; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
  .esp-scrollfire__copy { position: absolute; left: 0; right: 0; top: 6vh; z-index: 2; text-align: center; padding: 0 1.2rem; }
  .esp-scrollfire__copy .esp-hero__title { color: #fff; }
  .esp-scrollfire__hint { color: rgba(255,255,255,.7); font-size: .78rem; letter-spacing: .06em; margin-top: .8rem; text-transform: uppercase; }
  .esp-hero--has-scrollfire { display: none !important; }
}

@media (max-width: 768px) {
  .esp-scrollfire__bottle { transform-origin: center bottom; will-change: transform; }
  .esp-scrollfire__video { transition: opacity .15s linear; will-change: opacity; }
  .esp-scrollfire__hint { opacity:.75; }
}

/* === SCROLLFIRE FIX NEGRO === */
@media (max-width: 768px) {
  .esp-scrollfire { height: 150vh !important; background: radial-gradient(135% 95% at 50% 100%, #3a0f08 0%, #1a0a08 50%, #0a0605 100%) !important; }
  .esp-scrollfire__video { mix-blend-mode: screen !important; opacity: 1 !important; }
  .esp-scrollfire__sticky { background: transparent !important; }
}

/* === FUEGO SIEMPRE PRESENTE === */
@media (max-width: 768px) {
  .esp-scrollfire__sticky::after { content:""; position:absolute; left:-10%; right:-10%; bottom:0; height:58%; background: radial-gradient(75% 100% at 50% 100%, rgba(255,140,30,.62) 0%, rgba(215,55,14,.34) 42%, rgba(120,20,8,0) 74%); z-index:1; pointer-events:none; }
  .esp-scrollfire__bottle { z-index:2 !important; }
  .esp-scrollfire__copy { z-index:3 !important; }
}

/* === SCROLLFIRE ALTURA 1 PANTALLA (sin hueco) === */
@media (max-width: 768px) {
  .esp-scrollfire { height: 100svh !important; min-height: 100vh; }
  .esp-scrollfire__sticky { position: relative !important; height: 100svh !important; }
}