/* ===== ESTILOS GLOBALES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --dark: #1c1a17;
  --brown: #6b4f3a;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --muted: #8a7968;
  --border: rgba(107, 79, 58, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===== HERO SECTION ===== */
header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.puzzle-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  opacity: 0.06;
  pointer-events: none;
}

.puzzle-piece {
  border: 1px solid var(--brown);
  position: relative;
  animation: pieceFade 4s ease-in-out infinite;
}

.puzzle-piece:nth-child(odd) { animation-delay: calc(var(--i) * 0.3s); }
.puzzle-piece:nth-child(3n) { background: var(--gold); opacity: 0.5; }

@keyframes pieceFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeUp 1.2s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fadeUp 1.2s 0.2s ease both;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 0.3em;
  animation: fadeUp 1.2s 0.35s ease both;
}

h1 em {
  font-style: italic;
  color: var(--brown);
}

.header-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeUp 1.2s 0.5s ease both;
}

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 2.5rem;
  animation: fadeUp 1.2s 0.6s ease both;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--dark);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border: 1px solid var(--dark);
  transition: background 0.3s, color 0.3s;
  animation: fadeUp 1.2s 0.7s ease both;
}

.cta-btn:hover {
  background: transparent;
  color: var(--dark);
}

.cta-btn svg { flex-shrink: 0; }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 1.5s 1s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark);
  padding: 2.2rem 2rem;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
  padding: 0.8rem 3rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat:last-child { border-right: none; }

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-top: 0.4rem;
}

/* ── SECTIONS ── */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 400;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

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

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  padding: 1.8rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.feature-card:hover { border-color: var(--gold-light); transform: translateY(-3px); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  display: block;
}

.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.feature-card.tall { grid-column: span 2; display: flex; gap: 1.5rem; align-items: center; }
.feature-card.tall .feature-icon { font-size: 2.2rem; flex-shrink: 0; }

/* ── VIDEOS ── */
.videos-section {
  background: var(--warm-white);
  max-width: 100%;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.videos-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.videos-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.video-card {
  border: 1px solid var(--border);
  background: var(--cream);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.video-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(28,26,23,0.1); }

.video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--gold-light), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-thumb .puzzle-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  opacity: 0.2;
}

.video-thumb .puzzle-grid div {
  border: 1px solid var(--brown);
}

.play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s, background 0.3s;
}

.video-card:hover .play-btn { transform: scale(1.1); background: var(--brown); }
.short-card:hover .play-btn  { transform: scale(1.1); background: var(--brown); }

.play-btn svg { margin-left: 3px; }

.video-badge {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  background: var(--dark);
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  z-index: 1;
}

.video-info { padding: 1.3rem 1.2rem; }

.video-num {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.video-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.video-meta {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 300;
}

/* SHORTS */
.shorts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 100%;
}

.short-card {
  border: 1px solid var(--border);
  background: var(--cream);
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.short-card:hover { transform: translateY(-4px); }

.short-thumb {
  aspect-ratio: 9/16;
  background: linear-gradient(170deg, var(--gold-light), var(--cream));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.short-thumb .puzzle-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 1fr);
  opacity: 0.15;
}

.short-badge {
  position: absolute;
  top: 0.6rem; left: 0.6rem;
  background: #ff0000;
  color: white;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  font-weight: 500;
}

.short-info { padding: 1rem; }

.short-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
}

/* ── LA PIEZA EXTRA ── */
.pieza-section {
  background: var(--dark);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pieza-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,169,110,0.08) 0%, transparent 70%);
}

.pieza-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}

.pieza-section .section-label { color: var(--gold-light); }

.pieza-section .section-title {
  color: var(--warm-white);
}

.pieza-section .section-title em { color: var(--gold); }

.pieza-section p {
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.pieza-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.puzzle-icon-large {
  width: 260px;
  height: 260px;
  position: relative;
}

.puzzle-icon-large svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* ── NEWSLETTER / SUBSCRIBE ── */
.subscribe-section {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.subscribe-section .divider { margin-bottom: 2.5rem; }

.subscribe-section .section-title { text-align: center; margin-bottom: 1rem; }

.subscribe-section p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ff0000;
  color: white;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 2.5rem;
  transition: opacity 0.3s, transform 0.3s;
}

.subscribe-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

footer p {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
}

footer span { color: var(--gold); }

footer a {
    font-size:0.65rem;
    letter-spacing:0.2em;
    color:rgba(255,255,255,0.28);
    text-transform:uppercase;
    text-decoration:none;
    transition:color 0.3s;
}
footer a:hover {
    color: var(--gold);
}

/* ── BOTÓN OUTLINE (secundario) ── */
.cta-btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--gold);
}

.cta-btn--outline:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .videos-grid { grid-template-columns: 1fr; }
  .shorts-row { max-width: 100%; }
  .pieza-inner { grid-template-columns: 1fr; gap: 3rem; }
  .pieza-visual { display: none; }
  .stat { padding: 0.8rem 1.5rem; }
  .feature-card.tall { flex-direction: column; }
}

@media (max-width: 480px) {
  .videos-grid { grid-template-columns: 1fr; }
  .about-visual { grid-template-columns: 1fr; }
  .feature-card.tall { grid-column: span 1; }
}

/* ── LOGO ── */
.header-logo {
  width: 200px;
  height: 200px;  margin: 0 auto 2rem;
  animation: fadeUp 1.2s 0.1s ease both;
  filter: drop-shadow(0 4px 20px rgba(201,169,110,0.2));
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}