@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

:root {
  --cream:        #F5EFE0;
  --cream-dark:   #EDE4CE;
  --brown-deep:   #2C1A0E;
  --brown-mid:    #5C3317;
  --brown-light:  #8B5E3C;
  --copper:       #B8722A;
  --copper-light: #D4954A;
  --gold:         #C9A44A;
  --gold-light:   #E8C878;
  --steel:        #6B7F8A;
  --steel-light:  #A8BFC9;
  --text-dark:    #1E0F06;
  --text-mid:     #4A2F1A;
  --text-light:   #8B6B50;
  --white:        #FDFAF4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Crimson Pro', Georgia, serif;
  --font-mono:    'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Textura de fondo ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER / NAV ── */
.site-header {
  background: var(--brown-deep);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  border-bottom: 3px solid var(--copper);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-logo span {
  color: var(--copper-light);
  font-style: italic;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 28px;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold-light); }

/* ── HERO HOME ── */
.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #3D2010 0%, var(--brown-deep) 100%);
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper-light);
  border: 1px solid var(--copper);
  padding: 6px 18px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.0;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 em {
  color: var(--gold);
  font-style: italic;
  display: block;
}

.hero p {
  font-size: 1.25rem;
  color: var(--steel-light);
  max-width: 560px;
  margin: 0 auto 48px;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,114,42,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,239,224,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-buy {
  background: var(--copper);
  color: var(--white);
  font-size: 0.85rem;
  padding: 18px 44px;
  width: 100%;
  justify-content: center;
  border-radius: 3px;
}
.btn-buy:hover {
  background: var(--copper-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(184,114,42,0.45);
}

/* ── DECORACIÓN HERO ── */
.hero-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-circles span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,164,74,0.12);
}
.hero-circles span:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -200px; }
.hero-circles span:nth-child(2) { width: 400px; height: 400px; bottom: -150px; left: -100px; }
.hero-circles span:nth-child(3) { width: 200px; height: 200px; top: 20%; left: 10%; }

/* ── PRODUCTS GRID (home) ── */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.15;
  margin-bottom: 60px;
}

.section-title em {
  color: var(--copper);
  font-style: italic;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 40px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(44,26,14,0.15);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
  background: var(--cream-dark);
}

.card-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--brown-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.4;
}

.card-body {
  padding: 32px;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 12px;
  line-height: 1.2;
}

.card-desc {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.card-arrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-arrow::after {
  content: '→';
  transition: transform 0.2s;
}
.product-card:hover .card-arrow::after { transform: translateX(6px); }

/* ── PRODUCT PAGE ── */
.product-hero {
  background: var(--brown-deep);
  padding: 80px 40px 0;
  position: relative;
  overflow: hidden;
}

.product-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: end;
}

.product-hero-text {
  padding-bottom: 80px;
  animation: fadeUp 0.7s ease both;
}

.product-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.product-breadcrumb a { color: var(--steel-light); text-decoration: none; }
.product-breadcrumb a:hover { color: var(--gold-light); }
.product-breadcrumb span { margin: 0 8px; }

.product-hero-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-light);
  border: 1px solid var(--copper);
  padding: 5px 14px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 24px;
}

.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 20px;
}

.product-hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.product-short-desc {
  color: var(--steel-light);
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 480px;
}

/* ── Stock badge ── */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 8px rgba(76,175,80,0.6);
  animation: pulse 2s infinite;
}
.stock-badge.out .stock-dot { background: #e53935; box-shadow: 0 0 8px rgba(229,57,53,0.6); animation: none; }
.stock-text { color: var(--steel-light); }

/* ── Galería ── */
.product-hero-gallery {
  animation: fadeUp 0.7s 0.15s ease both;
  align-self: start;
  width: 100%;
  min-width: 0;
}

.gallery-main {
  width: 100%;
  height: 380px;
  object-fit: contain;
  border-radius: 4px 4px 0 0;
  display: block;
  background: #ffffff;
  padding: 16px;
}

.gallery-main-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(145deg, #3D2010 0%, #5C3317 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.5;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.gallery-thumb {
  width: 100%;
  height: 80px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  border-radius: 2px;
  display: block;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; }
.gallery-thumb {
  aspect-ratio: 4/3;
  object-fit: contain;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  background: var(--brown-mid);
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; }
.gallery-thumb-placeholder {
  aspect-ratio: 4/3;
  background: var(--brown-mid);
  opacity: 0.4;
}

/* ── SPECS TABLE ── */
.specs-section {
  background: var(--white);
  padding: 80px 40px;
  border-top: 1px solid var(--cream-dark);
}

.specs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
}

.specs-table {
  border-collapse: collapse;
  width: 100%;
}
.specs-table tr {
  border-bottom: 1px solid var(--cream-dark);
}
.specs-table td {
  padding: 14px 0;
  font-size: 1rem;
  vertical-align: top;
}
.specs-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  width: 42%;
}
.specs-table td:last-child {
  color: var(--brown-deep);
  font-weight: 600;
}

/* ── DESCRIPTION ── */
.desc-section {
  padding: 80px 40px;
  background: var(--cream);
}

.desc-inner {
  max-width: 760px;
  margin: 0 auto;
}

.desc-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brown-deep);
  margin-bottom: 28px;
  font-weight: 700;
}

.desc-content {
  color: var(--text-mid);
  font-size: 1.1rem;
  line-height: 1.85;
}
.desc-content p { margin-bottom: 20px; }
.desc-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brown-deep);
  margin: 36px 0 16px;
}
.desc-content ul {
  margin: 0 0 20px 24px;
}
.desc-content li {
  margin-bottom: 8px;
}
.desc-content li::marker { color: var(--copper); }
.desc-content strong { color: var(--brown-deep); font-weight: 600; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--brown-deep);
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(184,114,42,0.15) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section .section-label { color: var(--copper-light); }

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  margin-bottom: 20px;
  font-weight: 900;
}

.cta-section h2 em { color: var(--gold); font-style: italic; }

.cta-section p {
  color: var(--steel-light);
  font-size: 1.15rem;
  margin-bottom: 44px;
  font-weight: 300;
}

.cta-disclaimer {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--steel);
  letter-spacing: 0.1em;
}

/* ── FOOTER ── */
.site-footer {
  background: #150C04;
  padding: 48px 40px;
  text-align: center;
  border-top: 1px solid rgba(184,114,42,0.2);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--steel);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-light);
  opacity: 0.5;
}

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--copper);
  margin: 0 0 40px;
}

.divider-center {
  margin: 0 auto 40px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .site-nav { display: none; }
  .hero { padding: 60px 24px; min-height: 80vh; }
  .section { padding: 60px 24px; }
  .products-grid { grid-template-columns: 1fr; }
  .product-hero { padding: 60px 24px 0; }
  .product-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .product-hero-gallery { display: block; margin-top: 0; margin-bottom: 40px; }
  .product-hero-inner { display: flex; flex-direction: column; gap: 0; }
  .gallery-main { height: 280px; }
  .gallery-thumb { height: 60px; }
  .specs-inner { grid-template-columns: 1fr; gap: 48px; }
  .specs-section { padding: 60px 24px; }
  .desc-section { padding: 60px 24px; }
  .cta-section { padding: 60px 24px; }
  .site-footer { padding: 40px 24px; }
}
