/* ============================================================
   ETERIA — style.css
   Paleta: Oscuro profundo + dorado cálido + acento esmeralda
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --bg-deep: #0d0905;
  --bg-dark: #160e06;
  --bg-card: #1e1208;
  --bg-card2: #251608;
  --bg-nav: #120c04ee;

  --gold: #c9933a;
  --gold-light: #e8bc6a;
  --gold-dim: #8a6020;
  --emerald: #3a7a52;
  --emerald-light: #5aad74;
  --crimson: #8a2020;
  --crimson-light: #c04040;
  --ice: #5a9ec9;
  --ice-light: #8ac4e8;
  --purple: #6a3a9a;

  --text-primary: #f0e8d8;
  --text-secondary: #b8a888;
  --text-dim: #7a6a50;

  --border-gold: 1px solid rgba(201, 147, 58, 0.3);
  --border-gold2: 2px solid rgba(201, 147, 58, 0.5);
  --glow-gold: 0 0 20px rgba(201, 147, 58, 0.25);
  --glow-emerald: 0 0 20px rgba(58, 122, 82, 0.3);

  --radius: 10px;
  --radius-lg: 16px;
  --trans: all 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  cursor: none;
}

@font-face {
  font-family: "abibas";
  src: url("Abibas (1).ttf") format('truetype');
}

/* ---------- PARTÍCULAS ---------- */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- CURSOR ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(201, 147, 58, 0.6);
  transition: width 0.2s, height 0.2s;
}

body:hover .cursor-dot {
  opacity: 1;
}

@media (hover: none) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-gold);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.6rem 0;
  transition: var(--trans);
}

.navbar.scrolled {
  background: rgba(13, 9, 5, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: var(--gold-light) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.05em;
}

#logo-img {
  height: 38px;
  width: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}

.nav-icon {
  margin-right: 5px;
  font-size: 0.75rem;
  color: var(--gold-dim);
}

.navbar-nav .nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary) !important;
  padding: 0.4rem 0.9rem !important;
  transition: var(--trans);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold-light) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

/* Hamburguesa */
.navbar-toggler {
  border: none;
  outline: none;
  position: relative;
  width: 28px;
  height: 20px;
  background: transparent;
  cursor: pointer;
}

.navbar-toggler span,
.navbar-toggler span::before,
.navbar-toggler span::after {
  display: block;
  background: var(--gold);
  position: absolute;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  transition: var(--trans);
}

.navbar-toggler span {
  top: 50%;
  margin-top: -1px;
}

.navbar-toggler span::before {
  content: '';
  top: -7px;
}

.navbar-toggler span::after {
  content: '';
  top: 7px;
}

.navbar-toggler:not(.collapsed) span {
  background: transparent;
}

.navbar-toggler:not(.collapsed) span::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar-toggler:not(.collapsed) span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- SECCIONES ---------- */
.page-section {
  display: none;
  min-height: 100vh;
  padding-top: 70px;
  animation: fadeInPage 0.5s ease;
  position: relative;
  z-index: 1;
}

.page-section.active {
  display: block;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(201, 147, 58, 0.3);
  margin-bottom: 0.8rem;
}

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold-dim);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.section-desc {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---------- HERO ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.45) saturate(0.8);
  transition: transform 8s ease;
}

.hero-section:hover .hero-bg-img {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(13, 9, 5, 0.2) 0%,
      rgba(13, 9, 5, 0.1) 40%,
      rgba(13, 9, 5, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  animation: fadeUp 1s 0.2s both;
}

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--gold-light);
  line-height: 1;
  text-shadow:
    0 0 60px rgba(232, 188, 106, 0.4),
    0 0 120px rgba(232, 188, 106, 0.15);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  animation: fadeUp 1s 0.4s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s 0.6s both;
}

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

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  animation: bounce 2s infinite 2s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ---------- BOTONES ---------- */
.btn-eteria-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--trans);
  font-weight: 700;
}

.btn-eteria-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 147, 58, 0.4);
  color: var(--bg-deep);
}

.btn-eteria-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: var(--border-gold2);
  cursor: pointer;
  text-decoration: none;
  transition: var(--trans);
}

.btn-eteria-secondary:hover {
  background: rgba(201, 147, 58, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

/* ---------- FEATURES ---------- */
.features-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(to bottom, transparent, rgba(22, 14, 6, 0.8), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-gold);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- CARRUSEL ---------- */
.carousel-section-wrapper {
  padding: 4rem 0 5rem;
}

.eteria-carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-gold2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--glow-gold);
  position: relative;
}

.eteria-carousel .carousel-item img {
  height: 520px;
  object-fit: cover;
  filter: brightness(0.85);
}

.carousel-caption-eteria {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 1.5rem;
  background: linear-gradient(to top, rgba(13, 9, 5, 0.9), transparent);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.carousel-indicators-eteria {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-indicators-eteria button {
  width: 28px;
  height: 3px;
  background: rgba(201, 147, 58, 0.4);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--trans);
  padding: 0;
}

.carousel-indicators-eteria button.active {
  background: var(--gold);
  width: 48px;
}

/* ---------- WORLD CARDS ---------- */
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.world-card {
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--trans);
}

.world-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-gold);
}

.world-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.world-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.world-card:hover .world-card-img-wrap img {
  transform: scale(1.08);
}

.world-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 9, 5, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--trans);
  color: var(--gold-light);
  font-size: 2rem;
}

.world-card:hover .world-card-overlay {
  opacity: 1;
}

.world-card-body {
  padding: 1.3rem;
}

.world-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.world-card-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.world-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid rgba(201, 147, 58, 0.4);
  padding: 2px 10px;
  border-radius: 20px;
}

/* Modal de región */
.eteria-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.eteria-modal.open {
  display: flex;
}

.eteria-modal-content {
  background: var(--bg-card2);
  border: var(--border-gold2);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    transform: scale(0.93);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.world-modal-content img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: brightness(0.8);
}

.world-modal-body {
  padding: 1.8rem;
}

.world-modal-body h2 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold-light);
  font-size: 1.6rem;
  margin: 0.5rem 0 0.8rem;
}

.world-modal-body p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(13, 9, 5, 0.8);
  border: var(--border-gold);
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--trans);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ---------- PERSONAJES ---------- */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.character-card {
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-gold);
}

.character-card.protagonist {
  border-color: rgba(201, 147, 58, 0.7);
  box-shadow: 0 0 30px rgba(201, 147, 58, 0.1);
}

.character-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.character-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s;
}

.character-card:hover .character-img {
  transform: scale(1.05);
}

.character-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1208, #251608);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  gap: 0.5rem;
}

.character-img-placeholder i {
  font-size: 3.5rem;
}

.character-img-placeholder p {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.character-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.character-badge.secondary {
  background: var(--emerald);
  color: #fff;
}

.character-badge.accent {
  background: var(--crimson);
  color: #fff;
}

.character-body {
  padding: 1.3rem;
}

.character-name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.character-role {
  font-size: 0.82rem;
  color: var(--gold-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.character-desc {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.character-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.character-tags span {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--emerald-light);
  border: 1px solid rgba(58, 122, 82, 0.4);
  padding: 2px 9px;
  border-radius: 20px;
}

/* ---------- DRAGONES ---------- */
.dragon-filters,
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: transparent;
  color: var(--text-secondary);
  border: var(--border-gold);
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--trans);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

.dragons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.dragon-card-new {
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--trans);
}

.dragon-card-new:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-gold);
}

.dragon-card-new.mystery {
  border-color: rgba(106, 58, 154, 0.5);
}

.dragon-card-new.mystery:hover {
  box-shadow: 0 0 20px rgba(106, 58, 154, 0.3);
}

.dragon-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.dragon-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.dragon-card-new:hover .dragon-img-real {
  transform: scale(1.05);
}

.dragon-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1208, #251608);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  gap: 0.5rem;
}

.dragon-img-placeholder.dark {
  background: linear-gradient(135deg, #0d0510, #150a20);
  color: rgba(106, 58, 154, 0.6);
}

.dragon-img-placeholder i {
  font-size: 3rem;
}

.dragon-img-placeholder p {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.dragon-element {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dragon-element.fire {
  background: rgba(138, 32, 32, 0.85);
  color: #ffb4b4;
}

.dragon-element.poison {
  background: rgba(138, 32, 138, 0.85);
  color: #eeb4ff;
}

.dragon-element.nature {
  background: rgba(58, 122, 82, 0.85);
  color: #b4ffcc;
}
.dragon-element.ambar {
  background: rgba(255, 166, 0, 0.85);
  color: #ffe7b4;
}
.dragon-element.water {
  background: rgba(58, 90, 138, 0.85);
  color: #b4d4ff;
}

.dragon-element.earth {
  background: rgba(90, 70, 40, 0.85);
  color: #ffd4a0;
}

.dragon-element.ice {
  background: rgba(58, 130, 180, 0.85);
  color: #d4f0ff;
}

.dragon-element.dark {
  background: rgba(60, 20, 80, 0.9);
  color: #d4b4ff;
}

.dragon-card-body {
  padding: 1.3rem;
}

.dragon-name-new {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.dragon-species {
  font-size: 0.8rem;
  color: var(--gold-dim);
  font-weight: normal;
}

.dragon-habitat {
  font-size: 0.8rem;
  color: var(--emerald-light);
  margin-bottom: 0.7rem;
}

.dragon-desc-new {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dragon-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  width: 60px;
  flex-shrink: 0;
}

.stat-bar {
  flex: 1;
  height: 4px;
  background: rgba(201, 147, 58, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  border-radius: 2px;
  transition: width 0.8s ease;
}

.mystery-fill {
  background: linear-gradient(90deg, var(--purple), #a06ae8);
  animation: pulseMystery 2s infinite;
}

@keyframes pulseMystery {

  0%,
  100% {
    width: 60%;
    opacity: 0.6;
  }

  50% {
    width: 100%;
    opacity: 1;
  }
}

/* ---------- HISTORIA ---------- */
.historia-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding-bottom: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .historia-layout {
    grid-template-columns: 1fr;
  }
}

.historia-book {
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
}

.historia-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.book-page p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.book-drop-cap {
  float: left;
  font-family: 'Cinzel Decorative', serif;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--gold);
  margin: 0.1em 0.12em 0 0;
  text-shadow: 0 0 30px rgba(201, 147, 58, 0.3);
}

.historia-divider {
  text-align: center;
  color: var(--gold-dim);
  font-size: 1.2rem;
  margin: 1.8rem 0;
}

.historia-divider.dark {
  color: var(--crimson);
}

.historia-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  font-style: italic;
  font-size: 1.1rem !important;
  color: var(--gold-light) !important;
}

.historia-quote.final {
  border-color: var(--crimson);
  color: var(--crimson-light) !important;
  font-size: 1.15rem !important;
}

.acto-badge {
  background: linear-gradient(135deg, rgba(22, 14, 6, 0.8), rgba(37, 22, 8, 0.8));
  border: var(--border-gold);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.acto-badge span {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.acto-badge p {
  color: var(--text-dim) !important;
  font-size: 0.88rem !important;
  margin: 0.3rem 0 0 !important;
}

/* Sidebar */
.historia-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.sidebar-card.danger {
  border-color: rgba(138, 32, 32, 0.4);
}

.sidebar-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
}

.sidebar-card li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(201, 147, 58, 0.08);
}

.sidebar-card li:last-child {
  border: none;
}

.sidebar-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sidebar-card.jardin {
  padding: 0;
  overflow: hidden;
}

.sidebar-card.jardin img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.sidebar-card.jardin .caption {
  padding: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* ---------- GALERÍA ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding-bottom: 4rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  border: var(--border-gold);
  transition: var(--trans);
}

.gallery-item.featured {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.7);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 9, 5, 0.8), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--trans);
  color: var(--gold-light);
  gap: 0.4rem;
}

.gallery-overlay i {
  font-size: 1.8rem;
}

.gallery-overlay span {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item.hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

#lightboxImg {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  border: var(--border-gold2);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

#lightboxCaption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(22, 14, 6, 0.8);
  border: var(--border-gold);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--trans);
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(22, 14, 6, 0.7);
  border: var(--border-gold);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--trans);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ---------- CRÉDITOS ---------- */
.credits-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 4rem;
}

.credits-sub {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: var(--border-gold);
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  transition: var(--trans);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.team-avatar {
  width: 64px;
  height: 64px;
  background: rgba(201, 147, 58, 0.12);
  border: 2px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0 auto 1rem;
}

.team-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.team-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.historia-text-block {
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.historia-text-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.historia-text-block p:last-child {
  margin: 0;
}

.historia-final {
  color: var(--gold-light) !important;
  font-size: 1.05rem !important;
}

.feedback-section {
  text-align: center;
}

.feedback-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---------- COMING SOON ---------- */
.coming-soon-note {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-style: italic;
  font-size: 0.9rem;
}

.coming-soon-note i {
  color: var(--gold-dim);
}

/* ---------- BOTÓN ARRIBA ---------- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: var(--border-gold2);
  color: var(--gold);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  z-index: 500;
  box-shadow: var(--glow-gold);
  transition: var(--trans);
}

#backToTop:hover {
  background: var(--gold);
  color: var(--bg-deep);
  transform: translateY(-3px);
}

/* ---------- FOOTER ---------- */
footer {
  background: linear-gradient(to top, #0a0603, var(--bg-nav));
  border-top: var(--border-gold);
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
}

.footer-brand span {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.2rem;
  color: var(--gold-light);
}

.footer-tagline {
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .eteria-carousel .carousel-item img {
    height: 280px;
  }

  .gallery-item.featured {
    grid-column: span 1;
    aspect-ratio: 16/10;
  }

  .historia-book {
    padding: 1.5rem;
  }

  .book-drop-cap {
    font-size: 3.5rem;
  }

  .historia-sidebar {
    order: -1;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-eteria-primary,
  .btn-eteria-secondary {
    width: 100%;
    justify-content: center;
  }
}