/* ==================== VARIABLES ==================== */
:root {
  --white: #ffffff;
  --blue-25: #f7fbff;
  --blue-50: #eef6ff;
  --blue-100: #dfeeff;
  --blue-150: #cde4ff;
  --blue-200: #b7d8ff;
  --blue-300: #8ec0ff;
  --blue-500: #4f8ff2;
  --blue-600: #3672d9;
  --blue-700: #2a5bb0;
  --navy-900: #101f33;
  --navy-700: #2a3a52;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --gold: #ffb648;
  --gold-dim: #ffd9a0;
  --star-empty: #dbe6f5;
  --red: #e0483f;
  --red-dim: #fdeceb;
  --green: #3a9d6f;

  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --accent-dim: rgba(20, 184, 166, 0.14);
  --ink-950: #0a0f14;
  --ink-900: #0d1418;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px -12px rgba(35, 74, 140, 0.18);
  --shadow-card: 0 18px 45px -18px rgba(24, 60, 120, 0.22);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.dot { color: var(--accent); }

/* ==================== NAVBAR ==================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(180, 210, 255, 0.35);
  transition: background 300ms var(--ease);
}
.nav__brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--navy-900);
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}
.nav__links a {
  text-decoration: none;
  color: var(--navy-700);
  opacity: 0.8;
  transition: opacity 200ms;
}
.nav__links a:hover { opacity: 1; color: var(--accent-dark); }
.nav__cta {
  text-decoration: none;
  background: var(--navy-900);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 200ms var(--ease), background 200ms;
}
.nav__cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ==================== NAV VISIBILITY ==================== */
.nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease), background 300ms var(--ease);
}
.nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==================== VIDEO HERO ==================== */
.vhero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink-950);
}
.vhero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.vhero__mark {
  position: absolute;
  top: 28px;
  right: clamp(16px, 5vw, 48px);
  z-index: 60;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.vhero__mark .dot { color: var(--accent); }

.vhero__cta {
  position: absolute;
  left: 50%;
  bottom: clamp(48px, 9vh, 88px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--accent);
  color: var(--ink-950);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.6);
  opacity: 0;
  transform: translate(-50%, 14px) scale(0.96);
  pointer-events: none;
  transition: opacity 450ms var(--ease), transform 450ms var(--ease), background 200ms;
  will-change: transform;
}
.vhero__cta svg { width: 19px; height: 19px; }
.vhero__cta.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
  animation: ctaGlow 2.2s ease-out 1;
}
.vhero__cta:hover { background: var(--white); }
@keyframes ctaGlow {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); }
  70% { box-shadow: 0 0 0 22px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}
@media (max-width: 640px) {
  .vhero__cta {
    padding: 10px 20px;
    font-size: 12.5px;
    gap: 7px;
    bottom: clamp(32px, 7vh, 56px);
  }
  .vhero__cta svg { width: 15px; height: 15px; }
}

/* ==================== GRADIENT TEXT ==================== */
.grad-text {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==================== MAGNETIC BUTTONS ==================== */
.magnetic {
  will-change: transform;
  transition: transform 300ms ease-out;
}

/* ==================== SHARED ==================== */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==================== SHOP ==================== */
.shop {
  padding: 110px clamp(20px, 6vw, 80px) 90px;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-25) 100%);
}
.shop__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.shop__head h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.shop__head h2 span { color: var(--accent-dark); -webkit-text-fill-color: var(--accent-dark); }
.shop__sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--slate-500);
  line-height: 1.6;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.shop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  position: relative;
  padding: 30px 20px 0;
  background: var(--panel-bg, var(--blue-50));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.product-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(224, 72, 63, 0.55);
  z-index: 2;
}
.product-card__img {
  width: 100%;
  max-width: 260px;
  height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 25px 30px rgba(16, 40, 80, 0.18));
  transition: transform 400ms var(--ease);
  mix-blend-mode: multiply;
}
.product-card:hover .product-card__img { transform: translateY(-6px) scale(1.03); }

.product-card__thumbs {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  background: var(--panel-bg, var(--blue-50));
}
.product-card__thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--white);
  padding: 4px;
  cursor: pointer;
  transition: border-color 180ms, transform 180ms;
}
.product-card__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-card__thumb:hover { transform: translateY(-2px); }
.product-card__thumb.is-active { border-color: var(--accent); }

.product-card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-card__title {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.product-card__title small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.product-card__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--slate-500);
}

.product-card__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
}
.product-card__more svg {
  width: 13px;
  height: 13px;
  transition: transform 250ms var(--ease);
}
.product-card__more.is-open svg { transform: rotate(180deg); }

.product-card__specs {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms var(--ease);
}
.product-card__specs.is-open { grid-template-rows: 1fr; }
.product-card__specs-inner { overflow: hidden; }
.product-card__specs dl {
  margin: 4px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  font-size: 12.5px;
}
.product-card__specs dt { color: var(--slate-400); font-weight: 600; }
.product-card__specs dd { margin: 0; color: var(--navy-700); font-weight: 600; }

.product-card__reviews-link {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Stars */
.stars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.stars svg {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: scale(0.4) rotate(-15deg);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.stars.in-view svg { opacity: 1; transform: scale(1) rotate(0deg); }
.stars svg .star-fill { fill: var(--star-empty); transition: fill 300ms; }
.stars svg.is-filled .star-fill { fill: var(--gold); }
.stars.in-view svg.is-filled {
  animation: starPop 550ms var(--ease) both;
}
@keyframes starPop {
  0% { transform: scale(0.4) rotate(-15deg); }
  55% { transform: scale(1.35) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rating-row__score { font-weight: 800; font-size: 14px; color: var(--navy-900); }
.rating-row__count { font-size: 12.5px; color: var(--slate-400); }

.size-toggle {
  display: flex;
  gap: 8px;
}
.size-toggle__btn {
  border: 1.5px solid var(--blue-150);
  background: var(--blue-25);
  color: var(--navy-700);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 180ms, background 180ms, color 180ms;
}
.size-toggle__btn.is-active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-dark);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}
.price-row__old {
  font-size: 15px;
  color: var(--slate-400);
  text-decoration: line-through;
}
.price-row__new {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.price-row__save {
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  background: #e7f6ee;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-row__mxn { font-size: 12px; color: var(--slate-400); font-weight: 600; }

.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn--full { width: 100%; }
.btn--primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 14px 28px -12px rgba(16, 31, 51, 0.5);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

/* ==================== REVIEWS ==================== */
.reviews {
  padding: 100px clamp(20px, 6vw, 80px) 120px;
  background: var(--blue-25);
}
.reviews__head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.reviews__head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reviews__summary {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 28px 36px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.reviews__summary-item { text-align: center; }
.reviews__summary-item .big { font-size: 32px; font-weight: 800; color: var(--navy-900); }
.reviews__summary-item .label { font-size: 12px; color: var(--slate-500); margin-top: 4px; }

.review-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 36px;
}
.review-filter__btn {
  border: 1.5px solid var(--blue-150);
  background: var(--white);
  color: var(--navy-700);
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 18px;
  border-radius: 999px;
  transition: border-color 180ms, background 180ms, color 180ms;
}
.review-filter__btn.is-active {
  border-color: var(--accent);
  background: var(--accent-dark);
  color: var(--white);
}

.reviews__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 900px) {
  .reviews__body { grid-template-columns: 1fr; }
}

.reviews__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(16px);
  animation: cardIn 550ms var(--ease) forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.review-card__who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--white);
  background: var(--accent);
  flex-shrink: 0;
}
.review-card__name { font-weight: 700; font-size: 14px; color: var(--navy-900); }
.review-card__meta { font-size: 11.5px; color: var(--slate-400); }
.review-card__tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-dark);
  white-space: nowrap;
}
.review-card__text { font-size: 13.5px; line-height: 1.6; color: var(--navy-700); margin-top: 10px; }
.review-card .stars svg { width: 15px; height: 15px; }

.review-form {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.review-form h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--navy-700); }
.field select,
.field input,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--blue-150);
  background: var(--blue-25);
  color: var(--navy-900);
  outline: none;
  transition: border-color 180ms, background 180ms;
  resize: none;
}
.field select:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}

.star-input { display: flex; gap: 6px; }
.star-input__btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  position: relative;
  padding: 0;
}
.star-input__btn::before {
  content: '';
  position: absolute;
  inset: 4px;
  background-color: var(--star-empty);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.4 6.9.7-5.2 4.8 1.5 6.9-6.1-3.6-6.1 3.6 1.5-6.9-5.2-4.8 6.9-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.4 6.9.7-5.2 4.8 1.5 6.9-6.1-3.6-6.1 3.6 1.5-6.9-5.2-4.8 6.9-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease), background-color 200ms;
}
.star-input__btn:hover::before,
.star-input__btn.is-active::before,
.star-input__btn.is-hover::before {
  background-color: var(--gold);
  transform: scale(1.2);
}

.review-form__note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  min-height: 16px;
}

@media (max-width: 900px) {
  .review-form { position: static; }
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
  padding: 48px 24px 32px;
}
.footer__brand { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.footer p { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-900);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.45);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
