:root {
  --primary-top: #DB1D7B;
  --primary-bottom: #8E1257;
  --primary: #DB1D7B;
  --primary-dark: #8E1257;
  --primary-light: #FDE3F1;
  --ink: #26202a;
  --ink-soft: #6b6470;
  --bg: #ffffff;
  --bg-alt: #FAF6F8;
  --border: #ECE3E9;
  --radius: 14px;
  --max-width: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* Header */
.site-header {
  background: linear-gradient(90deg, var(--primary-top) 0%, var(--primary-bottom) 100%);
  padding: 14px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header .logo img { height: 42px; width: auto; }
.site-header .whatsapp-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); color: #fff; padding: 9px 16px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.35);
}
.site-header .whatsapp-link:hover { background: rgba(255,255,255,.25); }

/* Hero carousel */
.hero-carousel { position: relative; width: 100%; height: var(--hero-h, 320px); min-height: 100px; margin-bottom: 24px; overflow: hidden; background: var(--bg-alt); }
.hero-carousel .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background-size: cover; background-position: center;
}
.hero-carousel .slide.active { opacity: 1; }

/* Animación: zoom suave (Ken Burns) */
.hero-carousel.anim-zoom .slide { transform: scale(1); transition: opacity .8s ease, transform var(--hero-interval, 5000ms) linear; }
.hero-carousel.anim-zoom .slide.active { transform: scale(1.08); }

/* Animación: deslizar (la nueva imagen cubre a la anterior desde la derecha) */
.hero-carousel.anim-slide .slide { opacity: 1; transform: translateX(100%); transition: transform .7s ease; }
.hero-carousel.anim-slide .slide.active { transform: translateX(0); z-index: 2; }

.hero-carousel .dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-carousel .dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.55);
  cursor: pointer; padding: 0;
}
.hero-carousel .dots button.active { background: #fff; }
.hero-carousel.empty { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 640px) { .hero-carousel { height: max(100px, calc(var(--hero-h, 320px) * .45)); } }

/* Gender banners */
.gender-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.gender-banner { position: relative; height: var(--gender-h, 480px); background: var(--bg-alt); overflow: hidden; }
.gender-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(0); transition: filter .5s ease; }
.gender-banner:hover img { filter: grayscale(1); }
.gender-banner .label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 24px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
  color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .3px;
}
.gender-banner.empty { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 640px) {
  .gender-banners { grid-template-columns: 1fr; }
  .gender-banner { height: max(120px, calc(var(--gender-h, 480px) * .4)); }
}

/* Section titles */
.section { padding: 56px 0; }
.section-title { text-align: center; font-size: 26px; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
.section-subtitle { text-align: center; color: var(--ink-soft); margin: 0 0 36px; font-size: 15px; }

/* Marcas (carrusel de logos) */
.brand-marquee-section { padding: 40px 0; }
.brand-marquee-title { margin-bottom: 28px; }
.brand-marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.brand-marquee-track {
  display: flex; align-items: center; width: max-content;
  animation-name: brand-marquee-scroll; animation-timing-function: linear; animation-iteration-count: infinite;
}
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-logo { flex-shrink: 0; padding: 0 40px; display: flex; align-items: center; }
.brand-logo img {
  width: auto; filter: grayscale(1); opacity: .55;
  transition: filter .2s ease, opacity .2s ease;
}
.brand-logo img:hover { filter: grayscale(0); opacity: 1; }
@keyframes brand-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track { animation: none; }
}

/* Vitrina MercadoLibre */
.ml-shop-section { padding: 50px 0; }
.ml-shop-heading { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 30px; }
.ml-badge { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ml-badge img { width: 100%; height: 100%; object-fit: cover; }
.ml-shop-marquee {
  --ml-pad: clamp(16px, 17vw, 260px);
  overflow: hidden; width: 100%; padding: 4px var(--ml-pad);
  -webkit-mask-image: linear-gradient(90deg, transparent, black calc(var(--ml-pad) + 90px), black calc(100% - var(--ml-pad) - 90px), transparent);
  mask-image: linear-gradient(90deg, transparent, black calc(var(--ml-pad) + 90px), black calc(100% - var(--ml-pad) - 90px), transparent);
}
.ml-shop-track {
  display: flex; gap: 20px; width: max-content; padding: 0 20px;
  animation-name: ml-shop-scroll; animation-timing-function: linear; animation-iteration-count: infinite;
}
.ml-shop-marquee:hover .ml-shop-track { animation-play-state: paused; }
@keyframes ml-shop-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ml-shop-track { animation: none; }
}
.ml-product {
  display: block; width: 240px; flex-shrink: 0; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.ml-product:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(142,18,87,.14); }
.ml-product-thumb { aspect-ratio: 1/1; background: #fff; overflow: hidden; }
.ml-product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ml-product:hover .ml-product-thumb img { transform: scale(1.08); }
.ml-product-body { padding: 14px 16px 16px; }
.ml-product-body h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.ml-product-price { font-size: 16px; font-weight: 800; color: var(--primary-dark); margin-bottom: 6px; }
.ml-product-link { font-size: 12px; color: var(--primary); font-weight: 600; }
.ml-shop-cta-wrap { text-align: center; margin-top: 30px; }
.ml-shop-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-top) 0%, var(--primary-bottom) 100%);
  color: #fff; font-weight: 700; font-size: 14px; transition: opacity .2s ease;
}
.ml-shop-cta:hover { opacity: .9; }

/* Feature cards (promocionales) */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(142,18,87,.14); }
.feature-card .thumb {
  aspect-ratio: 4/3; margin: 16px 16px 0; padding: 7px; border-radius: 24px;
  background: linear-gradient(145deg, var(--primary-top) 0%, var(--primary-bottom) 100%);
  box-shadow: 0 10px 24px rgba(142,18,87,.3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.feature-card .thumb img.uploaded {
  width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block;
  transform: scale(1); transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.feature-card:hover .thumb img.uploaded { transform: scale(1.14) rotate(-1deg); }
.feature-card .thumb img.icon { width: 56px; height: 56px; transition: transform .4s ease; }
.feature-card:hover .thumb img.icon { transform: scale(1.12); }
.feature-card .body { padding: 20px 22px 24px; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
@media (max-width: 820px) { .feature-cards { grid-template-columns: 1fr; } }

/* Info cards */
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.info-card { text-align: center; padding: 10px; }
.info-card img { width: 44px; height: 44px; margin: 0 auto 14px; }
.info-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
@media (max-width: 820px) { .info-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .info-cards { grid-template-columns: 1fr; } }

.bg-alt { background: var(--bg-alt); }

/* Footer */
.site-footer { background: var(--primary-dark); color: #fff; padding: 40px 0 24px; margin-top: 20px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer .col { min-width: 200px; }
.site-footer h5 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; opacity: .85; }
.site-footer p, .site-footer a { font-size: 14px; opacity: .95; margin: 0 0 6px; display: block; }
.site-footer .social { display: flex; gap: 12px; margin-top: 8px; }
.site-footer .social-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
  margin: 0; transition: background .2s ease;
}
.site-footer .social-icon:hover { background: rgba(255,255,255,.28); }
.site-footer .social-icon svg { width: 18px; height: 18px; display: block; }
.site-footer .bottom { text-align: center; margin-top: 30px; font-size: 12px; opacity: .65; }

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float img { width: 30px; height: 30px; }

/* Test Visual */
.tv-section { padding: 60px 0 80px; }
.tv-container { display: flex; justify-content: center; }
.tv-card {
  background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 42px 38px;
  max-width: 560px; width: 100%; text-align: center; box-shadow: 0 14px 34px rgba(142,18,87,.1);
}
.tv-title { font-size: 24px; font-weight: 800; margin: 0 0 16px; color: var(--ink); }
.tv-text { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.tv-check { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 14px; margin-bottom: 26px; cursor: pointer; color: var(--ink); }
.tv-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); }
.tv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px;
  border-radius: 999px; font-weight: 700; font-size: 15px; border: none; cursor: pointer; text-decoration: none;
  margin: 6px;
}
.tv-btn-primary { background: linear-gradient(90deg, var(--primary-top) 0%, var(--primary-bottom) 100%); color: #fff; }
.tv-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.tv-btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.tv-btn-ghost { background: none; color: var(--ink-soft); text-decoration: underline; padding: 10px; font-weight: 600; }
.tv-menu { display: flex; flex-direction: column; gap: 14px; margin-bottom: 10px; }
.tv-menu-btn { justify-content: space-between; margin: 0; }
.tv-check-mark { font-size: 16px; }
.tv-instructions { text-align: left; margin: 0 0 26px; padding-left: 20px; color: var(--ink); font-size: 15px; line-height: 1.8; }
.tv-eye-label { font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; font-size: 15px; }
.tv-optotype-wrap { display: flex; align-items: center; justify-content: center; min-height: 180px; margin-bottom: 26px; }
.tv-e { font-family: Arial, sans-serif; font-weight: 900; line-height: 1; color: var(--ink); user-select: none; }
.tv-arrows {
  display: grid; grid-template-columns: 60px 60px 60px; grid-template-rows: 60px 60px;
  justify-content: center; gap: 8px; margin: 0 auto 10px;
}
.tv-arrow { border-radius: 14px; border: none; background: var(--primary); color: #fff; font-size: 22px; cursor: pointer; }
.tv-arrow:hover { background: var(--primary-dark); }
.tv-arrow-up { grid-column: 2; grid-row: 1; }
.tv-arrow-left { grid-column: 1; grid-row: 2; }
.tv-arrow-right { grid-column: 3; grid-row: 2; }
.tv-arrow-down { grid-column: 2; grid-row: 2; }
.tv-yesno { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tv-final-list { text-align: left; margin: 0 0 22px; }
.tv-final-item { padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); margin-bottom: 10px; font-size: 14px; }
.tv-final-item strong { display: block; margin-bottom: 4px; }
.tv-final-item.ok { border-left: 4px solid #1E8E5C; }
.tv-final-item.warn { border-left: 4px solid #C0392B; }
@media (max-width: 640px) {
  .tv-card { padding: 30px 22px; }
  .tv-arrows { grid-template-columns: 52px 52px 52px; grid-template-rows: 52px 52px; }
}
