/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - SHAPEWEAR MONUMENTAL LANDING
   ========================================================================== */
:root {
  --primary-color: #d4af37;        /* Gold metallic */
  --primary-hover: #b89628;
  --secondary-color: #2b1f1d;      /* Deep espresso */
  --accent-color: #e07a5f;         /* Coral warmth */
  --bg-dark: #0f0c0d;              /* Rich dark background */
  --bg-card: rgba(26, 20, 22, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(212, 175, 55, 0.2);
  --text-main: #f8f5f2;
  --text-muted: #a39b98;
  --success-color: #2ba84a;
  --danger-color: #e63946;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --shadow-glow: 0 10px 30px rgba(212, 175, 55, 0.25);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  /* Transiciones específicas: animar solo lo necesario evita que el navegador
     vigile TODAS las propiedades (lo que hacía "all 0.3s") */
  --transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-transform: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Respeta preferencia del usuario de reducir movimiento (accesibilidad + batería) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #d4af37, #e07a5f, #d4af37);
  background-size: 200% 100%;
  animation: gradientShift 6s infinite linear;
  /* background-position no es compositable por sí sola: will-change avisa
     al navegador con antelación para que reserve una capa GPU */
  will-change: background-position;
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.timer-badge {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 0.95rem;
  border: 1px solid var(--primary-color);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.main-header {
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 12, 13, 0.9);
  backdrop-filter: blur(8px); /* 12px->8px: casi igual visualmente, más barato de renderizar */
  contain: layout paint; /* aísla repintados de este bloque del resto del documento */
  border-bottom: 1px solid var(--border-glass);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 40px 5% 60px;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

/* Gallery */
.gallery-container {
  position: sticky;
  top: 90px;
}

.main-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  background: #1a1416;
}

.main-image-wrapper img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
  transition: var(--transition-transform);
  content-visibility: auto; /* evita cálculo de estilo/layout mientras no es visible */
}

.image-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 12, 13, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.thumbnails-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.thumb-btn {
  flex: 1;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumb-btn.active, .thumb-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Details & Purchase Form */
.product-details {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px); /* 16px->10px: mismo look, ~40% más barato de componer */
}

.ratings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.stars {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.rating-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #d1cbca;
  margin-bottom: 24px;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--bg-glass);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-glass);
  margin-bottom: 28px;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-color);
}

.price-original {
  font-size: 1.3rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.save-badge {
  background: var(--accent-color);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Offer Options / Bundles */
.options-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
}

.bundle-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.bundle-card {
  border: 2px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bundle-card:hover, .bundle-card.selected {
  border-color: var(--primary-color);
  background: rgba(212, 175, 55, 0.08);
}

.bundle-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--primary-color);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.bundle-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bundle-radio {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

.bundle-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.bundle-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bundle-price {
  text-align: right;
}

.bundle-price-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
}

/* Size & Color Selectors */
.selectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #e5dfdd;
}

.custom-select, .custom-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 12, 13, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select:focus, .custom-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Instant COD Order Form */
.cod-form-box {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.4));
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  position: relative;
}

.cod-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.cod-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.full-width {
  grid-column: span 2;
}

/* Giant CTA Button */
.cta-button {
  width: 100%;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary-color), #f3d077, var(--primary-color));
  background-size: 200% 100%;
  border: none;
  border-radius: var(--radius-md);
  color: #000;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: pulseButton 2s infinite;
  will-change: transform; /* anima constantemente (pulso): promover capa de antemano */
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

@keyframes pulseButton {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.trust-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  gap: 6px;
}

.trust-icon {
  font-size: 1.4rem;
  color: var(--primary-color);
}

/* ==========================================================================
   INTERACTIVE BEFORE / AFTER SLIDER
   ========================================================================== */
.transformation-section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px; /* placeholder de alto para no saltar el scroll */
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 40px;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.comparison-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 450px;
  border: 1px solid var(--border-glass);
}

.comparison-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-overlay-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--primary-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.features-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.feature-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FABRIC & TECHNOLOGY SECTION
   ========================================================================== */
.tech-section {
  padding: 60px 5%;
  background: linear-gradient(180deg, var(--bg-dark), #1a1215, var(--bg-dark));
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.tech-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.tech-image-box img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   TESTIMONIALS & REVIEWS
   ========================================================================== */
.reviews-section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h5 {
  font-size: 1rem;
  font-weight: 700;
}

.verified-tag {
  font-size: 0.75rem;
  color: var(--success-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-text {
  font-size: 0.92rem;
  color: #d1cbca;
  font-style: italic;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: 60px 5% 100px;
  max-width: 900px;
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   STICKY MOBILE ORDER BAR
   ========================================================================== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 12, 13, 0.95);
  backdrop-filter: blur(8px); /* 16px->8px: fixed + blur alto es de lo más caro en scroll */
  transform: translateZ(0); /* fuerza su propia capa de composición */
  border-top: 1px solid var(--primary-color);
  padding: 12px 20px;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
}

.sticky-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
}

.sticky-btn {
  padding: 12px 24px;
  background: var(--primary-color);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* ==========================================================================
   SUCCESS MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .gallery-container {
    position: relative;
    top: 0;
  }
  .comparison-card {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .inputs-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: span 1;
  }
  .selectors-grid {
    grid-template-columns: 1fr;
  }
}
