/* =========================================================
   CRIS MEDICAL PANAMÁ — Hoja de estilos principal
   Estructura:
   1. Variables y base
   2. Utilidades y botones
   3. Encabezado y navegación
   4. Hero / slider
   5. Beneficios
   6. Categorías
   7. Productos destacados
   8. Promo y newsletter
   9. Footer
   10. Carrito, WhatsApp, toast
   11. Animaciones
   12. Responsive
   ========================================================= */

/* ---------- 1. Variables y base ---------- */
:root {
  --navy: #12234a;
  --navy-700: #1b2f5c;
  --navy-900: #0b1734;
  --red: #c8102e;
  --red-soft: #fbe9ec;
  --ivory: #f8f6f2;
  --gray-100: #f3f3f5;
  --gray-200: #e7e7ec;
  --gray-400: #a3a7b3;
  --text: #1c2333;
  --muted: #646b7a;
  --white: #fff;
  --wa: #25d366;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allura", cursive;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 10px rgba(18, 35, 74, .06);
  --shadow: 0 12px 32px rgba(18, 35, 74, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1240px;
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 2. Utilidades y botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 4px;
  font-weight: 500; font-size: 15px; letter-spacing: .2px;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-900); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--ivory); }
.btn.block { width: 100%; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px; font-size: 12px; font-weight: 500;
  letter-spacing: 5px; text-transform: uppercase; color: var(--navy);
}
.eyebrow::after { content: ""; width: 44px; height: 1px; background: currentColor; }
.eyebrow.light { color: rgba(255,255,255,.8); }

.section-title {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--navy);
}
.section-title::after { content: ""; width: 56px; height: 1px; background: var(--navy); }
.section-title.center { justify-content: center; }
.section-title.center::after { display: none; }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.icon-btn:hover { background: var(--gray-100); }

/* ---------- 3. Encabezado y navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-top {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center; gap: 32px;
  padding-top: 12px; padding-bottom: 4px;
}
.logo { grid-row: span 2; display: block; width: 96px; }
.logo img, .logo svg { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(18,35,74,.12)); transition: transform .4s var(--ease); }
.logo:hover img { transform: rotate(-4deg) scale(1.03); }

.search { position: relative; max-width: 390px; width: 100%; }
.search input {
  width: 100%; height: 44px; padding: 0 46px 0 16px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--gray-100); font: inherit; font-size: 13.5px; color: var(--text);
  transition: border-color .2s, background .2s;
}
.search input:focus { outline: none; background: var(--white); border-color: var(--navy); }
.search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px; color: var(--muted); }
.search svg { width: 19px; height: 19px; }

.header-actions { display: flex; align-items: center; gap: 26px; }
.action { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--navy); }
.action:hover { color: var(--red); }
.action .chev { width: 14px; height: 14px; }
.flag-pa {
  width: 20px; height: 14px; border-radius: 2px; overflow: hidden;
  background:
    linear-gradient(var(--red), var(--red)) right top / 50% 50% no-repeat,
    linear-gradient(#0b3a8c, #0b3a8c) left bottom / 50% 50% no-repeat,
    #fff;
  box-shadow: 0 0 0 1px var(--gray-200);
}
.count {
  position: absolute; top: -9px; left: 12px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--navy); color: var(--white);
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
  transform: scale(0); transition: transform .25s var(--ease);
}
.count.show, .count-cart { transform: scale(1); }
.count-cart { background: var(--red); left: auto; right: -12px; }
.count.bump { animation: bump .4s var(--ease); }

.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 2px 0; transition: .3s; }

.main-nav { background: var(--white); }
.nav-list { display: flex; justify-content: center; gap: 4px; padding-left: 210px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 12px 16px 14px; font-size: 14px; font-weight: 600; color: var(--navy);
}
.nav-list > li > a .chev { width: 14px; height: 14px; transition: transform .25s; }
.nav-list > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px;
  background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list > li > a:hover::after, .nav-list > li > a.active::after { transform: scaleX(1); }
.nav-list .nav-sale { color: var(--red); }

.dropdown {
  position: absolute; top: 100%; left: 8px; min-width: 210px;
  padding: 10px 0; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .25s var(--ease);
}
.dropdown a { display: block; padding: 9px 20px; font-size: 13.5px; color: var(--text); }
.dropdown a:hover { color: var(--red); background: var(--ivory); }
@media (hover: hover) and (min-width: 1025px) {
  .has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .has-drop:hover > a .chev { transform: rotate(180deg); }
}

/* ---------- 4. Hero / slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--gray-100); }
.slides { position: relative; height: clamp(420px, 44vw, 560px); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide-bg {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, #f4f4f6 0%, #eceef2 45%, #dfe2e8 100%);
}
.slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active .slide-bg img { transform: scale(1); }

/* Respaldo visual mientras no se suben las fotos del hero */
.hero-fallback { position: absolute; right: 16%; bottom: 0; height: 76%; width: 40%; display: flex; align-items: flex-end; justify-content: center; gap: 2%; }
.slide-bg img + .hero-fallback { display: none; }
.hero-fallback .fig {
  position: relative; flex: 1; max-width: 190px; height: 88%;
  background: var(--c); border-radius: 46% 46% 6px 6px / 22% 22% 6px 6px;
  box-shadow: inset -18px 0 30px rgba(0,0,0,.18);
}
.hero-fallback .fig:nth-child(2) { height: 96%; }
.hero-fallback .fig::before { /* cabeza */
  content: ""; position: absolute; left: 50%; top: -24%; width: 46%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #d9c3b0;
}
.hero-fallback .fig::after { /* cuello en V */
  content: ""; position: absolute; left: 50%; top: 0; width: 30%; height: 18%;
  transform: translateX(-50%); background: #d9c3b0; clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.slide-content { position: relative; z-index: 2; padding-left: 76px; }
.slide-content > * { max-width: 520px; }
.slide h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; color: var(--navy);
  margin-bottom: 22px;
}
.slide h1 span { display: block; color: var(--red); font-weight: 500; font-size: .82em; }
.slide .lead { font-size: 17px; color: var(--text); margin: 0 0 28px; max-width: 460px; }

/* Animación de entrada del texto en cada slide */
.slide .slide-content > * { opacity: 0; transform: translateY(18px); }
.slide.is-active .slide-content > * { animation: rise .8s var(--ease) forwards; }
.slide.is-active .slide-content > *:nth-child(2) { animation-delay: .1s; }
.slide.is-active .slide-content > *:nth-child(3) { animation-delay: .2s; }
.slide.is-active .slide-content > *:nth-child(4) { animation-delay: .3s; }

.signature {
  position: absolute; z-index: 2; right: 3%; top: 14%;
  font-family: var(--script); font-size: 40px; line-height: .9; color: var(--navy); text-align: center;
  transform: rotate(-6deg);
}
.signature span { position: relative; font-size: 34px; }
.signature span::after {
  content: ""; position: absolute; left: -10px; right: -16px; bottom: -8px; height: 2px;
  background: var(--red); border-radius: 2px; transform: rotate(-4deg);
}

.hero-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm);
  transition: .25s var(--ease);
}
.hero-arrow:hover { background: var(--navy); color: var(--white); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

.dots { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 10px; height: 6px; border-radius: 3px; background: rgba(18,35,74,.25); transition: .3s var(--ease); }
.dots button.is-active { width: 26px; background: var(--white); box-shadow: 0 0 0 1px rgba(18,35,74,.15); }

/* ---------- 5. Beneficios ---------- */
.benefits { border-bottom: 1px solid var(--gray-200); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.benefit { display: flex; align-items: center; justify-content: center; gap: 16px; }
.benefit svg { width: 30px; height: 30px; color: var(--navy); stroke-width: 1.5; }
.benefit strong { display: block; font-size: 13.5px; color: var(--navy); }
.benefit span { font-size: 12.5px; color: var(--muted); }

/* ---------- 6. Categorías ---------- */
.categories { padding: 26px 0 10px; }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  position: relative; overflow: hidden; aspect-ratio: 1.75 / 1;
  border-radius: var(--radius);
  /* Respaldo con el tono de la categoría mientras no hay foto */
  background:
    radial-gradient(circle at 78% 70%, var(--tone) 0 34%, transparent 35%),
    linear-gradient(120deg, #f1f1f4, #e2e4ea);
  box-shadow: var(--shadow-sm);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-card:hover img { transform: scale(1.06); }
.cat-text { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); z-index: 1; }
.cat-text h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.15; color: var(--navy); margin-bottom: 16px; }
.cat-text span { font-size: 13px; font-weight: 500; color: var(--navy); transition: .25s; }
.cat-card:hover .cat-text span { color: var(--red); letter-spacing: .5px; }

/* ---------- 7. Productos destacados ---------- */
.featured { padding: 46px 0 70px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 8px 20px; border-radius: 20px;
  background: var(--gray-100); font-size: 13px; font-weight: 500; color: var(--text);
  transition: .25s var(--ease);
}
.chip:hover { background: var(--gray-200); }
.chip.is-active { background: var(--navy); color: var(--white); }
.search-note { margin: -8px 0 20px; color: var(--muted); font-size: 14px; }
.search-note button { color: var(--red); font-weight: 600; text-decoration: underline; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product { display: flex; flex-direction: column; animation: rise .5s var(--ease) both; }
.product-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, #f5f5f7, #e6e8ee);
}
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.product-media img.alt { opacity: 0; }
.product:hover .product-media img { transform: scale(1.04); }
.product:hover .product-media img.alt { opacity: 1; }
.product-media .ph { /* silueta de respaldo */
  position: absolute; left: 50%; top: 52%; width: 62%; height: auto;
  transform: translate(-50%, -50%); fill: var(--tone); stroke: none;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.15));
}
.product-media img ~ .ph { display: none; }

.badge {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 3px;
  font-size: 11.5px; font-weight: 600; color: var(--white);
}
.badge.mas-vendido, .badge.oferta { background: var(--red); }
.badge.nuevo { background: #1f5fbf; }

.fav {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--navy);
  box-shadow: var(--shadow-sm); transition: .25s var(--ease);
}
.fav svg { width: 17px; height: 17px; }
.fav:hover { transform: scale(1.08); }
.fav.is-on { color: var(--red); }
.fav.is-on svg { fill: var(--red); }

.quick-add {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px;
  padding: 12px; border-radius: 4px;
  background: var(--navy); color: var(--white); font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: .3s var(--ease);
}
.quick-add:hover { background: var(--navy-900); }
.product:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: translateY(0); }

.product-info { padding: 14px 2px 0; }
.product-cat { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.product-name { margin: 4px 0 8px; font-size: 15px; font-weight: 600; color: var(--navy); }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-size: 16px; color: var(--text); }
.price del { font-size: 13.5px; color: var(--gray-400); }
.swatches { display: flex; gap: 6px; margin-top: 10px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--white), 0 0 0 2px var(--gray-200); }
.sizes { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.size {
  min-width: 34px; padding: 4px 8px; border: 1px solid var(--gray-200); border-radius: 3px;
  font-size: 12px; font-weight: 500; transition: .2s;
}
.size:hover { border-color: var(--navy); }
.size.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--muted); }

/* ---------- 8. Promo y newsletter ---------- */
.promo { padding: 0 0 70px; }
.promo-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 54px 60px; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 20%, rgba(200,16,46,.35), transparent 40%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
.promo h2 { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.2; max-width: 620px; margin-bottom: 12px; }
.promo p { margin: 0; color: rgba(255,255,255,.8); max-width: 560px; }
.promo .btn { flex-shrink: 0; }

.newsletter { padding: 70px 0; background: var(--ivory); text-align: center; }
.news-inner > p { color: var(--muted); margin: 12px auto 26px; }
.news-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.news-form input {
  flex: 1; height: 50px; padding: 0 18px; border: 1px solid var(--gray-200); border-radius: 4px;
  font: inherit; background: var(--white);
}
.news-form input:focus { outline: none; border-color: var(--navy); }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.footer-logo-img { width: 84px; height: 84px; margin-bottom: 14px; }
.footer-logo { font-family: var(--serif); font-size: 26px; color: var(--white); margin: 0 0 10px; }
.site-footer h4 { color: var(--white); font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: .25s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.footer-bottom p { margin: 0; }

/* ---------- 10. Carrito, WhatsApp, toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(11,23,52,.45); animation: fade .3s; }
.cart-drawer {
  position: fixed; z-index: 100; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease);
  box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.drawer-head h3 { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.cart-thumb { width: 72px; height: 88px; border-radius: 4px; background: var(--gray-100); position: relative; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { position: absolute; inset: 14% 12%; width: 76%; fill: var(--tone); stroke: none; }
.cart-thumb img ~ .ph { display: none; }
.cart-item h4 { font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.cart-item small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--gray-200); border-radius: 4px; }
.qty button { width: 28px; height: 28px; font-size: 16px; }
.qty span { min-width: 24px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-item .right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.remove { font-size: 12px; color: var(--muted); text-decoration: underline; }
.remove:hover { color: var(--red); }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--gray-200); background: var(--ivory); }
.subtotal { display: flex; justify-content: space-between; font-size: 16px; }
.drawer-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 16px; }

.wa-float {
  position: fixed; z-index: 80; right: 22px; bottom: 22px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa);
  box-shadow: 0 10px 24px rgba(37,211,102,.4); transition: transform .25s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.4s infinite; z-index: -1; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; stroke: none; }

.toast {
  position: fixed; z-index: 120; left: 50%; bottom: 28px;
  padding: 13px 22px; border-radius: 6px; background: var(--navy); color: var(--white);
  font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 11. Animaciones ---------- */
@keyframes rise { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes bump { 50% { transform: scale(1.35); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .slide .slide-content > * { opacity: 1; transform: none; }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1180px) {
  .header-actions { gap: 18px; }
  .action.country span { display: none; }
  .nav-list { padding-left: 150px; }
  .nav-list > li > a { padding-left: 11px; padding-right: 11px; }
  .signature { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 120px; }
  .header-top { grid-template-columns: auto auto 1fr; gap: 14px; padding-bottom: 10px; }
  .menu-toggle { display: grid; }
  .logo { grid-row: auto; width: 64px; }
  .logo img, .logo svg { width: 64px; height: 64px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .header-actions { justify-content: flex-end; gap: 6px; }
  .action { padding: 8px; }
  .action > span:not(.flag-pa) { display: none; }
  .action.country { display: none; }

  /* Menú móvil como panel */
  .main-nav {
    position: fixed; z-index: 95; top: 0; left: 0; bottom: 0; width: min(320px, 86%);
    overflow-y: auto; padding-top: 70px; box-shadow: var(--shadow);
    transform: translateX(-100%); transition: transform .4s var(--ease);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; padding: 0; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--gray-100); }
  .nav-list > li > a { justify-content: space-between; padding: 15px 24px; }
  .nav-list > li > a::after { display: none; }
  .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 10px; background: var(--ivory); border-radius: 0; }
  .has-drop.open .dropdown { display: block; }
  .has-drop.open > a .chev { transform: rotate(180deg); }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .menu-toggle { position: relative; z-index: 96; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit { justify-content: flex-start; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .promo-inner { flex-direction: column; align-items: flex-start; padding: 40px; }
  .quick-add { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .slides { height: 560px; }
  .slide { align-items: flex-start; padding-top: 44px; }
  .slide-bg img { object-position: 70% center; }
  .slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,244,246,.95) 0%, rgba(244,244,246,.75) 45%, rgba(244,244,246,0) 70%); }
  .hero-fallback { width: 80%; height: 46%; right: 10%; }
  .slide .lead { font-size: 15px; }
  .hero-arrow { display: none; }
  .slide-content { padding-left: 24px; }
  .cat-grid { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .cat-card { scroll-snap-align: start; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .chip { flex-shrink: 0; }
  .promo h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 14px; }
  .section-title { font-size: 23px; }
  .product-name { font-size: 14px; }
  .sizes { display: none; }
  .news-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-inner { padding: 30px 24px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
