
:root {
  --ink: #110d07;
  --ink2: #1e1710;
  --sepia: #b8935a;
  --sepia-lt: #d4b07a;
  --sepia-pale: #f0dfc0;
  --cream: #fdf6e8;
  --cream2: #f7edd5;
  --gold: #c9920a;
  --gold-lt: #e8b84b;
  --rust: #8c3415;
  --rust-lt: #b5501e;
  --sage: #3d5c35;
  --sage-lt: #5a7e50;
  --paper: #fbf2df;
  --shadow-warm: rgba(17,13,7,0.18);
  --shadow-deep: rgba(17,13,7,0.35);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
  cursor: default;
}

/* GRAIN 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: 9999;
  opacity: 0.5;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(17,13,7,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,147,90,0.2);
  transition: background 0.3s;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--sepia-lt);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gold);
  border-radius: 1px;
  rotate: 45deg;
}

.nav-logo-mark span { rotate: -45deg; display: block; }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links li a {
  display: block;
  padding: 0.4rem 1rem;
  color: rgba(212,176,122,0.75);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-links li a:hover { color: var(--gold-lt); border-bottom-color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 0.45rem 1.1rem !important;
  border: none !important;
  font-weight: 600;
  border-radius: 1px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--sepia-lt); display: block; transition: 0.3s; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 2rem 4rem;
  background: var(--ink2);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(184,147,90,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(61,92,53,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 80% 10%, rgba(140,52,21,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #110d07 0%, #1a1408 40%, #0e0b06 100%);
}

/* Decorative horizontal lines */
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-lines::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,147,90,0.15), rgba(184,147,90,0.3), rgba(184,147,90,0.15), transparent);
}

/* SVG Ornamental frame */
.hero-frame {
  position: absolute;
  inset: 20px;
  pointer-events: none;
  opacity: 0.25;
}

.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  border: 1px solid var(--sepia);
}

.hero-frame::before { inset: 0; }
.hero-frame::after { inset: 8px; }

/* Corner ornaments */
.corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--sepia-lt);
  border-style: solid;
  opacity: 0.5;
}

.corner-tl { top: 24px; left: 24px; border-width: 1.5px 0 0 1.5px; }
.corner-tr { top: 24px; right: 24px; border-width: 1.5px 1.5px 0 0; }
.corner-bl { bottom: 24px; left: 24px; border-width: 0 0 1.5px 1.5px; }
.corner-br { bottom: 24px; right: 24px; border-width: 0 1.5px 1.5px 0; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-ornament {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.8rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
  color: var(--cream);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-lt);
  display: block;
  font-size: 0.75em;
  line-height: 1.2;
}

.hero-subtitle-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-subtitle-line::before,
.hero-subtitle-line::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sepia));
}

.hero-subtitle-line::after {
  background: linear-gradient(90deg, var(--sepia), transparent);
}

.hero-city {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--sepia-lt);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(240,223,192,0.7);
  font-style: italic;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  padding: 0.9rem 2.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border-radius: 1px;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,146,10,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--sepia-lt);
  padding: 0.9rem 2.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  border: 1px solid rgba(184,147,90,0.4);
  transition: all 0.25s;
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--sepia-lt);
  color: var(--cream);
  background: rgba(184,147,90,0.08);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(184,147,90,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s 1.6s forwards;
}

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

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

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--ink);
  border-top: 1px solid rgba(184,147,90,0.15);
  border-bottom: 1px solid rgba(184,147,90,0.15);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 3rem;
  border-right: 1px solid rgba(184,147,90,0.15);
}

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

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(184,147,90,0.6);
  margin-top: 0.25rem;
  display: block;
}

/* ─── SECTION BASE ─── */
.section {
  padding: 6rem 2rem;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sepia);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

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

.section-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem auto 1.25rem;
}

.section-desc {
  max-width: 520px;
  margin: 0 auto;
  color: #5a4a30;
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
}

/* ─── SECTION HEADERS ON DARK BACKGROUNDS ─── */
.section-header.is-dark .section-tag {
  color: rgba(212,176,122,0.84);
}

.section-header.is-dark .section-title {
  color: var(--cream);
}

.section-header.is-dark .section-title em {
  color: var(--gold-lt);
}

.section-header.is-dark .section-rule {
  background: rgba(232,184,75,0.92);
}

.section-header.is-dark .section-desc {
  max-width: 640px;
  color: rgba(253,246,232,0.82);
  font-size: 1.16rem;
  line-height: 1.82;
}

/* ─── MÓDULOS GRID ─── */
.modules-bg {
  background: var(--cream2);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(184,147,90,0.15);
  border: 1px solid rgba(184,147,90,0.15);
}

.module-card {
  background: var(--paper);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.module-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.module-card:hover { background: var(--cream); }
.module-card:hover::before { transform: scaleX(1); }

.module-card.accent-rust::before { background: var(--rust); }
.module-card.accent-sage::before { background: var(--sage); }
.module-card.accent-sepia::before { background: var(--sepia); }

.module-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(184,147,90,0.12);
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  line-height: 1;
  user-select: none;
}

.module-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.3s;
}

.module-card:hover .module-icon { transform: scale(1.15); }

.module-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.module-desc {
  font-size: 0.95rem;
  color: #6a5035;
  line-height: 1.6;
}

.module-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: rgba(184,147,90,0.12);
  color: var(--sepia);
  border-radius: 1px;
}

.module-badge.new { background: rgba(140,52,21,0.1); color: var(--rust); }
.module-badge.community { background: rgba(61,92,53,0.1); color: var(--sage); }

/* ─── RELOJ CUCÚ SPOTLIGHT ─── */
.cucu-section {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.cucu-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(184,147,90,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(61,92,53,0.06) 0%, transparent 50%);
}

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

.cucu-text .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sepia);
  display: block;
  margin-bottom: 1rem;
}

.cucu-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cucu-text h2 em { font-style: italic; color: var(--gold-lt); }

.cucu-text p {
  color: rgba(253,246,232,0.80);
  line-height: 1.82;
  font-size: 1.14rem;
  margin-bottom: 1.25rem;
}

.cucu-text .cucu-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold-lt);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,146,10,0.3);
  padding-bottom: 0.25rem;
  transition: all 0.2s;
  cursor: pointer;
}

.cucu-text .cucu-cta:hover { color: var(--gold); border-bottom-color: var(--gold); gap: 1.2rem; }

/* Photo mosaic */
.cucu-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  aspect-ratio: 1;
  position: relative;
}

.mosaic-cell {
  background: rgba(184,147,90,0.08);
  border: 1px solid rgba(184,147,90,0.12);
  border-radius: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(184,147,90,0.4);
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
}

.mosaic-cell:hover {
  background: rgba(184,147,90,0.15);
  border-color: rgba(184,147,90,0.3);
}

.mosaic-cell.big {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  background: rgba(201,146,10,0.12);
  border-color: rgba(201,146,10,0.25);
}

.mosaic-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(212,176,122,0.6);
  display: block;
  line-height: 1;
}

.mosaic-cell.big .mosaic-year { font-size: 1.6rem; color: var(--gold-lt); }

.mosaic-label { font-size: 0.55rem; }

.mosaic-add {
  background: rgba(184,147,90,0.05);
  border: 1px dashed rgba(184,147,90,0.2);
  cursor: pointer;
  color: rgba(184,147,90,0.3);
  font-size: 1.5rem !important;
  transition: all 0.3s;
}

.mosaic-add:hover {
  background: rgba(184,147,90,0.12);
  color: rgba(184,147,90,0.6);
}

/* ─── DOCUMENTAL ─── */
.documental-bg { background: var(--cream2); }

.documental-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.doc-featured {
  background: var(--ink);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.doc-featured-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1208 0%, #2a1c0a 40%, #3a2510 70%, #1a1208 100%);
}

.doc-featured-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.doc-ep {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.doc-featured-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.doc-featured-content p {
  font-size: 0.9rem;
  color: rgba(240,223,192,0.6);
  font-style: italic;
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(201,146,10,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 2;
}

.doc-featured:hover .play-btn {
  background: var(--gold-lt);
  transform: translate(-50%, -50%) scale(1.1);
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-item {
  background: var(--paper);
  padding: 1rem 1.25rem;
  border-left: 3px solid transparent;
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 1px;
}

.doc-item:hover { border-left-color: var(--gold); background: var(--cream); }
.doc-item:nth-child(1) { border-left-color: var(--gold); }

.doc-item-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(184,147,90,0.35);
  min-width: 2rem;
  text-align: center;
  line-height: 1;
}

.doc-item-body { flex: 1; }

.doc-item-body strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.doc-item-body span {
  font-size: 0.8rem;
  color: #8a7050;
  font-style: italic;
}

.doc-item-icon { color: var(--sepia); font-size: 1rem; opacity: 0.5; }
.doc-item:hover .doc-item-icon { opacity: 1; }

.doc-coming {
  background: rgba(184,147,90,0.06);
  border: 1px dashed rgba(184,147,90,0.2);
  border-left: 3px dashed rgba(184,147,90,0.2);
}

.doc-coming:hover { border-color: rgba(184,147,90,0.35); border-left-color: var(--sepia); }

/* ─── VOCES ─── */
.voces-bg { background: var(--ink); }

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

.voz-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,147,90,0.12);
  border-radius: 2px;
  padding: 1.75rem;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
}

.voz-card:hover {
  background: rgba(184,147,90,0.06);
  border-color: rgba(184,147,90,0.25);
  transform: translateY(-3px);
}

.voz-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(184,147,90,0.15);
  border: 1.5px solid rgba(184,147,90,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.voz-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.voz-meta {
  font-size: 0.78rem;
  color: rgba(212,176,122,0.82);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.voz-quote {
  font-size: 0.98rem;
  color: rgba(253,246,232,0.76);
  line-height: 1.72;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(184,147,90,0.28);
}

.voz-play {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sepia);
}

.play-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--sepia);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--sepia);
  transition: all 0.2s;
}

.voz-card:hover .play-dot { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.voz-cta-row {
  text-align: center;
  margin-top: 3rem;
}

.voz-sumar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sepia-lt);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(184,147,90,0.25);
  padding: 0.85rem 2rem;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  border-radius: 1px;
}

.voz-sumar:hover { border-color: var(--sepia-lt); color: var(--cream); background: rgba(184,147,90,0.08); }

/* ─── ANTES & DESPUÉS PREVIEW ─── */
.antesdespues-bg { background: var(--cream2); }

.slider-demo {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 20px 60px var(--shadow-warm);
  user-select: none;
}

.slider-label {
  text-align: center;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #6a5035;
  font-size: 1rem;
}

.sd-container {
  position: relative;
  aspect-ratio: 16/9;
  background: #e9e0d1;
  overflow: hidden;
}

.sd-layer,
.sd-after,
.sd-before {
  position: absolute;
  inset: 0;
}

.sd-after,
.sd-before {
  background: linear-gradient(135deg, #2a1c0a, #3a2810, #2a1808);
}

.sd-after { z-index: 1; }

.sd-before-clip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.sd-before {
  width: 100vw;
  min-width: 100%;
}

.sd-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-after::after,
.sd-before::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,13,7,0.06), rgba(17,13,7,0.30) 42%, rgba(17,13,7,0.62) 100%);
  pointer-events: none;
}

.sd-meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 3;
  pointer-events: none;
}

.sd-meta .year {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

.sd-meta .meta-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.sd-meta-before .year { color: rgba(223,196,145,0.95); }
.sd-meta-after .year { color: rgba(242,237,226,0.92); }

.sd-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.95);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0,0,0,0.28);
  z-index: 4;
}

.sd-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(184,147,90,0.25);
  background: rgba(255,255,255,0.97);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0,0,0,0.24);
  cursor: ew-resize;
  z-index: 5;
  touch-action: none;
}

.sd-overlay-l, .sd-overlay-r {
  position: absolute;
  bottom: 1rem;
  z-index: 5;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.42rem 0.82rem;
  background: rgba(0,0,0,0.42);
  color: rgba(255,255,255,0.82);
  border-radius: 2px;
}

.sd-overlay-l { left: 1rem; }
.sd-overlay-r { right: 1rem; }

@media (max-width: 720px) {
  .slider-demo { border-radius: 0; }
  .sd-meta .year { font-size: clamp(1.35rem, 7vw, 2.2rem); }
  .sd-handle { width: 44px; height: 44px; font-size: .95rem; }
  .sd-overlay-l, .sd-overlay-r { font-size: 0.58rem; padding: 0.38rem 0.7rem; }
}

/* ─── COMMUNITY UPLOAD ─── */
.upload-section {
  background: var(--paper);
  border-top: 1px solid rgba(184,147,90,0.15);
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.upload-text .eyebrow-tag {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sepia);
  display: block;
  margin-bottom: 0.75rem;
}

.upload-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.upload-text h2 em { font-style: italic; color: var(--rust); }

.upload-text p {
  color: #6a5035;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.upload-steps {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upload-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  color: #5a4030;
  line-height: 1.5;
}

.step-num {
  min-width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.upload-form-area {
  background: var(--cream2);
  border: 1.5px dashed rgba(184,147,90,0.35);
  border-radius: 2px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.upload-form-area:hover {
  border-color: var(--sepia);
  background: white;
}

.upload-form-area.is-mail-only {
  cursor: default;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(246,234,211,0.85));
}

.upload-form-area.is-mail-only:hover {
  border-color: rgba(184,147,90,0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(246,234,211,0.9));
}

.upload-mail-btn,
.upload-copy-btn {
  margin: 0.25rem 0.35rem 0;
}

.upload-copy-btn {
  border: 1px solid rgba(184,147,90,0.28);
  background: transparent;
  color: var(--ink);
  padding: 0.9rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

.upload-contact-line {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.35rem;
  color: #6f5338;
  font-size: 0.87rem;
}

.upload-contact-line strong {
  font-size: 1rem;
  color: var(--ink);
}

.upload-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.6; }

.upload-form-area h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.upload-form-area p {
  font-size: 0.9rem;
  color: #8a7050;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.upload-types {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.type-tag {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  background: rgba(184,147,90,0.1);
  color: var(--sepia);
  border-radius: 1px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(184,147,90,0.1);
  padding: 4rem 2rem 2rem;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(184,147,90,0.1);
}

.footer-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--sepia-lt);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-brand .logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(184,147,90,0.4);
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.94rem;
  color: rgba(253,246,232,0.66);
  line-height: 1.78;
  font-style: italic;
  max-width: 280px;
}

.footer-institutional {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 2.4rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(184,147,90,0.16);
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(184,147,90,0.05));
}

.footer-mini-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(184,147,90,0.6);
}

.footer-institutional-copy h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--sepia-lt);
  margin: 0 0 0.5rem;
}

.footer-institutional-copy p {
  margin: 0;
  max-width: 520px;
  color: rgba(253,246,232,0.68);
  line-height: 1.7;
}

.footer-institutional-data {
  display: grid;
  gap: 0.8rem;
}

.footer-data-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(184,147,90,0.12);
  background: rgba(255,255,255,0.025);
}

.footer-data-item span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(184,147,90,0.52);
}

.footer-data-item a,
.footer-data-item strong {
  color: rgba(253,246,232,0.84);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-data-item a:hover {
  color: var(--sepia-lt);
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sepia);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(253,246,232,0.70);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--sepia-lt); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(240,223,192,0.52);
  font-style: italic;
}

.footer-ornament {
  color: var(--sepia);
  opacity: 0.3;
  font-size: 1rem;
  letter-spacing: 0.5rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── TICKER ─── */
.ticker-wrap {
  background: rgba(184,147,90,0.08);
  border-top: 1px solid rgba(184,147,90,0.12);
  border-bottom: 1px solid rgba(184,147,90,0.12);
  padding: 0.6rem 0;
  overflow: hidden;
  position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
}

.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: tickerScroll 25s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(184,147,90,0.6);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ticker-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .documental-grid { grid-template-columns: 1fr; }
  .cucu-inner { grid-template-columns: 1fr; gap: 3rem; }
  .voces-grid { grid-template-columns: 1fr 1fr; }
  .upload-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { border-right: none; padding: 0.75rem 2rem; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .modules-grid { grid-template-columns: 1fr; }
  .voces-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cucu-mosaic { max-width: 300px; margin: 0 auto; }
  .hero-actions { flex-direction: column; align-items: center; }
}


/* ===== Ajustes modulares sin alterar la estética ===== */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(17,13,7,0.97);
  padding: 1rem;
  z-index: 999;
  border-bottom: 1px solid rgba(184,147,90,0.15);
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.dynamic-link-reset {
  color: inherit;
  text-decoration: none;
}

.module-card[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.9;
}

.cucu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.35rem;
}

.landmark-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.landmark-dot,
.landmark-arrow {
  border: 1px solid rgba(184,147,90,0.28);
  background: rgba(17,13,7,0.04);
  color: var(--ink);
  padding: 0.45rem 0.72rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.landmark-dot:hover,
.landmark-dot.is-active,
.landmark-arrow:hover {
  background: rgba(184,147,90,0.12);
  border-color: rgba(184,147,90,0.55);
  color: var(--ink);
  transform: translateY(-1px);
}

.landmark-dot.is-active {
  box-shadow: 0 10px 30px rgba(17,13,7,0.08);
}

.landmark-rotation-note {
  color: rgba(17,13,7,0.55);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.cucu-cta[href] {
  cursor: pointer;
}

.mosaic-cell {
  background-position: center;
  background-size: cover;
}

.mosaic-cell.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,13,7,0.08), rgba(17,13,7,0.42));
  pointer-events: none;
}

.mosaic-cell,
.doc-featured,
.sd-before,
.sd-after,
.voz-avatar {
  position: relative;
}

.doc-featured-bg.has-image,
.sd-before.has-image,
.sd-after.has-image {
  background-size: cover !important;
  background-position: center !important;
}

.doc-featured-bg.has-image::after,
.sd-before.has-image::after,
.sd-after.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,13,7,0.12), rgba(17,13,7,0.65));
}

.doc-item-link {
  text-decoration: none;
  color: inherit;
}

.doc-item-link:hover .doc-item {
  transform: translateY(-2px);
}

.error-box {
  max-width: 960px;
  margin: 100px auto;
  padding: 2rem;
  border: 1px solid rgba(184,147,90,0.25);
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.2));
  box-shadow: 0 15px 35px rgba(17,13,7,0.08);
  font-family: 'Cormorant Garamond', serif;
}

.error-box h1 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .landmark-nav {
    gap: 0.4rem;
  }

  .landmark-dot,
  .landmark-arrow {
    font-size: 0.88rem;
    padding: 0.42rem 0.6rem;
  }
}



/* ─── MOSAIC SLIDER ─── */
.mosaic-slider {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(253,246,232,0.92)),
    var(--slider-bg-image, none),
    linear-gradient(180deg, #f9f1e3 0%, #f4ead7 100%);
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(184,147,90,0.12);
  border-bottom: 1px solid rgba(184,147,90,0.12);
}

.mosaic-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(201,146,10,0.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(251,242,223,0.62));
  pointer-events: none;
}

.carousel-shell {
  position: relative;
  z-index: 1;
}

.carousel-intro {
  max-width: 1100px;
  margin: 0 auto 1.4rem;
  padding: 0 2rem;
  text-align: center;
}

.slider-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  color: var(--ink);
  line-height: 1.1;
}

.slider-title em { color: var(--rust); font-style: italic; }

.slider-desc {
  max-width: 660px;
  margin: 0.9rem auto 0;
  color: #6d553a;
  font-size: 1.04rem;
  line-height: 1.75;
  font-style: italic;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  width: max-content;
  will-change: transform;
  padding: 10px 12px 16px;
}

.slide-item {
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,237,213,0.92));
  border: 1px solid rgba(184,147,90,0.16);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(17,13,7,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
}

.slide-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184,147,90,0.10);
  border-radius: 18px;
  pointer-events: none;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #fff;
}

.slide-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: flex-start;
}

.slide-caption span {
  background: rgba(17,13,7,0.78);
  color: var(--cream);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slide-item.square { width: 220px; height: 220px; }
.slide-item.vertical { width: 180px; height: 270px; }
.slide-item.horizontal { width: 300px; height: 180px; }
.slide-item.panorama { width: 360px; height: 170px; }
.slide-item.tall { width: 200px; height: 320px; }

/* ─── MÓDULOS REFINADOS ─── */
.modules-bg {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247,237,213,0.96), rgba(253,246,232,0.97)),
    var(--modules-bg-image, none),
    var(--cream2);
  background-size: cover;
  background-position: center;
}

.modules-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 50% 0%, rgba(201,146,10,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(253,246,232,0.46));
  pointer-events: none;
}

.modules-inner {
  position: relative;
  z-index: 1;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  background: transparent;
  border: 0;
}

.module-card {
  padding: 0;
  background: rgba(251,242,223,0.84);
  border: 1px solid rgba(184,147,90,0.18);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(17,13,7,0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  backdrop-filter: blur(3px);
}

.module-card::before {
  top: 0;
  bottom: auto;
  height: 2px;
  transform: scaleX(1);
  opacity: 0.65;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(17,13,7,0.14);
  border-color: rgba(184,147,90,0.28);
  background: rgba(253,246,232,0.95);
}

.module-card:hover::before { transform: scaleX(1); }

.module-media {
  position: relative;
  min-height: 210px;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(17,13,7,0.72), rgba(17,13,7,0.24)),
    linear-gradient(135deg, #2a1d11 0%, #120d08 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-media.has-image {
  background-size: cover;
  background-position: center;
}

.module-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,13,7,0.22), rgba(17,13,7,0.62));
}

.module-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(232,184,75,0.16), transparent 34%);
  opacity: 0.9;
}

.module-media-top,
.module-media-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.module-num {
  position: static;
  font-size: 2.3rem;
  color: rgba(253,246,232,0.72);
}

.module-badge {
  margin-top: 0;
  background: rgba(253,246,232,0.14);
  border: 1px solid rgba(253,246,232,0.18);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.module-badge.new { background: rgba(201,146,10,0.18); color: #ffe9bc; border-color: rgba(201,146,10,0.25); }
.module-badge.community { background: rgba(61,92,53,0.18); color: #d8e7d3; border-color: rgba(61,92,53,0.28); }

.module-kicker {
  display: inline-block;
  color: rgba(253,246,232,0.78);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.module-icon {
  font-size: 1.3rem;
  margin-bottom: 0;
  color: rgba(253,246,232,0.92);
}

.module-card:hover .module-icon { transform: translateY(-2px) scale(1.04); }

.module-card-body {
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.8rem;
}

.module-card > .module-media {
  flex: 0 0 auto;
}

.module-name {
  font-size: 1.28rem;
  margin-bottom: 0.1rem;
}

.module-desc {
  font-size: 0.95rem;
  color: #6b5136;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.module-points {
  list-style: none;
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.module-points li {
  border: 1px solid rgba(184,147,90,0.18);
  background: rgba(255,255,255,0.45);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.72rem;
  color: #6f573c;
  letter-spacing: 0.04em;
}

.module-points li:nth-child(n+3) {
  display: none;
}

.module-action {
  margin-top: auto;
  padding-top: 0.55rem;
  color: var(--rust);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.featured-card { grid-column: span 2; }

.modules-extra {
  margin-top: 2.1rem;
}

.trivia-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.4rem;
  background: rgba(17,13,7,0.96);
  border: 1px solid rgba(184,147,90,0.18);
  border-radius: 26px;
  padding: 1.4rem;
  box-shadow: 0 24px 48px rgba(17,13,7,0.18);
}

.trivia-copy {
  padding: 1rem 1rem 1rem 0.6rem;
}

.trivia-copy h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  color: var(--cream);
  line-height: 1.15;
}

.trivia-copy h3 em { color: var(--gold-lt); font-style: italic; }

.trivia-copy p {
  margin-top: 1rem;
  color: rgba(240,223,192,0.68);
  font-size: 1.05rem;
  line-height: 1.75;
}

.trivia-meta {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trivia-meta span {
  border: 1px solid rgba(184,147,90,0.22);
  color: rgba(240,223,192,0.72);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trivia-card {
  background: linear-gradient(180deg, rgba(253,246,232,0.98), rgba(247,237,213,0.98));
  border-radius: 20px;
  border: 1px solid rgba(184,147,90,0.16);
  padding: 1.25rem;
}

.trivia-progress {
  color: var(--sepia);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.trivia-question {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.trivia-options {
  display: grid;
  gap: 0.75rem;
}

.trivia-option {
  text-align: left;
  border: 1px solid rgba(184,147,90,0.20);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.trivia-option:hover { transform: translateY(-2px); border-color: rgba(184,147,90,0.35); background: #fff; }
.trivia-option.is-correct { background: rgba(90,126,80,0.14); border-color: rgba(90,126,80,0.42); }
.trivia-option.is-wrong { background: rgba(140,52,21,0.12); border-color: rgba(140,52,21,0.34); }

.trivia-feedback {
  min-height: 66px;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(184,147,90,0.10);
  color: #5d472e;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trivia-feedback strong {
  color: var(--rust);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trivia-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.trivia-next {
  border: 0;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.trivia-next:hover { background: #251d15; }

/* responsive updates */
@media (max-width: 1100px) {
  .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card { grid-column: span 2; }
  .trivia-shell { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mosaic-slider { padding: 1rem 0 1.5rem; }
  .carousel-intro { padding: 0 1rem; }
  .carousel-track { gap: 12px; padding: 8px 8px 14px; }
  .slide-item.square { width: 150px; height: 150px; }
  .slide-item.vertical { width: 130px; height: 200px; }
  .slide-item.horizontal { width: 220px; height: 130px; }
  .slide-item.panorama { width: 260px; height: 120px; }
  .slide-item.tall { width: 145px; height: 230px; }
  .modules-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: auto; }
  .module-media { min-height: 180px; }
  .trivia-shell { padding: 1rem; }
  .trivia-copy { padding: 0.2rem; }
}


/* ─── FRANJA FOTOGRÁFICA 16:9 / 9:16 ─── */
.museum-filmstrip {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--ink) 0%, #171108 18%, #241a0f 36%, rgba(247,237,213,0.98) 100%),
    var(--filmstrip-bg-image, none);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(184,147,90,0.12);
  padding: 1rem 0 1.75rem;
}

.museum-filmstrip::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 25% at 50% 0%, rgba(201,146,10,0.10), transparent 70%),
    linear-gradient(180deg, rgba(17,13,7,0.12), rgba(247,237,213,0.12));
}

.museum-filmstrip-inner {
  position: relative;
  z-index: 1;
}

.museum-filmstrip-head {
  max-width: 1100px;
  margin: 0 auto 1.1rem;
  padding: 0 2rem;
  text-align: center;
}

.filmstrip-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(212,176,122,0.72);
  margin-bottom: 0.45rem;
}

.museum-filmstrip .filmstrip-tag {
  color: rgba(240,223,192,0.84);
}

.museum-filmstrip .slider-title {
  color: rgba(253,246,232,0.97);
  font-size: clamp(2.05rem, 3.5vw, 3.1rem);
  text-shadow: 0 2px 18px rgba(0,0,0,0.18);
}

.museum-filmstrip .slider-title em {
  color: #f0d79a;
}

.museum-filmstrip .slider-desc {
  max-width: 760px;
  color: rgba(253,246,232,0.86);
  font-size: 1.16rem;
  line-height: 1.82;
  text-shadow: 0 1px 12px rgba(0,0,0,0.14);
}

.filmstrip-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.filmstrip-viewport::before,
.filmstrip-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}

.filmstrip-viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(23,17,8,0.95), rgba(23,17,8,0));
}

.filmstrip-viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(247,237,213,0.90), rgba(247,237,213,0));
}

.filmstrip-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  padding: 0 1.4rem;
  will-change: transform;
}

.film-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(184,147,90,0.22);
  box-shadow: 0 10px 30px rgba(17,13,7,0.20), inset 0 0 0 1px rgba(240,223,192,0.06);
  background: #1a140d;
  flex-shrink: 0;
  height: clamp(240px, 26vw, 320px);
}

.film-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(240,223,192,0.10);
  pointer-events: none;
  z-index: 2;
}

.film-card.landscape {
  aspect-ratio: 16 / 9;
  width: auto;
}

.film-card.portrait {
  aspect-ratio: 9 / 16;
  width: auto;
}

.film-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02) brightness(0.96);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.film-card:hover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.04) brightness(1);
}

.film-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.9rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(10,8,5,0.82), rgba(10,8,5,0.02));
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.film-card-year {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--gold-lt);
  line-height: 1;
}

.film-card-title {
  color: rgba(253,246,232,0.92);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── AJUSTES FINALES SALAS DEL MUSEO ─── */
.modules-inner {
  max-width: 1180px;
}

#modulesHeader .section-desc {
  max-width: 720px;
}

.modules-grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.module-card {
  background: linear-gradient(180deg, rgba(251,242,223,0.90), rgba(253,246,232,0.95));
  min-height: 470px;
}

.module-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.28);
  opacity: 0.65;
}

.module-media {
  min-height: 285px;
  padding: 1.25rem;
}

.featured-card {
  grid-column: 1 / -1;
  grid-row: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.92fr);
  align-items: stretch;
  min-height: 410px;
}

.featured-card .module-media {
  min-height: 100%;
  padding: 1.45rem;
}

.featured-card .module-card-body {
  padding: 1.4rem 1.45rem 1.45rem;
  justify-content: center;
  gap: 0.95rem;
}

.featured-card .module-name {
  font-size: clamp(1.75rem, 2vw, 2.15rem);
  line-height: 1.08;
}

.featured-card .module-desc {
  font-size: 1.03rem;
  max-width: 54ch;
  -webkit-line-clamp: 4;
}

.featured-card .module-points li {
  font-size: 0.76rem;
}

.featured-card .module-action {
  padding-top: 0.7rem;
}

@media (max-width: 1100px) {
  .featured-card {
    grid-column: span 2;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .featured-card .module-media {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .museum-filmstrip {
    padding: 0.9rem 0 1.3rem;
  }

  .museum-filmstrip-head {
    padding: 0 1rem;
    margin-bottom: 0.8rem;
  }

  .filmstrip-viewport::before,
  .filmstrip-viewport::after {
    width: 34px;
  }

  .filmstrip-track {
    gap: 10px;
    padding: 0 0.85rem;
  }

  .film-card {
    height: 220px;
  }

  .film-card.landscape,
  .film-card.portrait {
    width: auto;
  }

  .film-card-overlay {
    padding: 0.65rem 0.7rem;
  }

  .film-card-title {
    font-size: 0.7rem;
  }

  .featured-card {
    grid-column: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .module-card {
    min-height: 420px;
  }

  .module-media {
    min-height: 250px;
  }
}


/* ===== Ajuste fino · Lugares emblemáticos ===== */
.cucu-mosaic {
  display: block;
  aspect-ratio: auto;
  max-width: none !important;
}

.landmark-copy,
.landmark-stage {
  animation: landmarkFadeUp 0.55s ease both;
}

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

.landmark-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 0.85rem;
}

.landmark-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border: 1px solid rgba(184,147,90,0.22);
  background: rgba(240,223,192,0.05);
  color: rgba(240,223,192,0.72);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cucu-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
}

.landmark-stage {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(184,147,90,0.18);
  box-shadow: 0 20px 45px rgba(17,13,7,0.26);
  padding: 0.9rem;
}

.landmark-stage-main {
  border: 1px solid rgba(184,147,90,0.18);
  background: rgba(255,255,255,0.02);
}

.landmark-stage-image {
  position: relative;
  min-height: 430px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(201,146,10,0.08), transparent 70%),
    linear-gradient(135deg, #1b140d 0%, #2b1e13 38%, #171109 100%);
}

.landmark-stage-image.has-image {
  background-size: cover !important;
  background-position: center !important;
}

.landmark-stage-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,13,7,0.08), rgba(17,13,7,0.28) 42%, rgba(17,13,7,0.84) 100%);
}

.landmark-stage-image::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(240,223,192,0.12);
}

.landmark-stage-top,
.landmark-stage-overlay {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
}

.landmark-stage-top {
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.landmark-stage-kicker,
.landmark-stage-period {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(240,223,192,0.14);
  background: rgba(17,13,7,0.38);
  color: rgba(253,246,232,0.85);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landmark-stage-overlay {
  bottom: 0;
  padding: 1.35rem 1.1rem 1.1rem;
}

.landmark-stage-year {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold-lt);
  margin-bottom: 0.35rem;
}

.landmark-stage-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.08;
  color: var(--cream);
}

.landmark-stage-title em {
  font-style: italic;
  color: var(--gold-lt);
}

.landmark-stage-caption {
  max-width: 42rem;
  margin: 0.6rem 0 0;
  color: rgba(240,223,192,0.72);
  font-size: 1rem;
  line-height: 1.65;
}

.landmark-stage-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0.85rem;
  background: rgba(255,255,255,0.02);
}

.landmark-fact {
  min-height: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(184,147,90,0.15);
  background: rgba(17,13,7,0.28);
  color: rgba(240,223,192,0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.landmark-fact-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(212,176,122,0.62);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landmark-thumbs-wrap {
  margin-top: 1rem;
}

.landmark-thumbs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.landmark-mini-tag {
  color: rgba(212,176,122,0.8);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.landmark-mini-note {
  color: rgba(253,246,232,0.68);
  font-size: 0.92rem;
  font-style: italic;
}

.landmark-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landmark-thumb {
  position: relative;
  min-height: 112px;
  border: 1px solid rgba(184,147,90,0.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    rgba(17,13,7,0.35);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.landmark-thumb.has-image {
  background-size: cover !important;
  background-position: center !important;
}

.landmark-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,13,7,0.04), rgba(17,13,7,0.75));
}

.landmark-thumb:hover,
.landmark-thumb:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(212,176,122,0.35);
  box-shadow: 0 14px 24px rgba(17,13,7,0.22);
  outline: none;
}

.landmark-thumb.is-active {
  border-color: rgba(232,184,75,0.75);
  box-shadow: 0 0 0 1px rgba(232,184,75,0.25), 0 14px 24px rgba(17,13,7,0.24);
}

.landmark-thumb-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.72rem;
}

.landmark-thumb-year {
  display: block;
  margin-bottom: 0.18rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  color: var(--gold-lt);
}

.landmark-thumb-label {
  display: block;
  color: rgba(253,246,232,0.9);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landmark-thumb.is-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.8rem;
  background: linear-gradient(180deg, rgba(184,147,90,0.08), rgba(184,147,90,0.03));
}

.landmark-thumb.is-add::after {
  display: none;
}

.landmark-thumb-plus {
  position: relative;
  z-index: 2;
  font-size: 1.35rem;
  color: var(--gold-lt);
}

.landmark-thumb-add-text {
  position: relative;
  z-index: 2;
  color: rgba(240,223,192,0.78);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 900px) {
  .landmark-stage-image {
    min-height: 360px;
  }

  .landmark-stage-facts {
    grid-template-columns: 1fr;
  }

  .landmark-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .landmark-meta-row {
    gap: 0.45rem;
  }

  .landmark-stage {
    padding: 0.7rem;
  }

  .landmark-stage-image {
    min-height: 280px;
  }

  .landmark-stage-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .landmark-stage-overlay {
    padding: 1rem 0.9rem 0.9rem;
  }

  .landmark-stage-title {
    font-size: 1.55rem;
  }

  .landmark-thumbs-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .landmark-thumb {
    min-height: 98px;
  }
}


/* ─── PATCHES 2026-04 admin + home ─── */
.upload-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.voz-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.voz-sumar-secondary {
  background: transparent;
  color: var(--sepia-lt);
}

.voz-sumar-secondary:hover {
  color: var(--cream);
}

.footer-institutional-logo{display:flex;align-items:center;justify-content:center}.footer-institutional-logo img{max-width:180px;width:100%;height:auto;display:block;filter:drop-shadow(0 8px 20px rgba(0,0,0,.12))}
