/* Importar fuentes oficiales del tema Ipanema (Montserrat + Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #FFFFFF;
  --panel: #F8F9FA;
  --panel-2: #F1F3F5;
  --line: #E9ECEF;
  --text: #111827;
  --text-dim: #6B7280;
  --neon-yellow: #E6F500;
  --l1: #2F7FE0;
  --l2: #D97706;
  --l3: #DC2626;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --radius: 2px;
  --transition: all 0.2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- BARRA SUPERIOR ANUNCIO (100% ESPAÑOL) ---------- */
.announcement-bar {
  background: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

.announcement-bar span {
  margin: 0 10px;
}

.announcement-bar strong {
  color: var(--neon-yellow);
}

/* ---------- HEADER IPANEMA ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.topbar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 30px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.icon-btn:hover { opacity: 0.65; }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--text); }

.brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  text-align: center;
}

.brand-logo-img {
  height: 31px;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-subtext {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: #000000;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 5px;
  display: block;
  text-align: center;
  transition: color 0.2s ease;
}

.brand-center:hover .brand-logo-img {
  transform: scale(1.04);
  opacity: 0.85;
}

.brand-center:hover .brand-subtext {
  color: #2F7FE0;
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #000000;
  text-transform: uppercase;
  line-height: 1;
}

.hero-badge-logo {
  height: 13px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-logo {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.topbar-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #000000;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge.bounce { transform: scale(1.3); }

/* Menú centrado inferior en español */
.navrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 8px 24px 14px;
  position: relative;
}

.navrow a {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #000000;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.navrow a:hover {
  opacity: 0.7;
  color: #2F7FE0;
}

.navrow a.sale-link {
  color: #DC2626;
  font-weight: 800;
}

.navrow a.sale-link:hover {
  color: #B91C1C;
  opacity: 1;
}

/* Dropdown para PRODUCTOS y PROTOCOLOS QR */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 14px;
  margin-top: -6px;
  margin-bottom: -14px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  background: #FFFFFF;
  min-width: 260px;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 
    0 20px 40px -6px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.12s; /* Margen de gracia para evitar cierres accidentales */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Alineación limpia según la posición en la botonera */
.nav-item-dropdown:first-of-type .nav-dropdown-menu {
  left: 0;
  transform: translateY(4px);
}

.nav-item-dropdown:last-of-type .nav-dropdown-menu {
  right: 0;
  left: auto;
  transform: translateY(4px);
}

/* Puente invisible que conecta el botón con el menú para eliminar cualquier brecha muerta */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -15px;
  right: -15px;
  height: 24px;
  background: transparent;
  display: block;
}

/* Estado activo y visible por hover, focus y clase JS */
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s; /* Aparece de inmediato */
}

.nav-item-dropdown:first-of-type:hover .nav-dropdown-menu,
.nav-item-dropdown:first-of-type:focus-within .nav-dropdown-menu,
.nav-item-dropdown:first-of-type.is-open .nav-dropdown-menu {
  transform: translateY(0);
}

.nav-item-dropdown:last-of-type:hover .nav-dropdown-menu,
.nav-item-dropdown:last-of-type:focus-within .nav-dropdown-menu,
.nav-item-dropdown:last-of-type.is-open .nav-dropdown-menu {
  transform: translateY(0);
}

.nav-dropdown-menu a {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 10px 14px;
  border-radius: 8px;
  color: #1F2937;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.nav-dropdown-menu a span {
  font-size: 10.5px;
  color: #6B7280;
  font-weight: 600;
  margin-left: 12px;
}

.nav-dropdown-menu a:hover {
  background: #EFF6FF;
  color: #1D4ED8;
  opacity: 1;
  transform: translateX(3px);
}

.nav-dropdown-menu a:hover span {
  color: #1D4ED8;
}

.catalog-filters .sale-filter {
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.35);
  background: #FFF5F5;
  font-weight: 800;
}

.catalog-filters .sale-filter:hover,
.catalog-filters .sale-filter.active {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

/* ---------- PORTADA CON LA FOTO OFICIAL (ESTUCHE CON QR) ---------- */
/* ---------- PORTADA ESTUDIO ALTO CONTRASTE (ESTILO IPANEMA DARK STAGE) ---------- */
.ipanema-hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(500px, 78vh, 660px);
  background: #090D16;
  background: radial-gradient(circle at 65% 50%, #152238 0%, #0B101C 55%, #06080E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 2px solid #000000;
  padding: 40px 24px;
}

.hero-glow-effect {
  position: absolute;
  top: 50%;
  left: 65%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(47, 127, 224, 0.28) 0%, rgba(47, 127, 224, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

.hero-studio-grid {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

/* Columna de Texto de Alto Impacto */
.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge-pill {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #000000;
  background: var(--neon-yellow);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-main-headline {
  font-family: var(--font-heading);
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero-sub-desc {
  font-size: 15px;
  color: #D1D5DB;
  max-width: 48ch;
  line-height: 1.6;
  margin: 0 0 28px;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Botón Blanco Ipanema */
.ipanema-shop-btn {
  background: #FFFFFF;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 15px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.ipanema-shop-btn:hover {
  background: var(--neon-yellow);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(230, 245, 0, 0.25);
}

.hero-secondary-btn {
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.hero-secondary-btn:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* Columna Visual de Alto Contraste (La Foto del Estuche con Relieve) */
.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product-showcase {
  position: relative;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 22px 18px 18px;
  max-width: 380px;
  width: 100%;
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(47, 127, 224, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-product-showcase:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 40px 80px -15px rgba(0, 0, 0, 0.95),
    0 0 65px rgba(47, 127, 224, 0.35);
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.hero-showcase-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
}

.hero-showcase-foot span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #111827;
  letter-spacing: .06em;
}

.hero-showcase-foot strong {
  font-size: 11px;
  font-weight: 800;
  color: #2F7FE0;
}

/* Flechas del Slider Ipanema */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 22px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
}

.slider-arrow:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.slider-arrow.left { left: 24px; }
.slider-arrow.right { right: 24px; }

/* Indicadores Dots del Hero */
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.2);
}

.hero-dot.active {
  width: 32px;
  border-radius: 6px;
  background: #2F7FE0;
  border-color: #2F7FE0;
  box-shadow: 0 0 14px rgba(47, 127, 224, 0.7);
}

/* Transición suave entre productos en el hero */
.hero-text-col,
.hero-product-showcase {
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.hero-fade-out .hero-text-col {
  opacity: 0;
  transform: translateY(8px);
}

.hero-fade-out .hero-product-showcase {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
}

/* ---------- BARRA DE BENEFICIOS (100% ESPAÑOL) ---------- */
.benefits-bar {
  border-bottom: 1px solid var(--line);
  background: #FFFFFF;
}

.benefits-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  stroke: #000000;
}

.benefit-text h5 {
  font-size: 12.5px;
  font-weight: 800;
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.benefit-text p {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- MOSAICO DE COLECCIONES ---------- */
.categories-section {
  max-width: 1240px;
  margin: 44px auto 0;
  padding: 0 24px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.category-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 250px;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  cursor: pointer;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

.category-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.85) 100%);
}

.category-tile-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.category-tile-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--neon-yellow);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.category-tile-content h4 {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 4px;
  text-transform: uppercase;
}

.category-tile-content span {
  font-size: 12px;
  font-weight: 600;
  color: #E5E7EB;
}

/* ---------- SECCIÓN CATÁLOGO ---------- */
.section-head {
  text-align: center;
  padding: 60px 24px 16px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.section-head p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 9px 22px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover { color: #000; border-color: #000; }
.filter-btn.active {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

/* ---------- GRILLA DE PRODUCTOS ---------- */
.grid-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: #000000;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-media {
  position: relative;
  aspect-ratio: 1/1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.product-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-real-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease, opacity 0.35s ease;
}

.product-media-wrapper .main-img {
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.product-media-wrapper .hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s ease;
  pointer-events: none;
}

.card:hover .product-media-wrapper .hover-img {
  opacity: 1;
  transform: scale(1.05);
}

.card:hover .product-media-wrapper .main-img {
  opacity: 0;
}

.hover-view-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.78);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.card:hover .hover-view-tag {
  opacity: 1;
}

.card:not(:has(.product-media-wrapper)):hover .product-real-img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  letter-spacing: .06em;
  color: #000;
  background: var(--neon-yellow);
  border-radius: var(--radius);
  z-index: 2;
  text-transform: uppercase;
}

.card-ship {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  background: #000000;
  color: #FFFFFF;
  border-radius: var(--radius);
  z-index: 2;
  letter-spacing: .04em;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.card-category {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
  text-transform: uppercase;
}

.spec-pills {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--panel);
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.spec-pills .pill {
  font-size: 11px;
  color: var(--text-dim);
}

.spec-pills .pill strong { color: var(--text); }

.card-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.price-box {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-row-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-old {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-now {
  font-size: 20px;
  font-weight: 800;
  color: #000000;
}

.price-off {
  font-size: 11px;
  font-weight: 800;
  color: #000000;
  background: var(--neon-yellow);
  padding: 2px 6px;
  border-radius: var(--radius);
}

.price-installments {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
  font-weight: 500;
}

.price-cash {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--l1);
  margin: 0;
}

.card-actions-row {
  margin: 6px 0 8px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.card-action-left {
  display: flex;
  align-items: center;
}

.card-action-right {
  display: flex;
  align-items: center;
}

.btn-view-protocol {
  background: none;
  border: none;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #000000;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 1px;
}

.btn-view-protocol:hover {
  color: var(--l1);
}

.protocol-guide-link {
  font-size: 11px;
  font-weight: 700;
  color: #1D4ED8;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 8px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.protocol-guide-link:hover {
  background: #1D4ED8;
  color: #FFFFFF;
  border-color: #1D4ED8;
}

.meli-direct-btn {
  font-size: 11px;
  font-weight: 800;
  color: #000000;
  background: #FFE600;
  border: 1px solid #E6CF00;
  padding: 4px 9px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .02em;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.meli-direct-btn:hover {
  background: #FFD000;
  border-color: #D6BF00;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.meli-link {
  font-size: 11px;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 8px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.meli-link:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.add-btn {
  margin-top: auto;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius);
  border: none;
  background: #000000;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.add-btn:hover {
  background: #333333;
  transform: translateY(-1px);
}

/* ---------- SERVICIO SUTIL CALLOUT ---------- */
.service-callout-section {
  max-width: 1240px;
  margin: 30px auto 50px;
  padding: 0 24px;
}

.service-callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: center;
}

.service-callout-text h3 {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.service-callout-text p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 20px;
}

.service-callout-cta {
  display: flex;
  justify-content: flex-end;
}

/* ---------- NEWSLETTER (100% ESPAÑOL) ---------- */
.newsletter-section {
  background: #000000;
  color: #FFFFFF;
  padding: 56px 24px;
  text-align: center;
}

.newsletter-inner {
  max-width: 580px;
  margin: 0 auto;
}

.newsletter-inner h3 {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 8px;
}

.newsletter-inner p {
  font-size: 13.5px;
  color: #A3A3A3;
  margin: 0 0 24px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid #333;
  background: #1A1A1A;
  color: #FFF;
  font-size: 13.5px;
  outline: none;
}

.newsletter-form input:focus { border-color: var(--neon-yellow); }

.newsletter-form button {
  background: var(--neon-yellow);
  color: #000000;
  font-weight: 800;
  padding: 0 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
}

/* ---------- DRAWER CARRITO ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  z-index: 101;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Barra de Progreso de Envío Gratis en Carrito */
.cart-shipping-banner {
  background: #F4F4F5;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
}

.cart-shipping-text {
  font-size: 12px;
  font-weight: 600;
  color: #27272A;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.4;
}

.cart-shipping-text strong {
  color: #000000;
}

.cart-shipping-bar-track {
  width: 100%;
  height: 6px;
  background: #E4E4E7;
  border-radius: 3px;
  overflow: hidden;
}

.cart-shipping-bar-fill {
  height: 100%;
  background: #2563EB;
  border-radius: 3px;
  transition: width 0.35s ease, background 0.35s ease;
}

.cart-shipping-bar-fill.completed {
  background: #059669;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.cart-empty svg {
  width: 44px;
  height: 44px;
  stroke: var(--text-dim);
  margin-bottom: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 4px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--text-dim);
}

.cart-item-price {
  font-size: 13.5px;
  font-weight: 800;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.qty-btn {
  background: none;
  border: none;
  padding: 3px 8px;
  font-size: 13px;
  cursor: pointer;
}

.qty-val {
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
  min-width: 18px;
  text-align: center;
}

.cart-item-del {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  font-size: 11px;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

.cart-summary-row.total {
  font-size: 16px;
  font-weight: 800;
  color: #000;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.cart-transfer-note {
  font-size: 11px;
  background: #EAF4FE;
  color: var(--l1);
  padding: 8px 10px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
}

.checkout-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-mercadopago {
  background: #000000;
  color: #ffffff;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

/* ---------- MODAL GUÍA DE NIVELES ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-content {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  padding: 30px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-head h3 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.modal-head p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.protocol-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.proto-btn {
  flex: 1;
  padding: 11px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.proto-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.proto-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

.proto-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.proto-weight-val {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-top: 4px;
}

.proto-spec-bar {
  height: 6px;
  border-radius: 3px;
  background: #E2E6EC;
  overflow: hidden;
  margin-top: 12px;
}

.proto-spec-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.proto-avatar-list, .exercise-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.proto-avatar-item, .exercise-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.exercise-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
}

.exercise-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #000000;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 120;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- FOOTER IPANEMA (100% ESPAÑOL) ---------- */
footer {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  padding: 60px 24px 34px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
}

.footer-col p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: #000; }

.payment-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pay-badge {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
}

.footer-disclaimer-wrap {
  max-width: 1240px;
  margin: 0 auto 28px;
  padding: 16px 20px;
  background: #F9FAFB;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer-disclaimer {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

.footer-disclaimer strong {
  color: #111827;
  font-weight: 700;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #9CA3AF;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- RESPONSIVE & MOBILE / DESKTOP OPTIMIZATIONS ---------- */

/* Prevenir zoom forzado en iOS Safari al enfocar inputs */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Zero horizontal overflow en todas las pantallas */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

/* Botones de control con tap target ergonómico */
.icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-btn {
  min-height: 44px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
}

.qty-btn {
  min-width: 38px;
  min-height: 38px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.filter-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

@media (max-width: 960px) {
  .navrow {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 10px 16px 14px;
    gap: 16px;
  }
  .navrow::-webkit-scrollbar {
    display: none;
  }
  .hero-studio-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-text-col {
    align-items: center;
    text-align: center;
  }
  .hero-sub-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-product-showcase {
    max-width: 340px;
  }
  .benefits-inner { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: 1fr; }
  .service-callout { grid-template-columns: 1fr; text-align: center; }
  .service-callout-cta { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .brand-logo-img { height: 26px; }
  .brand-subtext { font-size: 9.5px; letter-spacing: 0.22em; text-indent: 0.22em; margin-top: 4px; }
  .brand-logo-text { font-size: 22px; }
  .announcement-bar {
    font-size: 10px;
    padding: 7px 12px;
    letter-spacing: .05em;
  }
  .hero-main-headline { font-size: 34px; line-height: 1.1; }
  .hero-sub-desc { font-size: 13.5px; line-height: 1.5; }
  .hero-studio-grid { gap: 24px; padding: 20px 16px 40px; }
  .slider-arrow {
    display: flex;
    width: 44px;
    height: 44px;
    font-size: 18px;
    top: 38%;
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
    touch-action: manipulation;
  }
  .slider-arrow.left { left: 6px; }
  .slider-arrow.right { right: 6px; }
  .hero-dots { bottom: 12px; }
  .hero-product-showcase { max-width: 280px; padding: 16px; }
  .benefits-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
  }
  .grid-wrap { padding: 16px 14px 40px; }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 18px;
  }
  .modal-content {
    padding: 22px 16px;
    max-height: 92vh;
    border-radius: 12px;
  }
  .section-head { padding: 40px 16px 12px; }
  .section-head h2 { font-size: 24px; }
}

@media (max-width: 400px) {
  .hero-main-headline { font-size: 28px; }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .brand-logo-img { height: 23px; }
  .brand-subtext { font-size: 8.5px; letter-spacing: 0.18em; text-indent: 0.18em; margin-top: 3px; }
  .brand-logo-text { font-size: 19px; }
  .topbar { padding: 10px 10px; }
  .topbar-right { gap: 8px; }
}

/* Botón Mercado Libre en Carrito y Acciones de Producto */
.btn-meli-cart {
  background: #FFE600;
  color: #000000;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(255, 230, 0, 0.25);
}

.btn-meli-cart:hover {
  background: #FFD000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.4);
}

.cart-item-pricing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.cart-item-meli-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF9C4;
  color: #854D0E;
  border: 1px solid #FEF08A;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.cart-item-meli-badge:hover {
  background: #FFE600;
  color: #000000;
  border-color: #FACC15;
}

/* Modal Selector Mercado Libre */
.meli-modal-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meli-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.meli-modal-item:hover {
  background: #FFFFFF;
}

.meli-modal-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.meli-modal-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meli-modal-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.meli-modal-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
}

.meli-modal-btn {
  background: #FFE600;
  color: #000000;
  font-size: 11.5px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(255, 230, 0, 0.25);
}

.meli-modal-btn:hover {
  background: #FFD000;
}
