/* ==========================================================================
   TRENDLY SHOP — PAGE STYLES
   White-dominant editorial layout. Purple only on hero/footer/header.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ANNOUNCEMENT BAR
   -------------------------------------------------------------------------- */
.announcement-bar {
  background: var(--text-primary);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 100;
  flex-wrap: wrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ticker-countdown {
  background: #C4A231;
  color: #000000;
  padding: 1px 8px;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   2. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-lg);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
  flex-shrink: 0;
  min-width: 0;
}

/* The gold "SHOP" text in the logo only */
.site-logo .gradient-text {
  color: var(--brand-gold);
  -webkit-text-fill-color: var(--brand-gold);
}

.logo-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Search */
.header-search { flex-grow: 1; max-width: 420px; position: relative; min-width: 0; }

.search-input-wrapper { position: relative; display: flex; align-items: center; }

.search-input-wrapper input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  min-width: 0;
}

.search-input-wrapper input::placeholder { color: var(--text-muted); }

.search-input-wrapper input:focus {
  border-color: var(--text-primary);
  background: #FFFFFF;
  box-shadow: none;
}

.search-icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.cart-btn { position: relative; }

.cart-count-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--text-primary);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION — black bg with gold accents
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: #000000;
  padding: var(--space-3xl) 0;
  overflow: hidden;
  color: #fff;
}

/* Subtle gold glow top-right */
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,162,49,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: rgba(196,162,49,0.08);
  border: 1px solid rgba(196,162,49,0.25);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #C4A231;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.hero-title {
  color: #FFFFFF;
  margin-bottom: var(--space-md);
  line-height: 1.05;
  word-break: break-word;
}

.hero-title .gradient-text {
  color: #C4A231;
  -webkit-text-fill-color: #C4A231;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.60);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  line-height: 1.65;
  word-break: break-word;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-ctas .btn {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.hero-trust-item svg { color: #C4A231; flex-shrink: 0; }

/* Showcase card inside hero */
.hero-showcase { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }

.showcase-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.showcase-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.showcase-img-wrap::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.2) brightness(0.9);
  transform: scale(1.15);
  z-index: 0;
}

.showcase-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}



.showcase-details {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.showcase-details > div:first-child { min-width: 0; flex: 1; }
.showcase-details > div:last-child { flex-shrink: 0; }

.showcase-details h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   4. TRUST PROPS — white, flat, minimal borders
   -------------------------------------------------------------------------- */
.trust-props-section {
  padding: var(--space-xl) 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.prop-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-right: 1px solid var(--border-card);
  transition: background var(--transition-fast);
}

.prop-card:last-child { border-right: none; }

.prop-card:hover { background: var(--bg-surface-elevated); }

.prop-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prop-title { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.prop-desc  { font-size: 0.75rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   5. CATALOG SECTION — white, clean
   -------------------------------------------------------------------------- */
.flash-sale-section {
  padding: var(--space-3xl) 0;
  background: #FFFFFF;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--text-primary);
}

.section-title-wrap { min-width: 0; flex: 1 1 auto; }
.section-title-wrap h2 { margin-bottom: 4px; word-break: break-word; }

/* Category filter tabs */
.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.category-tab {
  padding: 6px 16px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.category-tab:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

/* Product grid — Diseño limpio con gap real (sin huecos visuales */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  background: transparent;
  border: none;
}

.products-grid .product-card {
  width: 100%;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   6. REVIEWS — light gray bg
   -------------------------------------------------------------------------- */
.reviews-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-card);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  width: 100%;
}

.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: box-shadow var(--transition-normal);
  min-width: 0;
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-stars { color: #F59E0B; font-size: 0.95rem; letter-spacing: 2px; }

.review-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  word-break: break-word;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
  min-width: 0;
}

.author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.author-info { min-width: 0; flex: 1; }
.author-info h5 { font-size: 0.88rem; color: var(--text-primary); }
.author-info span {
  font-size: 0.73rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 4px;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   7. FAQ — white, clean accordion
   -------------------------------------------------------------------------- */
.faq-section {
  padding: var(--space-3xl) 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-card);
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-card);
  overflow: hidden;
}

.faq-item:first-child { border-top: 1px solid var(--border-card); }

.faq-item.open { border-bottom-color: var(--border-card); }

.faq-question {
  width: 100%;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.1rem;
}

.faq-answer p { font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   7B. REVIEWS SECTION
   -------------------------------------------------------------------------- */
.reviews-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-main);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: box-shadow var(--transition-fast);
}

.review-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.review-meta {
  flex: 1;
}

.review-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--brand-gold);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.review-product {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.review-comment {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.reviews-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

/* Star Rating Input */
.star-rating {
  display: flex;
  gap: 4px;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.star-rating .star {
  color: var(--border-card);
  transition: color 0.15s;
}

.star-rating .star.active,
.star-rating .star:hover,
.star-rating .star:hover ~ .star {
  color: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   7C. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface-elevated);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   8. FOOTER — black, editorial
   -------------------------------------------------------------------------- */

.site-footer {
  background: #000000;
  padding: var(--space-3xl) 0 var(--space-xl);
  color: rgba(255,255,255,0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}

.footer-brand { min-width: 0; }

.footer-brand p {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  max-width: 280px;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  word-break: break-word;
}

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a, .footer-links li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.42);
  transition: color var(--transition-fast);
  word-break: break-word;
}

.footer-links a:hover { color: #FFFFFF; }

.site-footer .site-logo { color: #FFFFFF; }
.site-footer .site-logo .gradient-text {
  color: var(--brand-gold);
  -webkit-text-fill-color: var(--brand-gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom > div:first-child { word-break: break-word; }

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE — Breakpoints exhaustivos: 1024, 900, 768, 640, 520, 420, 360
   -------------------------------------------------------------------------- */

/* ---------- ═════════════════════════════════════════════════════════════════════
   Breakpoint 1: TABLET GRANDE - 1024px
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }
  .hero-subtitle { margin: 0 auto var(--space-xl); }
  .hero-ctas { justify-content: center; }
  .hero-trust-row { justify-content: center; }
  .hero-tag { justify-content: center; margin-left: auto; margin-right: auto; }

  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-card:nth-child(2) { border-right: none; }
  .prop-card:nth-child(3) { border-top: 1px solid var(--border-card); border-right: 1px solid var(--border-card); }
  .prop-card:last-child { border-top: 1px solid var(--border-card); border-right: none; }

  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ---------- ═════════════════════════════════════════════════════════════════════
   Breakpoint 2: TABLET - 900px
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --header-height: 60px;
  }

  .header-inner { gap: var(--space-md); }

  .site-logo { font-size: 1.15rem; }
  .site-logo span:not(.gradient-text) { display: none; }
  .site-logo .gradient-text { display: inline; }
  .site-logo::after { content: ""; display: inline; }

  .hero-showcase { max-width: 400px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- ═════════════════════════════════════════════════════════════════════
   Breakpoint 3: TABLET PEQUEÑO - 768px
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --space-3xl: 3.25rem;
    --space-2xl: 2.25rem;
  }

  .announcement-bar {
    gap: var(--space-sm);
    padding: 7px 12px;
    font-size: 0.72rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .announcement-bar .ticker-item { flex-shrink: 0; }
  .ticker-countdown { font-size: 0.7rem; padding: 1px 6px; }

  .header-search { display: none; }

  .hero-section { padding: var(--space-2xl) 0; }
  .hero-tag { font-size: 0.68rem; letter-spacing: 0.06em; padding: 3px 10px; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: var(--space-lg); }
  .hero-ctas { gap: 10px; margin-bottom: var(--space-xl); }
  .hero-ctas .btn { width: 100%; }
  .hero-trust-item { font-size: 0.76rem; }
  .hero-trust-row { gap: var(--space-md); }

  .showcase-floating-badge { top: 12px; right: 12px; font-size: 0.72rem; padding: 4px 10px; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
  }
  .category-tabs { width: 100%; }

  .flash-sale-section { padding: var(--space-2xl) 0; }

  .trust-props-section { padding: var(--space-lg) 0; }

  .reviews-section { padding: var(--space-2xl) 0; }
  .faq-section { padding: var(--space-2xl) 0; }
  .contact-section { padding: var(--space-2xl) 0; }

  .site-footer { padding: var(--space-2xl) 0 var(--space-lg); }
  .footer-grid { gap: var(--space-xl); margin-bottom: var(--space-xl); padding-bottom: var(--space-xl); }
  .footer-bottom { font-size: 0.72rem; gap: var(--space-sm); }

  .payment-badges-row .badge { font-size: 0.64rem; padding: 2px 6px; }
}

/* ---------- ═════════════════════════════════════════════════════════════════════
   Breakpoint 4: MÓVIL GRANDE - 640px
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --space-3xl: 2.75rem;
    --space-2xl: 2rem;
    --space-xl: 1.5rem;
  }

  .props-grid { grid-template-columns: 1fr; }
  .prop-card {
    border-right: none;
    border-bottom: 1px solid var(--border-card);
    border-top: none !important;
  }
  .prop-card:last-child { border-bottom: none; }

  .section-label { font-size: 0.68rem; letter-spacing: 0.06em; }

  .hero-title { line-height: 1.1; }
  .hero-ctas { gap: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-brand p { max-width: 100%; }
  .payment-badges-row { width: 100%; justify-content: flex-start; }

  .announcement-bar { font-size: 0.68rem; }
}

/* ---------- ═════════════════════════════════════════════════════════════════════
   Breakpoint 5: MÓVIL MEDIO - 520px
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
  :root {
    --header-height: 56px;
  }

  .site-logo .logo-icon-badge { width: 32px; height: 32px; }
  .site-logo .gradient-text { display: inline; }
  .site-logo { font-size: 1.1rem; gap: 8px; }

  .cart-btn { width: 36px; height: 36px; }
  .cart-btn svg { width: 22px; height: 22px; }
  .cart-count-badge { width: 16px; height: 16px; font-size: 0.58rem; top: -3px; right: -3px; }

  .header-actions { gap: 4px; }

  .showcase-details { flex-direction: column; align-items: flex-start; text-align: left; }
  .showcase-details > div:last-child { text-align: left !important; }

  .contact-form-wrapper { padding: var(--space-xl); border-radius: var(--radius-md); }

  .star-rating { font-size: 1.75rem; gap: 2px; }

}

/* ---------- ═════════════════════════════════════════════════════════════════════
   Breakpoint 6: MÓVIL PEQUEÑO - 420px
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  .card-body { padding: var(--space-sm) var(--space-md); }
  .card-title { font-size: 0.88rem; height: auto; -webkit-line-clamp: 3; height: 3.7em; }
  .card-price-row { gap: 6px; flex-wrap: wrap; }
  .price-current { font-size: 1.12rem; }
  .price-old { font-size: 0.78rem; }

  .hero-ctas .btn-lg { padding: 0.85rem 1.25rem; font-size: 0.88rem; }
  .btn { padding: 0.72rem 1.2rem; font-size: 0.85rem; }
  .btn-lg { padding: 0.9rem 1.5rem; font-size: 0.9rem; }
  .btn-sm { padding: 0.48rem 0.9rem; font-size: 0.78rem; }

  .btn-icon-only { width: 36px; height: 36px; }

  .card-badges { top: 8px; left: 8px; gap: 4px; }
  .card-badges .badge { font-size: 0.6rem; padding: 2px 6px; }

  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .prop-card { padding: var(--space-md); gap: var(--space-sm); }
  .prop-icon { width: 36px; height: 36px; }
  .prop-icon svg { width: 20px; height: 20px; }
  .prop-title { font-size: 0.82rem; }
  .prop-desc { font-size: 0.72rem; }

  .category-tab { padding: 5px 12px; font-size: 0.78rem; }
}

/* ---------- ═════════════════════════════════════════════════════════════════════
   Breakpoint 7: MÓVIL MUY PEQUEÑO - 360px
   ═════════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .card-media { aspect-ratio: 3 / 4; }

  .site-logo .logo-icon-badge { width: 30px; height: 30px; }
  .site-logo { font-size: 1rem; }

  .announcement-bar { font-size: 0.64rem; padding: 6px 10px; }
  .ticker-countdown { font-size: 0.65rem; }

  .hero-tag { font-size: 0.62rem; padding: 2px 8px; }
  .hero-trust-row { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }

  .showcase-card { padding: var(--space-sm); }
  .showcase-details h3 { font-size: 0.95rem; }
  .showcase-details > div:last-child > div:first-child { font-size: 1.2rem; }

  .payment-badges-row { flex-direction: column; align-items: flex-start; }

  .btn-lg { padding: 0.82rem 1.2rem; font-size: 0.85rem; }
  .btn-full { width: 100%; }
}

/* ---------- ═════════════════════════════════════════════════════════════════════
   Breakpoint 8: SAFARI / iOS Webkit fixes
   ═════════════════════════════════════════════════════════════════════ */
@supports (-webkit-touch-callout: none) {
  .site-header { position: -webkit-sticky; }
}

/* ---------- ═════════════════════════════════════════════════════════════════════
   Orientación: Landscape en móvil
   ═════════════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .drawer { max-width: 360px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QUICKVIEW / MODAL — RESPONSIVE MÓVIL / TABLET (ESTILOS DEFINITIVOS)
   Cargados AL FINAL DEL ÚLTIMO CSS → Ganan a TODOS los anteriores
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .modal-backdrop { padding: 0 !important; }
  .modal {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 14px 14px 0 0 !important;
    margin: auto 0 0 0 !important;
  }
  .modal-body {
    padding: 42px 12px 24px 12px !important;
  }
  .quickview-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .quickview-gallery { max-width: 100% !important; width: 100% !important; }
  .quickview-details { max-width: 100% !important; width: 100% !important; }
  .gallery-main-wrap {
    max-width: 100% !important;
    width: 100% !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: auto !important;
    border-radius: 10px !important;
    background-color: #000 !important;
    border: 1px solid #eee !important;
    background-size: cover !important;
    background-position: center !important;
  }
  .gallery-main-wrap::before {
    display: block !important;
    inset: 0 !important;
    transform: scale(1.12) !important;
    filter: blur(24px) saturate(1.1) brightness(0.55) !important;
  }
  .gallery-main-img {
    aspect-ratio: auto !important;
    height: auto !important;
    max-height: 60vh !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
  .gallery-thumbs {
    gap: 4px !important;
    margin-top: 6px !important;
    flex-wrap: wrap !important;
  }
  .gallery-thumb {
    width: 48px !important;
    height: 48px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: transparent !important;
    border: 2px solid transparent !important;
    opacity: 0.85 !important;
  }
  .gallery-thumb.active {
    opacity: 1 !important;
    border-color: #000 !important;
  }
}

@media (max-width: 520px) {
  .gallery-main-img { max-height: 52vh !important; }
  .gallery-thumb { width: 44px !important; height: 44px !important; border-radius: 7px !important; }
  .modal-close {
    width: 36px !important; height: 36px !important;
    min-width: 36px !important; min-height: 36px !important;
    top: 10px !important; right: 10px !important;
  }
}

@media (max-width: 420px) {
  .gallery-main-img { max-height: 45vh !important; }
  .gallery-thumb { width: 38px !important; height: 38px !important; border-radius: 6px !important; }
  .gallery-thumbs { gap: 3px !important; }
  .modal-body { padding: 40px 10px 20px 10px !important; }
}

/* =========================================================================
   AUTH — LOGIN / REGISTER / 2FA
   ========================================================================= */
.auth-body {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #ECFEFF 100%);
  min-height: 100vh;
}
.auth-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 18px 60px;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 auto 24px;
  text-decoration: none;
}
.auth-brand img {
  width: 36px; height: 36px; border-radius: 10px;
  box-shadow: 0 6px 14px rgba(99,102,241,0.25);
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 12px 40px -12px rgba(15,23,42,0.12);
}
.auth-title { font-size: 1.55rem; margin: 0 0 6px; line-height: 1.2; }
.auth-subtitle { color: var(--text-secondary); margin: 0 0 22px; font-size: 0.92rem; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 26px 0 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-subtle);
}
.auth-alt { text-align: center; font-size: 0.9rem; color: var(--text-secondary); }
.auth-alt p { margin: 6px 0; }

.link-primary { color: var(--accent-indigo, #6366F1); font-weight: 700; text-decoration: none; }
.link-primary:hover { text-decoration: underline; }
.link-muted { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.link-muted:hover { color: var(--text-secondary); }

.check-field {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-secondary);
  cursor: pointer;
}
.check-field input {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-indigo, #6366F1);
}

.twofa-box {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(20,184,166,0.06));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 14px;
  padding: 18px 16px;
  margin-top: 6px;
}
.twofa-input {
  font-size: 1.6rem !important;
  letter-spacing: 0.5em;
  text-align: center;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 0.9rem 0.6rem !important;
}
.twofa-setup-card { max-width: 640px; margin: 0 auto; }
.twofa-header {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(135deg, #6366F1, #14B8A6);
  color: #fff;
  margin: -28px -24px 22px;
  padding: 22px 24px;
  border-radius: 18px 18px 0 0;
}
.twofa-header .auth-title { color: #fff; }
.twofa-header .auth-subtitle { color: rgba(255,255,255,0.85); }
.twofa-steps { display: flex; flex-direction: column; gap: 24px; }
.twofa-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px;
  background: var(--bg-surface-elevated, #F8FAFC);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}
.twofa-step h3 { font-size: 1rem; margin: 0 0 6px; }
.twofa-step p { margin: 0 0 10px; font-size: 0.88rem; color: var(--text-secondary); }
.step-number {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800;
  background: var(--grad-emerald, linear-gradient(135deg,#14B8A6,#10B981));
  color: #fff;
  font-size: 0.95rem;
}
.qr-box {
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-card);
  display: inline-block;
  text-align: center;
}
.qr-box img { width: 200px; height: 200px; display: block; }
.secret-text {
  display: inline-block;
  background: #0F172A;
  color: #22C55E;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-top: 6px;
}
.backup-codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: #0F172A;
  padding: 14px;
  border-radius: 14px;
  margin: 0 0 10px;
}
.backup-code {
  color: #FACC15;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  padding: 6px 10px;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  letter-spacing: 0.08em;
}

/* Spinner */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid #E2E8F0;
  border-top-color: #6366F1;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   HEADER — nuevo layout: izquierda (logo+catalogo), centro (buscador), derecha (auth+cart)
   ========================================================================= */
.header-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.btn-catalog-header {
  white-space: nowrap;
}
.btn-auth-text {
  white-space: nowrap;
  font-weight: 700 !important;
}
/* Ocultar el wrap de cuenta antiguo por si acaso queda en el HTML */
#header-account-wrap { display: none !important; }

/* =========================================================================
   DASHBOARD — ÁREA DE CLIENTE
   ========================================================================= */
.dashboard-main { padding: 28px 0 60px; }

.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #6366F1 0%, #14B8A6 100%);
  color: #fff;
  border-radius: 22px;
  padding: 28px 28px;
  margin-bottom: 24px;
  box-shadow: 0 18px 50px -20px rgba(99,102,241,0.55);
}
.dash-hero #dash-welcome { color: #fff; font-size: 1.6rem; }
.dash-hero .dash-welcome-sub { color: rgba(255,255,255,0.85); }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dash-stat {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  min-width: 88px;
}
.dash-stat-num { font-size: 1.45rem; font-weight: 900; font-family: var(--font-heading); color: #fff; }
.dash-stat-lbl { font-size: 0.72rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.dash-section, .dash-card {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px -18px rgba(15,23,42,0.15);
}
.dash-section-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.dash-section-head h2 { margin: 0; font-size: 1.25rem; }
.dash-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 10px; flex-wrap: wrap;
}
.dash-card-head h3 { margin: 0; font-size: 1rem; }

.dash-side { display: flex; flex-direction: column; gap: 18px; }
.dash-card + .dash-card { margin-top: 0; }

.profile-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.9rem;
}
.profile-row:last-child { border-bottom: none; }
.profile-row > span { color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.profile-row > strong { color: var(--text-primary); text-align: right; max-width: 60%; word-break: break-word; }

.ok-box {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #065F46;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.empty-state {
  text-align: center;
  padding: 34px 18px;
  background: var(--bg-surface-elevated, #F8FAFC);
  border-radius: 14px;
  color: var(--text-secondary);
}
.empty-state-sm { font-size: 0.85rem; color: var(--text-muted); }

/* =========================
   ORDER CARDS (dashboard)
   ========================= */
.orders-list {
  display: flex; flex-direction: column; gap: 14px;
}
.order-card {
  background: var(--bg-surface-elevated, #F8FAFC);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.order-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-indigo-soft, #C7D2FE);
  box-shadow: 0 12px 24px -16px rgba(99,102,241,0.3);
}
.order-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.order-status-badge {
  border: 1px solid;
  font-weight: 700;
  padding: 5px 12px;
  font-size: 0.78rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.order-card-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.order-preview-wrap {
  display: flex; gap: 4px;
  min-width: 104px;
}
.order-preview-img {
  width: 46px; height: 46px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-subtle);
}
.order-preview-img:not(:first-child) { margin-left: -14px; }

/* =========================
   ORDER DETAIL (modal + dashboard side)
   ========================= */
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.order-items-list {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-surface-elevated);
  padding: 12px;
  border-radius: 14px;
}
.order-detail-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 6px;
  background: #fff;
  border-radius: 10px;
}
.order-detail-item img {
  width: 52px; height: 52px;
  object-fit: cover; border-radius: 10px;
  background: #F1F5F9;
}
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  font-size: 0.9rem;
}
.detail-row.total {
  margin-top: 8px; padding-top: 10px;
  border-top: 2px solid var(--border-subtle);
  font-size: 1.15rem;
  font-weight: 900;
  font-family: var(--font-heading);
}
.detail-row > span { color: var(--text-muted); }
.detail-box {
  background: var(--bg-surface-elevated, #F8FAFC);
  padding: 14px;
  border-radius: 14px;
  display: flex; flex-direction: column;
}
.detail-box .detail-row { padding: 5px 0; }

.status-log {
  display: flex; flex-direction: column;
  padding-left: 2px;
}
.status-log-item {
  display: flex; align-items: flex-start; gap: 10px;
  position: relative;
  padding: 0 0 18px 4px;
}
.status-log-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px; top: 14px; bottom: 0;
  width: 2px;
  background: #E2E8F0;
}
.status-log-dot {
  width: 16px; height: 16px; border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #E2E8F0;
  margin-top: 2px;
}

/* =========================================================================
   RESPONSIVE OVERRIDES (Mobile-First) — must be last
   ========================================================================= */
@media (max-width: 960px) {
  .dash-grid { grid-template-columns: 1fr !important; }
  .detail-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .btn-catalog-header { display: none !important; }
}
@media (max-width: 768px) {
  .dash-hero { padding: 22px 18px !important; border-radius: 18px !important; }
  .dash-hero #dash-welcome { font-size: 1.3rem !important; }
  .dash-stats { grid-template-columns: repeat(3, 1fr) !important; width: 100% !important; }
  .dash-stat-num { font-size: 1.15rem !important; }
  .dash-section, .dash-card { padding: 18px 14px !important; }
  .auth-main { padding: 24px 14px 40px !important; }
  .auth-card { padding: 22px 18px !important; border-radius: 16px !important; }
  .twofa-header { margin: -22px -18px 20px !important; padding: 18px !important; border-radius: 16px 16px 0 0 !important; }
  .backup-codes { grid-template-columns: 1fr !important; }
  .twofa-step { flex-direction: column; padding: 14px !important; }
  .order-card-row { flex-direction: column; align-items: flex-start; }
  .order-card-row > .btn { width: 100%; }
  .header-search { display: none !important; }
  .btn-auth-text { font-size: 0.8rem !important; padding: 8px 10px !important; }
  .header-left { gap: 8px !important; }
}
@media (max-width: 480px) {
  .dash-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
  .dash-stat { padding: 10px 6px !important; min-width: 0 !important; border-radius: 10px !important; }
  .dash-stat-num { font-size: 1rem !important; }
  .dash-stat-lbl { font-size: 0.62rem !important; }
  .auth-title { font-size: 1.25rem !important; }
  .twofa-input { font-size: 1.3rem !important; }
  .qr-box img { width: 170px !important; height: 170px !important; }
  .order-preview-wrap { min-width: auto !important; }
  .btn-auth-text#btn-register { display: none !important; } /* en móviles pequeños solo mostramos Iniciar sesión */
  .header-left .site-logo span { display: none !important; } /* solo logo icono en móvil pequeño */
}

/* ==========================================================================
   MEJORAS DE VISIBILIDAD - TÉRMINOS + 2FA (NEGRO / BLANCO ALTO CONTRASTE)
   ========================================================================== */

/* --- 1) Checkbox términos en register.html (fondo negro, recuadro blanco) --- */
.check-field {
  background: #000000 !important;
  border: 1px solid #ffffff !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  margin: 8px 0 20px !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08) !important;
  position: relative !important;
}
.check-field:hover {
  border-color: #22C55E !important;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25) !important;
}
.check-field span {
  color: #ffffff !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  position: relative !important;
}
/* CHECKBOX PERSONALIZADO: cuadro visual con pseudo-elemento (fiable en todos los navegadores) */
.check-field input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.check-field span::before {
  content: "" !important;
  flex-shrink: 0 !important;
  width: 22px !important;
  height: 22px !important;
  margin-top: 1px !important;
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.check-field input[type="checkbox"]:checked ~ span::before {
  background: #1D4ED8 !important;
  border-color: #2563EB !important;
  box-shadow:
    0 0 0 2px rgba(37,99,235,0.35),
    0 0 10px rgba(37,99,235,0.6) !important;
  transform: scale(1.05) !important;
}
.check-field input[type="checkbox"]:checked ~ span::after {
  content: "✓" !important;
  position: absolute !important;
  left: 5px !important;
  top: 4px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  pointer-events: none !important;
}
.check-field input[type="checkbox"]:focus-visible ~ span::before {
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.5),
    0 0 0 4px rgba(34,197,94,0.5) !important;
}
.check-field .link-primary {
  color: #22C55E !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}
.check-field .link-primary:hover {
  color: #16A34A !important;
}

/* --- 2) Tarjetas de paso 2FA (paso 1/2/3): marco NEGRO, letras BLANCAS --- */
.twofa-step {
  background: #000000 !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 18px !important;
  padding: 22px 20px !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06) !important;
}
.twofa-step h3 {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
}
.twofa-step p {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}
.twofa-step strong {
  color: #22C55E !important;
  font-weight: 800 !important;
}
.twofa-step a:not(.btn) {
  color: #22C55E !important;
  text-decoration: underline !important;
}

/* Caja QR (dentro del paso 1): fondo blanco para que el QR se lea bien */
.twofa-step .qr-box {
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin-top: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.15) inset !important;
}
.twofa-step .qr-box::after { content: none !important; }

/* Texto intro manual de la clave secreta: blanco + clave en verde neón sobre negro */
.twofa-step p[style*="font-size:0.82rem"] {
  color: rgba(255,255,255,0.9) !important;
  font-size: 0.9rem !important;
}
.twofa-step .secret-text {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  padding: 6px 12px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  border-radius: 8px !important;
  margin-top: 8px !important;
  display: inline-block !important;
}

/* Botón Copiar (junto a clave secreta): alto contraste */
.twofa-step .btn.btn-secondary.btn-sm {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  font-weight: 700 !important;
}
.twofa-step .btn.btn-secondary.btn-sm:hover {
  background: #E2E8F0 !important;
}

/* Caja de backup codes (paso 2): fondo negro, marco blanco, códigos amarillo neón */
.twofa-step .backup-codes {
  background: #000000 !important;
  border: 1.5px solid #ffffff !important;
  padding: 16px !important;
  border-radius: 16px !important;
  margin: 10px 0 14px !important;
}
.twofa-step .backup-code {
  background: rgba(255,255,255,0.08) !important;
  color: #FACC15 !important;
  border: 1px solid rgba(250,204,21,0.35) !important;
  font-weight: 700 !important;
  padding: 8px 10px !important;
  font-size: 0.95rem !important;
}

/* Input de confirmación 6 dígitos (paso 3): borde blanco, fondo gris muy oscuro */
.twofa-step .twofa-input {
  background: #0B1220 !important;
  color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 14px !important;
  font-size: 1.7rem !important;
  letter-spacing: 0.6em !important;
  font-weight: 800 !important;
  padding: 1rem 0.75rem !important;
  text-align: center !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08) !important;
}
.twofa-step .twofa-input::placeholder {
  color: rgba(255,255,255,0.35) !important;
  letter-spacing: 0.6em !important;
}
.twofa-step .twofa-input:focus {
  outline: none !important;
  border-color: #22C55E !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25) !important;
}

/* Botones dentro de paso 3 (Cancelar + Activar 2FA) */
.twofa-step .btn.btn-secondary {
  background: #1E293B !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  font-weight: 700 !important;
}
.twofa-step .btn.btn-secondary:hover {
  background: #334155 !important;
}
.twofa-step .btn.btn-primary {
  font-weight: 800 !important;
}

/* Badge número de paso (1,2,3) más visible sobre fondo negro */
.step-number {
  background: linear-gradient(135deg, #22C55E, #14B8A6) !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1) !important;
}

@media (max-width: 480px) {
  .check-field { padding: 12px 14px !important; font-size: 0.86rem !important; }
  .check-field input[type="checkbox"] { width: 20px !important; height: 20px !important; }
  .twofa-step { padding: 16px !important; }
  .twofa-step h3 { font-size: 1rem !important; }
  .twofa-step .backup-codes { grid-template-columns: 1fr !important; }
  .twofa-step .twofa-input { font-size: 1.35rem !important; letter-spacing: 0.45em !important; }
}

/* ==========================================================================
   FIXES VISIBILIDAD ADICIONALES
   ========================================================================== */

/* --- 1) Checkbox términos MARCADO: resalte GLOBAL de la caja contenedora --- */
.check-field:has(input:checked) {
  border-color: #2563EB !important;
  background:
    linear-gradient(135deg, rgba(37,99,235,0.14), rgba(34,197,94,0.14)),
    #000000 !important;
  box-shadow:
    0 0 0 2px rgba(37,99,235,0.35),
    inset 0 0 0 1px rgba(37,99,235,0.5) !important;
}
.check-field:has(input:checked) span {
  color: #FFFFFF !important;
}

/* --- 2) Empty-state dashboard "Aún no tienes pedidos": fondo NEGRO + letras BLANCAS --- */
body .dash-section #orders-list .empty-state,
body .dash-section .orders-list .empty-state,
.dashboard-main #orders-list .empty-state,
#orders-list > .empty-state,
.orders-list > .empty-state {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 18px !important;
  padding: 40px 22px !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06) !important;
}
body .dash-section #orders-list .empty-state strong,
body .dash-section .orders-list .empty-state strong,
#orders-list .empty-state > strong {
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  display: block !important;
}
body .dash-section #orders-list .empty-state p,
body .dash-section .orders-list .empty-state p,
#orders-list .empty-state > p {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.95rem !important;
  margin: 6px 0 14px !important;
}
/* Icono emoji 📦 (cuadrado amarillo) se conserva tal cual — no tocar color */
body .dash-section #orders-list .empty-state div[style*="font-size: 2.2rem"],
body .dash-section .orders-list .empty-state div[style*="font-size: 2.2rem"],
#orders-list .empty-state div[style*="font-size: 2.2rem"] {
  color: inherit !important;
  filter: none !important;
  margin-bottom: 8px !important;
}
/* Botón dentro del empty-state (amarillo/dorado ya se ve bien sobre negro, lo reforzamos) */
body .dash-section #orders-list .empty-state .btn.btn-primary,
#orders-list .empty-state .btn.btn-primary {
  background: var(--brand-gold) !important;
  color: #000000 !important;
  border-color: var(--brand-gold) !important;
}

/* ==========================================================================
   BOTONES TOGGLE 2FA — Código de App vs Código de Recuperación
   ========================================================================== */
.mode-toggle-btn {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: #FFFFFF !important;
  border: 2px solid var(--border-card) !important;
  color: var(--text-primary) !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  text-align: left !important;
  font-family: inherit !important;
  box-shadow: none !important;
}
.mode-toggle-btn:hover {
  border-color: var(--text-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-sm) !important;
}
.mode-toggle-btn .mode-icon {
  font-size: 1.5rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}
.mode-toggle-btn .mode-check {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  background: rgba(0,0,0,0.06) !important;
  color: rgba(0,0,0,0.25) !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}
.mode-toggle-btn.mode-toggle-active {
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(34,197,94,0.10)), #FFFFFF !important;
  border-color: #2563EB !important;
  box-shadow:
    0 0 0 2px rgba(37,99,235,0.20),
    inset 0 0 0 1px rgba(37,99,235,0.35) !important;
  transform: translateY(-1px) !important;
}
.mode-toggle-btn.mode-toggle-active .mode-check {
  background: #2563EB !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.20) !important;
}

/* Input de código de recuperación (XXXX-XXXX) */
.recovery-code-input {
  letter-spacing: 0.08em !important;
  font-family: 'Courier New', ui-monospace, monospace !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 1.15rem !important;
  padding: 0.9rem 1rem !important;
  text-align: center !important;
}
.recovery-code-input:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.20) !important;
  background: #F0F7FF !important;
}

@media (max-width: 480px) {
  .mode-toggle-btn { padding: 12px 14px !important; gap: 10px !important; }
  .mode-toggle-btn .mode-icon { font-size: 1.3rem !important; }
  .recovery-code-input { font-size: 1.05rem !important; letter-spacing: 0.06em !important; }
}

