/* ============================================================
   SAUNEANDO · STYLES V2 · enhancements + 21st.dev components
   ============================================================ */

:root {
  --ember-glow: 200 71 43;
  --wood-glow: 111 78 55;
  --gradient-ember: linear-gradient(135deg, #c8472b 0%, #e07a4d 50%, #d4b896 100%);
  --gradient-night: linear-gradient(135deg, #2b2018 0%, #5a4a3b 100%);
  --gradient-aurora: linear-gradient(120deg, rgba(200,71,43,0.18), rgba(232,212,160,0.20) 35%, rgba(111,78,55,0.18));
  --ring-ember: 0 0 0 1px rgba(200, 71, 43, 0.25), 0 0 0 6px rgba(200, 71, 43, 0.08);
  --shadow-photo: 0 12px 32px rgba(43, 32, 24, 0.18), 0 4px 12px rgba(43, 32, 24, 0.10);
}

/* ============================================================
   1 · HEADER POLISH · pulsing dot status + refined nav
   ============================================================ */
header.site-header .nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
header.site-header .nav .nav-cta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

/* ============================================================
   2 · HERO FEATURED · ambient ember glow + better photo treatment
   ============================================================ */
.hero-featured {
  position: relative;
  overflow: hidden;
}
.hero-featured::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(200, 71, 43, 0.18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-featured::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(212, 184, 150, 0.30), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-featured .container { position: relative; z-index: 1; }

.featured-card .featured-image {
  position: relative;
  min-height: 340px;
}
.featured-card .featured-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,32,24,0) 40%, rgba(43,32,24,0.45) 100%);
  pointer-events: none;
}
.featured-card .featured-meta {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
}
.featured-card .cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(43, 32, 24, 0.15);
}

/* ============================================================
   3 · KBD-STYLE BADGE · 21st.dev signature accent
   ============================================================ */
.kbd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3));
  border: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 rgba(43, 32, 24, 0.08), 0 1px 0 rgba(255,255,255,0.5);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.kbd-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(200, 71, 43, 0.15);
}

/* ============================================================
   4 · "¿QUÉ ES SAUNEANDO?" · split layout with photo + glass card
   ============================================================ */
.que-es {
  padding: 96px 0 96px;
  background:
    radial-gradient(circle at 8% 50%, rgba(200, 71, 43, 0.22), transparent 55%),
    radial-gradient(circle at 92% 50%, rgba(232, 212, 160, 0.10), transparent 55%),
    var(--wood-dark);
  color: var(--bg-cream);
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}
.que-es-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.que-es-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-photo);
  background: var(--gradient-night);
}
.que-es-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.que-es-photo:hover img { transform: scale(1.03); }
.que-es-photo .photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43, 32, 24, 0.78);
  backdrop-filter: blur(12px);
  color: var(--bg-cream);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.que-es-photo .photo-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember-soft);
  box-shadow: 0 0 8px var(--ember-soft);
}

.que-es-content .section-pre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ember-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.que-es-content h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--bg-cream);
}
.que-es-content h2 em {
  font-style: italic;
  color: var(--ember-soft);
  font-weight: 500;
}
.que-es-content p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(250, 245, 237, 0.82);
  margin-bottom: 16px;
}
.que-es-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.que-es-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: all 0.2s;
}
.que-es-feature:hover {
  border-color: var(--ember-soft);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}
.que-es-feature .feature-icon {
  font-size: 20px;
  margin-bottom: 4px;
}
.que-es-feature .feature-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-cream);
}
.que-es-feature .feature-sub {
  font-size: 12px;
  color: rgba(250, 245, 237, 0.68);
  line-height: 1.45;
}

@media (max-width: 820px) {
  .que-es { padding: 64px 0; }
  .que-es-grid { grid-template-columns: 1fr; gap: 40px; }
  .que-es-photo { aspect-ratio: 16 / 12; }
}

/* ============================================================
   5 · CATEGORY CARDS · bento with photo background
   ============================================================ */
.categories { padding: 80px 0; background: var(--bg-cream); }
.categories .section-pre {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ember);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.categories .section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.category-card.has-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  min-height: 260px;
  overflow: hidden;
  border-radius: 20px;
  isolation: isolate;
}
.category-card.has-photo .cat-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.category-card.has-photo:hover .cat-photo { transform: scale(1.06); }
.category-card.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,32,24,0.10) 0%, rgba(43,32,24,0.40) 55%, rgba(43,32,24,0.85) 100%);
  z-index: 1;
  transition: background 0.3s;
}
.category-card.has-photo:hover::before {
  background: linear-gradient(180deg, rgba(200,71,43,0.18) 0%, rgba(43,32,24,0.55) 55%, rgba(43,32,24,0.90) 100%);
}
.category-card.has-photo .cat-content {
  position: relative;
  z-index: 2;
  padding: 22px 22px 24px;
  color: white;
}
.category-card.has-photo .cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
  font-size: 20px;
  margin-bottom: 12px;
}
.category-card.has-photo h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  color: white;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.category-card.has-photo p {
  font-size: 13px;
  color: rgba(250, 245, 237, 0.82);
  line-height: 1.5;
  margin: 0;
}
.category-card.has-photo .cat-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  z-index: 2;
  transition: all 0.25s;
}
.category-card.has-photo:hover .cat-arrow {
  background: var(--ember);
  border-color: var(--ember);
  transform: translate(2px, -2px);
}

/* ============================================================
   6 · MARQUEE STRIP · disciplinas / orígenes
   ============================================================ */
.marquee {
  background: var(--ink);
  color: var(--bg-cream);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--ink), transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee-scroll 38s linear infinite;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--bg-cream);
  opacity: 0.78;
  letter-spacing: -0.01em;
}
.marquee-item .marquee-dot {
  color: var(--ember-soft);
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   7 · ARTICLE CARDS · richer hover, image accent
   ============================================================ */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (min-width: 980px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  transition: all 0.28s cubic-bezier(.2,.8,.2,1);
}
.article-card:hover {
  border-color: rgba(200, 71, 43, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.article-card .article-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.article-card .article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,32,24,0.05) 0%, rgba(43,32,24,0.45) 100%);
}
.article-card .cat-tag-small {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(43,32,24,0.12);
}
.article-card .article-meta {
  display: flex;
  gap: 12px;
  padding: 18px 20px 6px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.article-card .article-title {
  padding: 0 20px 8px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.article-card .article-excerpt {
  padding: 0 20px 22px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   8 · LOGO RESPONSIVE TUNE
   ============================================================ */
@media (max-width: 640px) {
  .logo { font-size: 22px; }
}

/* ============================================================
   9 · EPIC HERO · full-bleed cinematic portada
   ============================================================ */
.epic-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: #1a130d;
  color: #faf5ed;
  overflow: hidden;
  isolation: isolate;
}
.epic-hero-bg {
  position: absolute;
  inset: -2%;
  background-image: url('https://images.unsplash.com/photo-1583416750470-965b2707b355?w=1920&q=85');
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) saturate(1.1) contrast(1.05);
  transform: scale(1.05);
  z-index: 0;
  animation: bg-drift 28s ease-in-out infinite alternate;
}
@keyframes bg-drift {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1.2%, -1.2%); }
}

/* Aurora mesh · animated gradient overlay */
.epic-hero-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 22% 30%, rgba(200, 71, 43, 0.42), transparent 42%),
    radial-gradient(circle at 78% 70%, rgba(232, 212, 160, 0.30), transparent 48%),
    radial-gradient(circle at 50% 100%, rgba(111, 78, 55, 0.45), transparent 55%);
  filter: blur(38px);
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: aurora-shift 24s ease-in-out infinite alternate;
}
@keyframes aurora-shift {
  0%   { transform: translate(0, 0) rotate(0deg);    opacity: 0.78; }
  50%  { transform: translate(2%, -2%) rotate(2deg); opacity: 0.92; }
  100% { transform: translate(-2%, 2%) rotate(-2deg); opacity: 0.78; }
}

/* Vignette ring · pulls eye to center type */
.epic-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(20, 14, 8, 0.55) 90%),
    linear-gradient(180deg, rgba(20,14,8,0.30) 0%, transparent 30%, rgba(20,14,8,0.78) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Floating löyly · 3 wisps animating upward */
.epic-hero-loyly {
  position: absolute;
  bottom: 0;
  right: 8%;
  width: 280px;
  height: 460px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.32;
}
.epic-hero-loyly .wisp {
  fill: none;
  stroke: #e8d4a0;
  stroke-width: 1.5;
  stroke-linecap: round;
  animation: wisp-rise 7s ease-in-out infinite;
  transform-origin: center bottom;
}
.epic-hero-loyly .wisp.w2 { animation-delay: 1.4s; animation-duration: 8.5s; stroke: #d4b896; }
.epic-hero-loyly .wisp.w3 { animation-delay: 2.8s; animation-duration: 6s;   stroke: #e07a4d; }
@keyframes wisp-rise {
  0%   { opacity: 0;   transform: translateY(40px) scaleY(0.85); }
  20%  { opacity: 0.6; transform: translateY(20px) scaleY(0.95); }
  60%  { opacity: 0.5; transform: translateY(-20px) scaleY(1.05); }
  100% { opacity: 0;   transform: translateY(-60px) scaleY(1.10); }
}

@media (max-width: 820px) {
  .epic-hero-loyly { right: -6%; opacity: 0.18; width: 200px; }
}

/* Content */
.epic-hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 120px 0 80px;
}
.epic-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(250, 245, 237, 0.92);
  margin-bottom: 28px;
  animation: rise-in 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.epic-hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember-soft);
  box-shadow: 0 0 0 0 rgba(224, 122, 77, 0.55);
  animation: pulse-glow 1.8s infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 122, 77, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(224, 122, 77, 0); }
}

.epic-hero-headline {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(46px, 8.2vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: #faf5ed;
  margin: 0 0 22px;
  max-width: 1100px;
  text-wrap: balance;
  animation: rise-in 1.05s cubic-bezier(.2,.8,.2,1) 0.08s both;
}
.epic-hero-headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember-soft);
  display: block;
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

.epic-hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(250, 245, 237, 0.78);
  max-width: 620px;
  margin: 0 0 36px;
  animation: rise-in 1.1s cubic-bezier(.2,.8,.2,1) 0.18s both;
}

.epic-hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise-in 1.15s cubic-bezier(.2,.8,.2,1) 0.28s both;
}
.btn-ember-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ember);
  color: white !important;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 0 rgba(200, 71, 43, 0.55),
    0 12px 24px rgba(200, 71, 43, 0.32),
    inset 0 -2px 0 rgba(43, 32, 24, 0.18);
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
}
.btn-ember-glow:hover {
  background: #d65535;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 6px rgba(200, 71, 43, 0.12),
    0 16px 32px rgba(200, 71, 43, 0.36),
    inset 0 -2px 0 rgba(43, 32, 24, 0.20);
  color: white !important;
}
.btn-ember-glow .arrow { font-size: 16px; transition: transform 0.25s; }
.btn-ember-glow:hover .arrow { transform: translateX(3px); }

.btn-ghost-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(250, 245, 237, 0.95) !important;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  transition: all 0.25s;
  text-decoration: none;
}
.btn-ghost-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  color: white !important;
}

/* Stats strip · bottom inside hero */
.epic-hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(250, 245, 237, 0.12);
  animation: rise-in 1.3s cubic-bezier(.2,.8,.2,1) 0.42s both;
}
.epic-hero-stat .stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #faf5ed;
  margin-bottom: 6px;
}
.epic-hero-stat .stat-num em {
  font-style: italic;
  color: var(--ember-soft);
  font-weight: 500;
}
.epic-hero-stat .stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 245, 237, 0.55);
  font-weight: 600;
}

@media (max-width: 820px) {
  .epic-hero { min-height: 78vh; }
  .epic-hero-content { padding: 96px 0 64px; }
  .epic-hero-stats { gap: 28px; margin-top: 44px; padding-top: 24px; flex-wrap: wrap; }
}

/* Scroll indicator */
.epic-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(250, 245, 237, 0.5);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 5;
}
.epic-hero-scroll .arrow-down {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(250, 245, 237, 0.55));
  animation: scroll-trail 1.8s ease-in-out infinite;
}
@keyframes scroll-trail {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 0.8; }
}
@media (max-width: 820px) {
  .epic-hero-scroll { display: none; }
}

/* Mouse-parallax friendly: respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .epic-hero-bg,
  .epic-hero-aurora,
  .epic-hero-loyly .wisp,
  .epic-hero-eyebrow .dot,
  .epic-hero-scroll .arrow-down,
  .epic-hero-eyebrow,
  .epic-hero-headline,
  .epic-hero-sub,
  .epic-hero-ctas,
  .epic-hero-stats { animation: none !important; }
}

/* ============================================================
   10 · DIORAMA HERO · parallax 3D con capas
   ============================================================ */
.diorama-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: #0e0a07;
  color: #faf5ed;
  overflow: hidden;
  isolation: isolate;
  cursor: default;
  --mx: 0;
  --my: 0;
  --scroll: 0;
  perspective: 1200px;
}

/* Capa 1 · paisaje de fondo · más lejano · se mueve menos */
.diorama-layer-bg {
  position: absolute;
  inset: -8%;
  background-image: url('https://images.unsplash.com/photo-1741601272577-fc2c46f87d9f?w=1920&q=85');
  background-size: cover;
  background-position: center 45%;
  filter: brightness(0.48) saturate(0.92) contrast(1.1) blur(0.5px);
  transform: translate3d(
      calc(var(--mx) * -16px),
      calc(var(--my) * -10px + var(--scroll) * -40px),
      0
    ) scale(1.12);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}

/* Capa 2 · niebla / aurora · profundidad media-lejana */
.diorama-layer-mist {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 35% at 30% 60%, rgba(232, 212, 160, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 40% at 75% 55%, rgba(200, 71, 43, 0.22), transparent 65%),
    radial-gradient(circle at 50% 100%, rgba(20, 14, 8, 0.85), transparent 60%);
  filter: blur(28px);
  mix-blend-mode: screen;
  transform: translate3d(
      calc(var(--mx) * -34px),
      calc(var(--my) * -22px + var(--scroll) * -70px),
      0
    );
  transition: transform 0.55s cubic-bezier(.2,.8,.2,1);
  z-index: 1;
  pointer-events: none;
}

/* Capa 3 · silueta de cabaña / horizonte · medio */
.diorama-layer-cabin {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background-image: url('https://images.unsplash.com/photo-1676452502636-2e527b03581d?w=1920&q=85');
  background-size: cover;
  background-position: center bottom;
  mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 100%);
  filter: brightness(0.55) saturate(0.95) contrast(1.05);
  transform: translate3d(
      calc(var(--mx) * -50px),
      calc(var(--my) * -14px + var(--scroll) * -100px),
      0
    );
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  z-index: 2;
  pointer-events: none;
}

/* Capa 4 · viñeta y resplandor central */
.diorama-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 35% at 50% 45%, rgba(255, 235, 200, 0.10), transparent 70%),
    radial-gradient(ellipse at center, transparent 38%, rgba(14, 10, 7, 0.62) 90%),
    linear-gradient(180deg, rgba(14, 10, 7, 0.35) 0%, transparent 30%, rgba(14, 10, 7, 0.85) 100%);
  z-index: 3;
  pointer-events: none;
}

/* Capa 5 · contenido textual · ligeramente parallax */
.diorama-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 110px 0 80px;
  transform: translate3d(
      calc(var(--mx) * -14px),
      calc(var(--my) * -8px + var(--scroll) * -30px),
      0
    );
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}

/* Capa 6 · steam wisps SVG en primer plano · mueve más */
.diorama-foreground {
  position: absolute;
  bottom: 0;
  right: 6%;
  width: 220px;
  height: 400px;
  z-index: 5;
  opacity: 0.42;
  pointer-events: none;
  transform: translate3d(
      calc(var(--mx) * 56px),
      calc(var(--my) * 30px + var(--scroll) * 60px),
      0
    );
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.diorama-foreground .wisp {
  fill: none;
  stroke: #e8d4a0;
  stroke-width: 1.2;
  stroke-linecap: round;
  animation: wisp-rise 7s ease-in-out infinite;
  transform-origin: center bottom;
}
.diorama-foreground .wisp.w2 { animation-delay: 1.6s; animation-duration: 8.5s; stroke: #d4b896; }
.diorama-foreground .wisp.w3 { animation-delay: 3.2s; animation-duration: 6s; stroke: #e07a4d; }

/* Capa 7 · marco foreground · sensación de mirilla */
.diorama-frame-left,
.diorama-frame-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 10, 7, 0.78), transparent);
  transform: translate3d(calc(var(--mx) * 32px), 0, 0);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.diorama-frame-left { left: 0; }
.diorama-frame-right {
  right: 0;
  background: linear-gradient(-90deg, rgba(14, 10, 7, 0.78), transparent);
  transform: translate3d(calc(var(--mx) * -32px), 0, 0);
}

/* Eyebrow · pulsing dot */
.diorama-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(250, 245, 237, 0.92);
  margin-bottom: 26px;
  animation: rise-in 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.diorama-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember-soft);
  animation: pulse-glow 1.8s infinite;
}

/* Headline · reveal por palabra */
.diorama-headline {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(48px, 8.4vw, 122px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: #faf5ed;
  margin: 0 0 26px;
  max-width: 1080px;
  text-wrap: balance;
}
.diorama-headline .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(28px);
  animation: word-rise 0.85s cubic-bezier(.2,.8,.2,1) forwards;
}
.diorama-headline .word.w2 { animation-delay: 0.12s; }
.diorama-headline .word.w3 { animation-delay: 0.22s; }
.diorama-headline .word.w4 { animation-delay: 0.32s; }
.diorama-headline .word.w5 { animation-delay: 0.42s; }
.diorama-headline .accent {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--ember-soft);
  margin-top: 6px;
}
@keyframes word-rise {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.diorama-sub {
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.55;
  color: rgba(250, 245, 237, 0.78);
  max-width: 620px;
  margin: 0 0 36px;
  animation: rise-in 1.1s cubic-bezier(.2,.8,.2,1) 0.55s both;
}

.diorama-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise-in 1.15s cubic-bezier(.2,.8,.2,1) 0.70s both;
}

/* Stats inferior dentro del diorama */
.diorama-stats {
  display: flex;
  gap: 52px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 245, 237, 0.10);
  animation: rise-in 1.3s cubic-bezier(.2,.8,.2,1) 0.95s both;
}
.diorama-stat .stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #faf5ed;
  margin-bottom: 6px;
}
.diorama-stat .stat-num em {
  font-style: italic;
  color: var(--ember-soft);
  font-weight: 500;
}
.diorama-stat .stat-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(250, 245, 237, 0.55);
  font-weight: 600;
}

/* Scroll indicator */
.diorama-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(250, 245, 237, 0.45);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 7;
  text-decoration: none;
}
.diorama-scroll .arrow-down {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, rgba(250, 245, 237, 0.55));
  animation: scroll-trail 1.8s ease-in-out infinite;
}

@media (max-width: 820px) {
  .diorama-hero { min-height: 80vh; perspective: none; }
  .diorama-content { padding: 92px 0 56px; }
  .diorama-stats { gap: 24px; margin-top: 36px; padding-top: 22px; flex-wrap: wrap; }
  .diorama-foreground { right: -8%; opacity: 0.22; width: 160px; }
  .diorama-frame-left, .diorama-frame-right { width: 8%; }
  .diorama-scroll { display: none; }
  /* Reduce parallax on mobile · evita jitter */
  .diorama-layer-bg,
  .diorama-layer-mist,
  .diorama-layer-cabin,
  .diorama-content,
  .diorama-foreground { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .diorama-layer-bg,
  .diorama-layer-mist,
  .diorama-layer-cabin,
  .diorama-content,
  .diorama-foreground,
  .diorama-frame-left,
  .diorama-frame-right { transform: none !important; transition: none !important; }
  .diorama-headline .word,
  .diorama-eyebrow,
  .diorama-sub,
  .diorama-ctas,
  .diorama-stats,
  .diorama-foreground .wisp { animation: none !important; opacity: 1 !important; filter: none !important; }
}

/* ============================================================
   11 · 21st.dev EFFECTS · spotlight + embers + ticker
   ============================================================ */

/* 11.a · Cursor-following spotlight (Aceternity signature) */
.diorama-spotlight {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle 420px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 213, 168, 0.22) 0%,
    rgba(224, 122, 77, 0.14) 30%,
    rgba(200, 71, 43, 0.06) 55%,
    transparent 72%
  );
  mix-blend-mode: screen;
  transition: opacity 0.4s;
  opacity: 0;
}
.diorama-hero:hover .diorama-spotlight { opacity: 1; }

/* 11.b · Falling embers (ambient particles) */
.diorama-embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.ember {
  position: absolute;
  top: -10vh;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #e07a4d;
  box-shadow: 0 0 6px #e07a4d, 0 0 14px rgba(224, 122, 77, 0.55);
  opacity: 0;
  animation: ember-drift linear infinite;
  will-change: transform, opacity;
}
@keyframes ember-drift {
  0%   { transform: translate(0, 0)            scale(1);    opacity: 0; }
  8%   { opacity: 0.85; }
  85%  { opacity: 0.35; }
  100% { transform: translate(-60px, 115vh)   scale(0.4);  opacity: 0; }
}
/* 12 partículas con offsets, delays y duraciones distintas */
.ember:nth-child(1)  { left: 7%;  animation-duration: 11s; animation-delay: 0s;   }
.ember:nth-child(2)  { left: 14%; animation-duration: 9s;  animation-delay: 1.4s; }
.ember:nth-child(3)  { left: 22%; animation-duration: 13s; animation-delay: 3.8s; width: 3px; height: 3px; }
.ember:nth-child(4)  { left: 31%; animation-duration: 10s; animation-delay: 6.2s; }
.ember:nth-child(5)  { left: 39%; animation-duration: 14s; animation-delay: 2.1s; }
.ember:nth-child(6)  { left: 47%; animation-duration: 12s; animation-delay: 5.5s; width: 1.5px; height: 1.5px; }
.ember:nth-child(7)  { left: 56%; animation-duration: 10s; animation-delay: 0.6s; }
.ember:nth-child(8)  { left: 64%; animation-duration: 15s; animation-delay: 4.2s; width: 3px; height: 3px; }
.ember:nth-child(9)  { left: 73%; animation-duration: 11s; animation-delay: 7.4s; }
.ember:nth-child(10) { left: 81%; animation-duration: 13s; animation-delay: 3.1s; }
.ember:nth-child(11) { left: 88%; animation-duration: 9s;  animation-delay: 5.8s; }
.ember:nth-child(12) { left: 94%; animation-duration: 12s; animation-delay: 8.6s; width: 2.5px; height: 2.5px; }

@media (max-width: 820px) {
  .ember:nth-child(n+8) { display: none; }  /* menos partículas en móvil */
  .diorama-spotlight { display: none; }     /* spotlight solo escritorio */
}

@media (prefers-reduced-motion: reduce) {
  .ember { animation: none !important; opacity: 0 !important; }
  .diorama-spotlight { display: none !important; }
}

/* 11.c · Stat number ticker (entra animado) */
.diorama-stat .stat-num[data-target] { font-variant-numeric: tabular-nums; }
.diorama-stat .stat-num.tick-ready { opacity: 0.4; }
.diorama-stat .stat-num.ticking,
.diorama-stat .stat-num.tick-done { opacity: 1; transition: opacity 0.3s; }

/* 12 · MAP FEATURE · sección destacada en home */
.map-feature {
  padding: 96px 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(200, 71, 43, 0.08), transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(212, 184, 150, 0.18), transparent 55%),
    var(--bg-cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.map-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.map-feature-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
  color: var(--ink);
}
.map-feature-title em {
  font-style: italic;
  color: var(--ember);
  font-weight: 500;
}
.map-feature-sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}
.map-feature-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mf-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mf-stat strong {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--ember);
  line-height: 1;
}
.mf-stat span {
  font-size: 12px;
  color: var(--wood-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.map-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ember);
  color: white !important;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(200, 71, 43, 0.25);
  transition: all 0.2s;
}
.map-feature-cta:hover {
  background: var(--wood-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 71, 43, 0.35);
}
.map-feature-cta .arrow { transition: transform 0.2s; }
.map-feature-cta:hover .arrow { transform: translateX(4px); }
.map-feature-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}
.map-feature-note a { color: var(--ember); font-style: normal; }

/* Preview decorativo · derecho */
.map-feature-preview {
  position: relative;
  height: 480px;
}
.mf-globe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: 380px;
  max-height: 380px;
  transform: translate(-50%, -50%);
  opacity: 0.85;
}
.mf-preview-card {
  position: absolute;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 24px rgba(43, 32, 24, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  z-index: 2;
  animation: mfFloat 6s ease-in-out infinite;
}
.mf-preview-card strong {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.mf-preview-card .mf-tag {
  font-size: 10px;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.mf-preview-card .mf-city {
  font-size: 11px;
  color: var(--wood-dark);
  font-weight: 600;
}
.mf-card-1 { top: 8%; left: 0; animation-delay: 0s; }
.mf-card-2 { top: 28%; right: 5%; animation-delay: 1.5s; }
.mf-card-3 { bottom: 28%; left: 8%; animation-delay: 3s; }
.mf-card-4 { bottom: 6%; right: 0; animation-delay: 4.5s; }

@keyframes mfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 880px) {
  .map-feature { padding: 64px 0; }
  .map-feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .map-feature-preview {
    height: 360px;
    order: -1;
  }
  .map-feature-stats { gap: 20px; }
  .mf-stat strong { font-size: 28px; }
  .mf-preview-card { min-width: 170px; padding: 10px 14px; }
  .mf-globe { max-width: 280px; max-height: 280px; }
}
