/* ══════════════════════════════════════════════════════════════
   SAN SEBASTIAN FOREST — Design Upgrade
   Archivo 100 % aditivo — no rompe reglas base.
   ══════════════════════════════════════════════════════════════ */

/* ── SCROLL PROGRESS BAR ────────────────────────────────────── */
.ssf-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #7a4f20, #c99a60 60%, #b48645);
  z-index: 999999;
  pointer-events: none;
  will-change: width;
}

/* ── HERO SCROLL INDICATOR ──────────────────────────────────── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: rgba(255, 250, 240, 0.48);
  font: 700 0.58rem/1 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.hero-scroll-indicator:hover {
  color: rgba(255, 250, 240, 0.82);
}

.hero-scroll-indicator .indicator-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(
    to bottom,
    rgba(201, 154, 96, 0),
    rgba(201, 154, 96, 0.72)
  );
  animation: ssfScrollLine 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes ssfScrollLine {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  42%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  58%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 780px) {
  .hero-scroll-indicator { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-indicator .indicator-line {
    animation: none;
    opacity: 0.45;
  }
}

/* ── TRUST BAR ──────────────────────────────────────────────── */
.ssf-trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #faf8f3;
  border-bottom: 1px solid rgba(180, 134, 69, 0.13);
}

.ssf-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 10px;
  border-right: 1px solid rgba(180, 134, 69, 0.1);
  font: 700 0.65rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a3a26;
  transition: background 0.22s ease;
}

.ssf-trust-item:last-child {
  border-right: none;
}

.ssf-trust-item i {
  font-size: 0.88rem;
  color: #b48645;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .ssf-trust-item:hover {
    background: #f2ece0;
  }
  .ssf-trust-item:hover i {
    transform: scale(1.2);
  }
}

@media (max-width: 780px) {
  .ssf-trust-bar { grid-template-columns: repeat(2, 1fr); }
  .ssf-trust-item:nth-child(2) { border-right: none; }
}

@media (max-width: 400px) {
  .ssf-trust-item {
    flex-direction: column;
    gap: 5px;
    padding: 12px 8px;
    font-size: 0.6rem;
  }
}

/* ── STATS ROW ──────────────────────────────────────────────── */
.ssf-stats-row {
  background: #0f1d14;
  overflow: hidden;
  position: relative;
}

/* Anillos de árbol decorativos */
.ssf-stats-row::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 96, 0.055);
  box-shadow:
    0 0 0 55px rgba(201, 154, 96, 0.025),
    0 0 0 110px rgba(201, 154, 96, 0.015),
    0 0 0 165px rgba(201, 154, 96, 0.008);
  pointer-events: none;
}

.ssf-stats-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 248, 236, 0.055);
  position: relative;
  z-index: 1;
}

.ssf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 42px 16px;
  background: #0f1d14;
}

.ssf-stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.ssf-stat-num {
  font: 600 clamp(2.8rem, 4.4vw, 4.2rem)/1 var(--font-display);
  color: #c99a60;
  min-width: 1ch;
  display: inline-block;
  letter-spacing: -0.01em;
}

.ssf-stat-suffix {
  font: 600 clamp(1.3rem, 2.2vw, 1.9rem)/1 var(--font-display);
  color: #c99a60;
  opacity: 0.82;
}

.ssf-stat > p {
  margin: 10px 0 0;
  color: rgba(255, 248, 236, 0.44);
  font: 500 0.67rem/1.45 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 14ch;
}

@media (max-width: 780px) {
  .ssf-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .ssf-stat { padding: 32px 12px; }
}

@media (max-width: 400px) {
  .ssf-stat-num { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

/* ── HERO — TEXTO CON MÁS PRESENCIA ────────────────────────── */
.forest-hero-copy h1 {
  text-shadow: 0 4px 36px rgba(0, 0, 0, 0.36);
}

.forest-hero-copy p:not(.eyebrow) {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.28);
}

/* ── COLLECTION CARDS — HOVER EDITORIAL ────────────────────── */
.collection-card a img {
  transition: transform 0.72s cubic-bezier(0.22, 0.6, 0.36, 1) !important;
}

@media (hover: hover) and (pointer: fine) {
  .collection-card:hover a img {
    transform: scale(1.065) !important;
  }
}

/* ── PROCESS — LÍNEA CONECTORA ──────────────────────────────── */
.forest-process .process-grid {
  position: relative;
}

.forest-process .process-grid::before {
  content: '';
  position: absolute;
  top: 46px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 154, 96, 0.16) 14%,
    rgba(201, 154, 96, 0.16) 86%,
    transparent 100%
  );
  pointer-events: none;
}

@media (max-width: 780px) {
  .forest-process .process-grid::before { display: none; }
}

/* ── TEXTURA GRAIN EN PANELES OSCUROS ───────────────────────── */
.forest-story-panel::before,
.forest-project-cta > div::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.028;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px;
}

.forest-project-cta > div {
  position: relative;
}

/* ── NEWSLETTER — ANILLOS DECORATIVOS ───────────────────────── */
.newsletter-section {
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  left: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 96, 0.06);
  box-shadow:
    0 0 0 60px rgba(201, 154, 96, 0.022),
    0 0 0 120px rgba(201, 154, 96, 0.013),
    0 0 0 180px rgba(201, 154, 96, 0.007);
  pointer-events: none;
}

/* ── PRODUCT CARD — MEJOR PRESENTACIÓN ─────────────────────── */
.product-details h2 {
  letter-spacing: 0.01em;
}

/* ── TOPBAR — LOGO FILTER MEJORADO ─────────────────────────── */
.topbar .brand img {
  max-height: 44px;
  width: auto;
  transition: filter 0.35s ease, transform 0.35s ease;
}

/* ── FOOTER — DETALLE VISUAL ────────────────────────────────── */
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 96, 0.05);
  box-shadow: 0 0 0 50px rgba(201, 154, 96, 0.018);
  pointer-events: none;
}

/* ── SOCIAL ICONS — ANILLO EN HOVER ────────────────────────── */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(201, 154, 96, 0.2);
  font-size: 0.95rem;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .social-icon:hover {
    background: rgba(201, 154, 96, 0.14) !important;
    border-color: rgba(201, 154, 96, 0.45);
    transform: translateY(-3px) !important;
  }
}

/* ── CART BUTTON — BADGE ANIMADO ────────────────────────────── */
.cart-badge {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge:not([data-cart-count="0"]) {
  transform: scale(1.05);
}

/* ── PREFERS REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-indicator .indicator-line,
  .ssf-trust-item i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
