@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #152a33;
  --ink-soft: #4a6470;
  --ink-light: #7e95a0;
  --brand: #1a7fa8;
  --brand-deep: #0d5c7a;
  --brand-light: #e8f4f8;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --mist: #f4f8fa;
  --mist-line: #e4edf1;
  --whatsapp: #25D366;
  --whatsapp-hover: #1eb956;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #ffffff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.u-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* Botones principales */
.btn-brand {
  background-color: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(26, 127, 168, 0.25);
  cursor: pointer;
}

.btn-brand:hover {
  background-color: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 92, 122, 0.35);
}

.btn-brand:active {
  transform: translateY(0) scale(0.98);
}

.btn-whatsapp-cta {
  background-color: var(--whatsapp);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-whatsapp-cta:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* Miniaturas de galería */
.thumb {
  transition: all 0.2s ease;
  cursor: pointer;
}

.thumb.active {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px var(--brand);
  opacity: 1 !important;
}

.thumb:not(.active) {
  opacity: 0.65;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Animaciones */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-reveal {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Pulso de WhatsApp */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-pulse {
  animation: wa-pulse 2.2s infinite;
}

@keyframes wa-bubble-in {
  from {
    opacity: 0;
    transform: translateX(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#wa-bubble {
  position: relative;
  animation: wa-bubble-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Video Containers verticales (9:16 formato Shorts/Reels) */
.video-box {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 16:9 vertical ratio */
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  background-color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.video-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Selector de Bundles */
.bundle-card {
  border: 2px solid var(--mist-line);
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bundle-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 127, 168, 0.08);
}

.bundle-card.selected {
  border-color: var(--brand);
  background-color: var(--brand-light);
  box-shadow: 0 8px 24px rgba(26, 127, 168, 0.15);
}

.bundle-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* Notificación de compra en vivo (Toast) */
.sales-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 55;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid var(--mist-line);
  box-shadow: 0 12px 30px rgba(21, 42, 51, 0.12);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.sales-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Acordeón FAQ personalizado */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary .faq-icon {
  transform: rotate(45deg);
  color: var(--brand);
}

.faq-icon {
  transition: transform 0.25s ease, color 0.25s ease;
}

section[id] { scroll-margin-top: 72px; }

/* ================= Menú móvil ================= */
.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--mist-line);
  border-radius: 12px;
  background: #ffffff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-deep);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-toggle:focus-visible,
.mobile-menu a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.mobile-menu {
  display: grid;
  padding: 0.5rem 1.25rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--mist-line);
  box-shadow: 0 16px 30px rgba(21, 42, 51, 0.1);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu a {
  padding: 0.9rem 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--mist-line);
}

.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:active { color: var(--brand); }

@media (min-width: 768px) {
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ================= Línea MaxPro ================= */
.maxpro {
  --active: #b0247f;
  --active-soft: #fbeef6;
  background:
    radial-gradient(1200px 520px at 85% 0%, color-mix(in srgb, var(--active-soft) 100%, transparent), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--active-soft) 100%);
  border-top: 1px solid var(--mist-line);
  padding: 4.5rem 0 4rem;
  transition: background 0.6s ease;
}

.maxpro-head {
  display: grid;
  gap: 1rem 3rem;
  align-items: end;
}

@media (min-width: 768px) {
  .maxpro-head { grid-template-columns: 1.1fr 1fr; }
}

.maxpro-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--active);
  margin: 0 0 0.35rem;
  transition: color 0.4s ease;
}

.maxpro-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 16ch;
}

.maxpro-lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
  max-width: 46ch;
}

/* Estante con los tres frascos */
.maxpro-shelf {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  border-bottom: 2px solid var(--mist-line);
}

@media (max-width: 760px) {
  .maxpro-shelf {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 34%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0 1.25rem;
  }
  .maxpro-shelf::-webkit-scrollbar { display: none; }
  .maxpro-pick { scroll-snap-align: center; }
}

/* Ingredientes en círculo (estilo afiche) */
.maxpro-ingredients {
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem 0.75rem;
}

.maxpro-ingredients:has(> figure:nth-child(6):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.maxpro-ingredients figure {
  margin: 0;
  text-align: center;
}

.maxpro-ingredients img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--p), 0 8px 16px rgba(21, 42, 51, 0.14);
}

.maxpro-ingredients figcaption {
  margin-top: 0.55rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.maxpro-ingredients figcaption strong {
  display: block;
  font-size: 0.82rem;
  color: var(--p-deep);
}

@media (max-width: 520px) {
  .maxpro-ingredients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .maxpro-ingredients img { width: 64px; height: 64px; }
}

.maxpro-pick {
  --p: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem 1.1rem;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink-soft);
  border-radius: 18px 18px 0 0;
  transition: background-color 0.3s ease;
}

.maxpro-pick img {
  height: 150px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(21, 42, 51, 0.18)) saturate(0.75);
  opacity: 0.72;
  transform: translateY(6px) scale(0.92);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, filter 0.3s ease;
}

.maxpro-pick-name {
  margin-top: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
}

.maxpro-pick-desc {
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.35;
}

.maxpro-pick::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -2px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--p);
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.maxpro-pick:hover img { opacity: 1; filter: drop-shadow(0 10px 14px rgba(21, 42, 51, 0.2)); }

.maxpro-pick.is-active {
  background: color-mix(in srgb, var(--p-soft) 70%, #ffffff);
}

.maxpro-pick.is-active img {
  opacity: 1;
  filter: drop-shadow(0 16px 20px rgba(21, 42, 51, 0.25));
  transform: translateY(0) scale(1.04);
}

.maxpro-pick.is-active .maxpro-pick-name { color: var(--p); }
.maxpro-pick.is-active::after { transform: scaleX(1); }

.maxpro-pick:focus-visible,
.maxpro-add:focus-visible,
.maxpro-ask:focus-visible,
.maxpro-more summary:focus-visible,
.mp-qty button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Panel de detalle */
.maxpro-panel {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: start;
}

.maxpro-panel[hidden] { display: none; }

@media (min-width: 900px) {
  .maxpro-panel { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
}

.maxpro-panel.is-entering .maxpro-stage-bottle {
  animation: mp-bottle-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.maxpro-panel.is-entering .maxpro-info {
  animation: mp-info-in 0.5s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes mp-bottle-in {
  from { opacity: 0; transform: translateY(26px) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}

@keyframes mp-info-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

.maxpro-stage {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  background:
    radial-gradient(70% 55% at 50% 72%, #ffffff 0%, transparent 70%),
    linear-gradient(160deg, var(--p-soft) 0%, color-mix(in srgb, var(--p) 22%, var(--p-soft)) 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.5rem 1.5rem 3.5rem;
  border: 1px solid color-mix(in srgb, var(--p) 18%, transparent);
}

@media (min-width: 900px) {
  .maxpro-stage { position: sticky; top: 96px; min-height: 540px; }
}

.maxpro-stage-photo {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #ffffff;
  box-shadow: 0 12px 28px rgba(21, 42, 51, 0.16);
}

.maxpro-stage-bottle {
  position: relative;
  height: 380px;
  max-height: 72vw;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 26px rgba(21, 42, 51, 0.32));
  z-index: 1;
}

@media (min-width: 900px) {
  .maxpro-stage-bottle { height: 430px; }
}

.maxpro-stage-tag {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #ffffff;
  color: var(--p-deep);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(21, 42, 51, 0.1);
  z-index: 2;
}

.maxpro-name {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--p-deep);
  margin: 0;
}

.maxpro-tagline {
  margin: 0.6rem 0 0;
  font-weight: 700;
  color: var(--p);
  font-size: 0.98rem;
}

.maxpro-text {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 60ch;
}

.maxpro-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.maxpro-points li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.maxpro-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.2 13.6 4.6 10l-1.2 1.2 4.8 4.8 9-9-1.2-1.2z'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.maxpro-points strong { color: var(--ink); }

.maxpro-facts {
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: color-mix(in srgb, var(--p) 16%, var(--mist-line));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--p) 16%, var(--mist-line));
}

.maxpro-facts > div {
  background: #ffffff;
  padding: 0.9rem 1rem;
}

.maxpro-facts dt {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--p);
}

.maxpro-facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 480px) {
  .maxpro-facts { grid-template-columns: 1fr; }
}

.maxpro-more {
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid var(--mist-line);
  border-radius: 16px;
  padding: 0 1rem;
}

.maxpro-more summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.maxpro-more summary::after {
  content: '+';
  font-size: 1.35rem;
  color: var(--p);
  transition: transform 0.25s ease;
}

.maxpro-more[open] summary::after { transform: rotate(45deg); }

.maxpro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin-bottom: 0.9rem;
}

.maxpro-table td {
  padding: 0.5rem 0;
  border-top: 1px solid var(--mist-line);
  color: var(--ink-soft);
}

.maxpro-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--p-deep);
}

.maxpro-table em { color: var(--ink-light); }

.maxpro-warning {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--p);
  background: color-mix(in srgb, var(--p-soft) 60%, #ffffff);
  border-radius: 0 12px 12px 0;
}

.maxpro-warning strong { color: var(--ink); }

.maxpro-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.maxpro-add {
  background: var(--p);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--p) 35%, transparent);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.maxpro-add:hover {
  background: var(--p-deep);
  transform: translateY(-2px);
}

.maxpro-add.is-added {
  background: #0f9d6b;
  box-shadow: 0 8px 22px rgba(15, 157, 107, 0.3);
}

.maxpro-ask {
  color: var(--p-deep);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--p) 40%, transparent);
  padding: 0.5rem 0.25rem;
}

.maxpro-ask:hover { text-decoration-color: var(--p); }

.maxpro-legal {
  margin: 3rem auto 0;
  max-width: 70ch;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-light);
}

@media (max-width: 640px) {
  .maxpro { padding: 3.5rem 0 3rem; }
  .maxpro-pick img { height: 104px; }
  .maxpro-pick-desc { display: none; }
  .maxpro-pick-name { font-size: 0.85rem; }
  .maxpro-stage { min-height: 400px; }
  .maxpro-stage-bottle { height: 300px; }
  .maxpro-stage-photo { width: 36%; }
}

/* Resumen de compra: Esplendor opcional + productos MaxPro */
.summary-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--mist-line);
  cursor: pointer;
}

.summary-toggle input { width: 1rem; height: 1rem; accent-color: var(--brand); }

.maxpro-summary {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--mist-line);
}

.maxpro-summary[hidden] { display: none; }

.maxpro-summary-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
}

.maxpro-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.mp-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mp-line img {
  width: 34px;
  height: 46px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--mist-line);
  border-radius: 8px;
  padding: 2px;
}

.mp-line-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.mp-line-name small {
  display: block;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.mp-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mist-line);
  border-radius: 999px;
  background: #ffffff;
}

.mp-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-deep);
  cursor: pointer;
  border-radius: 50%;
}

.mp-qty span {
  min-width: 1.4rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.maxpro-summary-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}

#summary-maxpro-row[hidden],
#summary-total-note[hidden] { display: none; }

.esplendor-off .bundle-card { opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  .wa-pulse, #wa-bubble, .hero-reveal, .sales-toast,
  .maxpro, .maxpro-pick img, .maxpro-pick::after,
  .maxpro-panel.is-entering .maxpro-stage-bottle,
  .maxpro-panel.is-entering .maxpro-info {
    animation: none !important;
    transition: none !important;
  }
}
