/* ============================================================
   SERATY — App Home CSS
   Paleta aprobada por Rich 2026-10-07
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:       #080808;
  --surface:  #0E0E0E;
  --surface2: #141414;
  --cta:      #B01E30;
  --cta-h:    #8A0E20;
  --text:     #f0ece4;
  --text2:    #d1c9ba;
  --border:   #3C2828;
  --gold:     #C8A84A;
  --gold-a:   rgba(200,168,74,0.15);
  --gold-b:   rgba(200,168,74,0.45);
  --top-h:    52px;
  --nav-h:    64px;
  --radius:   12px;
  --radius-s: 8px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- TIPOGRAFÍA ---------- */
.serif { font-family: 'Playfair Display', serif; }

/* ---------- TOP BAR ---------- */
.srt-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--top-h);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.srt-top-bar__logo img {
  height: 26px;
  width: auto;
}
.srt-top-bar__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: .12em;
  color: var(--text);
}
.srt-top-bar__cart {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px;
  color: var(--text2);
}
.srt-top-bar__cart svg { width: 22px; height: 22px; }
.srt-cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--cta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
.srt-cart-count[data-count="0"] { display: none; }

/* ---------- MAIN SCROLL AREA ---------- */
.srt-main {
  padding-top: var(--top-h);
  padding-bottom: var(--nav-h);
  min-height: 100%;
}

/* ---------- HERO SLIDER ---------- */
.srt-hero {
  position: relative;
  height: 58vh;
  min-height: 280px;
  max-height: 460px;
  overflow: hidden;
}
.srt-hero__track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.srt-hero__slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}
.srt-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 6s ease;
}
.srt-hero__slide.active .srt-hero__bg {
  transform: scale(1.04);
}
.srt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.2) 0%,
    rgba(8,8,8,0.1) 40%,
    rgba(8,8,8,0.7) 80%,
    rgba(8,8,8,0.92) 100%
  );
}
.srt-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px 20px;
}
.srt-hero__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.srt-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 14px;
}
.srt-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cta);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 10px 20px;
  border-radius: 50px;
  transition: background .2s;
}
.srt-hero__cta:hover { background: var(--cta-h); }
.srt-hero__dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 5px;
}
.srt-hero__dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(240,236,228,0.35);
  transition: all .3s;
  cursor: pointer;
}
.srt-hero__dot.active {
  width: 18px;
  background: var(--text);
}

/* ---------- SECCIONES GENÉRICAS ---------- */
.srt-section {
  padding: 28px 16px;
}
.srt-section + .srt-section {
  padding-top: 0;
}
.srt-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.srt-section__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.srt-section__link {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
}
.srt-section__link:hover { color: var(--gold); }

/* ---------- CHIPS ---------- */
.srt-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.srt-chips::-webkit-scrollbar { display: none; }
.srt-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  user-select: none;
}
.srt-chip.active,
.srt-chip:active {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

/* ---------- PRODUCTOS ---------- */
.srt-products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.srt-product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.srt-product-card:active { transform: scale(.97); }
.srt-product-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface2);
  position: relative;
}
.srt-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.srt-product-card:hover .srt-product-card__img img {
  transform: scale(1.04);
}
.srt-product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.srt-product-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.srt-product-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.srt-product-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.srt-product-card__price del {
  color: var(--text2);
  font-weight: 400;
  font-size: 11px;
  margin-right: 4px;
}
.srt-product-card__btn {
  display: block;
  text-align: center;
  background: var(--cta);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 6px;
  margin-top: auto;
  transition: background .2s;
}
.srt-product-card__btn:hover { background: var(--cta-h); }

/* Hidden para filtros */
.srt-product-card[hidden] { display: none; }

/* ---------- SECCIÓN EMOCIONAL ---------- */
.srt-feel {
  background: #000;
  padding: 48px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.srt-feel__quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 5.5vw, 32px);
  font-style: italic;
  color: var(--text);
  line-height: 1.35;
  text-wrap: balance;
  max-width: 340px;
  margin: 0 auto 20px;
}
.srt-feel__sub {
  font-size: 13px;
  color: var(--text2);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- CÓMO FUNCIONA ---------- */
.srt-steps {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.srt-steps::-webkit-scrollbar { display: none; }
.srt-step {
  flex: 0 0 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.srt-step__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.srt-step__icon { font-size: 24px; line-height: 1; }
.srt-step__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.srt-step__desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}

/* ---------- OCASIONES ---------- */
.srt-ocasiones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.srt-ocasion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.srt-ocasion-card:hover,
.srt-ocasion-card.active {
  border-color: var(--gold-b);
  background: var(--gold-a);
}
.srt-ocasion-card__icon { font-size: 22px; line-height: 1; }
.srt-ocasion-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  line-height: 1.3;
}

/* ---------- FOOTER ---------- */
.srt-footer {
  padding: 28px 20px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.srt-footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  letter-spacing: .1em;
  color: var(--text2);
}
.srt-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.srt-footer__links a {
  font-size: 12px;
  color: var(--text2);
  transition: color .2s;
}
.srt-footer__links a:hover { color: var(--text); }
.srt-footer__copy {
  font-size: 11px;
  color: rgba(240,236,228,0.35);
}

/* ---------- BOTTOM NAV ---------- */
.srt-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
}
.srt-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 6px 4px;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.srt-nav-item.active { color: var(--text); }
.srt-nav-item.active .srt-nav-icon { color: var(--cta); }
.srt-nav-icon {
  font-size: 20px;
  line-height: 1;
  transition: color .2s;
}
/* Indicador activo */
.srt-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 2px;
  background: var(--cta);
  border-radius: 0 0 2px 2px;
}
.srt-bottom-nav { position: fixed; }
.srt-nav-item { position: relative; }

/* ---------- OCULTAR CARRITO FLOTANTE DIVI/WC ---------- */
/* El botón flotante de WC/Divi tapa el bottom nav en el home */
#et-cart-info,
.et-cart-info,
.et_pb_wc_cart_notice,
.et_floating_cart,
.et_cart_info,
#et_floating_cart,
.added_to_cart_notice,
.wc-block-mini-cart__button,
.wp-block-woocommerce-mini-cart { display: none !important; }

/* ---------- DIVISOR ---------- */
.srt-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
}

/* ---------- RESPONSIVE DESKTOP ---------- */
@media (min-width: 480px) {
  .srt-hero { height: 50vh; max-height: 520px; }
  .srt-products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .srt-ocasiones-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 768px) {
  .srt-section { padding: 32px 24px; }
  .srt-products-grid { grid-template-columns: repeat(4, 1fr); }
  .srt-steps { justify-content: center; overflow-x: visible; }
  .srt-step { flex: 0 0 180px; }
}
@media (min-width: 1024px) {
  .srt-top-bar,
  .srt-main,
  .srt-bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); right: auto; width: 100%; }
  body { background: #111; }
}
