/* ==========================================================================
   DISEÑO DE ESTILOS "ADA & YO" - ESTÉTICA ROMÁNTICA Y PREMIUM (GLASSMORPHISM)
   ========================================================================== */

/* --- Variables y Paleta de Colores --- */
:root {
  --bg-primary: #0a0813;
  --bg-secondary: #130f26;
  --accent-color: #ff758c;      /* Rosa amor */
  --accent-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  --gold-color: #e5c158;        /* Dorado detalles */
  --gold-gradient: linear-gradient(135deg, #f3d070 0%, #c4992b 100%);
  --text-primary: #ffffff;
  --text-muted: #b3aed2;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --glass-blur: blur(12px);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
}

/* --- Reset y Configuración General --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--bg-secondary);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Fondo Decorativo Animado --- */
.background-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #ff758c 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation: orbFloat 25s infinite alternate ease-in-out;
}

.orb-2 {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, #5b3fa3 0%, transparent 70%);
  bottom: -20%;
  left: -20%;
  animation: orbFloat 35s infinite alternate-reverse ease-in-out;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 8%) scale(1.1); }
  100% { transform: translate(5%, -5%) scale(0.95); }
}

/* --- Barra de Navegación --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 8, 19, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

.logo-heart {
  color: var(--gold-color);
  font-size: 1.2rem;
  animation: heartPulse 1.5s infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--glass-bg);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

/* --- Layout Principal --- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem 2rem;
}

.content-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- SECCIÓN INICIO --- */

/* Héroe */
.hero-container {
  text-align: center;
  margin-bottom: 4rem;
}

.profile-frame {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem auto;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--gold-color) 100%);
  box-shadow: 0 10px 30px rgba(255, 117, 140, 0.3);
}

.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  border: 4px solid var(--bg-primary);
  overflow: hidden;
}

.placeholder-avatar {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.photo-hint {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.frame-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.heart-sparkle {
  position: absolute;
  color: var(--gold-color);
  font-size: 1.2rem;
}

.sparkle-1 {
  top: -10px;
  left: 10px;
  animation: floatSparkle 3s infinite alternate ease-in-out;
}

.sparkle-2 {
  bottom: 0;
  right: -10px;
  color: var(--gold-color);
  animation: floatSparkle 4s infinite alternate-reverse ease-in-out;
}

@keyframes floatSparkle {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(-10px) scale(1.1) rotate(15deg); }
}

.main-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #ffe5ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Grid de Contadores */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.counter-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.counter-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 117, 140, 0.3);
  box-shadow: 0 12px 40px rgba(255, 117, 140, 0.1);
}

.counter-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.counter-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* Sub-grid interna del reloj (días, horas, minutos, segundos) */
.time-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.time-unit {
  background: rgba(10, 8, 19, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  font-variant-numeric: tabular-nums;
}

.counter-card:nth-child(4) .time-number {
  color: var(--gold-color);
}

.time-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Carta Explicativa de Funcionamiento */
.info-card-container {
  max-width: 800px;
  margin: 0 auto;
}

.info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: 0 8px 32px var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.info-card-icon {
  font-size: 2.5rem;
  color: var(--gold-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.info-card h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.info-card > p {
  color: var(--text-muted);
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  background: rgba(255, 117, 140, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.manual-callout {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.manual-callout code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--gold-color);
}

/* --- SECCIÓN DE VIAJES --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.section-title i {
  color: var(--accent-color);
  font-size: 2.2rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

.travel-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  color: var(--text-primary);
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.4);
}

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

.travel-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.travel-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.travel-card-image {
  height: 200px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-secondary);
}

.travel-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(19, 15, 38, 0.2), rgba(19, 15, 38, 0.8));
}

.travel-card-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 8, 19, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.travel-card-tag.future {
  border-color: var(--gold-color);
  color: var(--gold-color);
}

.travel-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.travel-card-date {
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.travel-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.travel-card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.travel-card-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: var(--transition-smooth);
}

.travel-card:hover .travel-card-link {
  color: var(--accent-color);
}

/* --- SECCIÓN DE SECRETOS --- */
.secrets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.secret-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.secret-card.locked {
  cursor: pointer;
}

.secret-card.locked:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 193, 88, 0.3);
  box-shadow: 0 12px 40px rgba(229, 193, 88, 0.1);
}

.secret-card.unlocked {
  border-color: var(--gold-color);
  box-shadow: 0 0 25px rgba(229, 193, 88, 0.2);
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.05) 0%, rgba(255, 117, 140, 0.05) 100%), var(--glass-bg);
}

.secret-card-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.secret-card.locked:hover .secret-card-icon {
  transform: scale(1.1) rotate(-10deg);
  color: var(--gold-color);
}

.secret-card.unlocked .secret-card-icon {
  color: var(--gold-color);
  animation: unlockPulse 2s infinite alternate;
}

@keyframes unlockPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--gold-color)); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--gold-color)); }
}

.secret-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.secret-card-teaser {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.secret-card-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.secret-card.locked:hover .secret-card-btn {
  background: var(--gold-color);
  border-color: var(--gold-color);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.3);
}

.secret-unlocked-content {
  text-align: left;
  border-top: 1px dashed rgba(229, 193, 88, 0.3);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fadeIn 0.5s ease-out;
}

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

/* --- MODALES --- */

/* Modal Viaje */
.travel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.travel-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 4, 10, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: var(--border-radius-lg);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.travel-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(10, 8, 19, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1005;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: rotate(90deg);
}

.modal-hero {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-color: #1a1532;
  display: flex;
  align-items: flex-end;
  padding: 3rem 3rem 2rem 3rem;
}

.modal-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(19, 15, 38, 0.1), var(--bg-secondary));
}

.modal-hero-title-container {
  position: relative;
  z-index: 2;
}

.modal-tag {
  background: var(--accent-color);
  color: var(--text-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.modal-tag.future {
  background: var(--gold-color);
  color: var(--bg-primary);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.modal-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-date i {
  margin-right: 0.3rem;
}

.modal-body {
  padding: 3rem;
}

.modal-story-section {
  margin-bottom: 2.5rem;
}

.modal-story-section h3, .modal-anecdotes-section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.modal-story-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.anecdotes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.anecdotes-list li {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--gold-color);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Modal Adivinanza / Acertijo */
.riddle-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.riddle-modal.active {
  opacity: 1;
  pointer-events: all;
}

.riddle-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 4, 10, 0.85);
  backdrop-filter: blur(8px);
}

.riddle-modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  width: 90%;
  max-width: 500px;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
  text-align: center;
}

.riddle-modal.active .riddle-modal-content {
  transform: scale(1) translateY(0);
}

.riddle-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.riddle-close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.riddle-header {
  margin-bottom: 2rem;
}

.header-key-icon {
  font-size: 3rem;
  color: var(--gold-color);
  margin-bottom: 1rem;
}

.riddle-header h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.riddle-question {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
}

.riddle-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input {
  width: 100%;
  padding: 1rem;
  background: rgba(10, 8, 19, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.input-group input:focus {
  border-color: var(--gold-color);
  box-shadow: 0 0 10px rgba(229, 193, 88, 0.1);
}

.input-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
  top: -10px;
  left: 0.8rem;
  font-size: 0.8rem;
  padding: 0 0.4rem;
  background: var(--bg-secondary);
  color: var(--gold-color);
}

.hint-container {
  text-align: left;
}

.hint-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hint-toggle:hover {
  color: var(--gold-color);
}

.hint-text {
  font-size: 0.85rem;
  color: var(--gold-color);
  background: rgba(229, 193, 88, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: 1px dashed rgba(229, 193, 88, 0.2);
}

.riddle-error-message {
  color: var(--accent-color);
  background: rgba(255, 117, 140, 0.05);
  border: 1px solid rgba(255, 117, 140, 0.15);
  padding: 0.8rem;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-riddle-btn {
  background: var(--gold-gradient);
  border: none;
  color: var(--bg-primary);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-riddle-btn:hover {
  box-shadow: 0 5px 20px rgba(229, 193, 88, 0.4);
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

/* --- PIE DE PÁGINA --- */
.footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 4, 10, 0.8);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-container p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-heart {
  color: var(--gold-color);
  animation: heartPulse 1.5s infinite;
}

.footer-subtext {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- RESPONSIVIDAD (MEDIA QUERIES) --- */

@media (max-width: 992px) {
  .counters-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .travels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .secrets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 7rem 1.5rem 3rem 1.5rem;
  }
  
  .main-title {
    font-size: 2.8rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  
  .nav-links.mobile-active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    justify-content: center;
  }
  
  .travels-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-hero {
    height: 200px;
    padding: 2rem;
  }
  
  .modal-body {
    padding: 2rem;
  }
  
  .modal-title {
    font-size: 1.6rem;
  }
  
  .info-card {
    padding: 2rem;
  }
}

/* Animación de sacudida para respuestas incorrectas */
.shake-anim {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* --- GLOBO HOLOGRÁFICO --- */
.globe-section {
  margin-top: 6rem;
  text-align: center;
}

.globe-section-header {
  margin-bottom: 3rem;
}

.globe-section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.globe-section-title i {
  color: #00aaff;
  font-size: 2rem;
}

.globe-section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

.globe-container {
  width: 100%;
  max-width: 860px;
  min-height: 360px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, #000820 0%, #000510 60%, transparent 100%);
  border-radius: 50%;
  aspect-ratio: 1;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-container canvas {
  filter: drop-shadow(0 0 52px rgba(0, 130, 255, 0.45));
}

.globe-tooltip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  transform: translate(-50%, -100%);
  background: rgba(10, 8, 19, 0.92);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--border-radius-sm);
  padding: 0.55rem 0.9rem;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.globe-tooltip.visible {
  opacity: 1;
}

.globe-tooltip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.globe-tooltip span {
  display: block;
  font-size: 0.78rem;
  color: var(--accent-color);
  letter-spacing: 0.3px;
}

.globe-legend {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legend-item.past i  { color: #ff758c; }
.legend-item.future i { color: #e5c158; }

@media (max-width: 768px) {
  .globe-container {
    max-width: 380px;
  }
  .globe-section-title {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   REPRODUCTOR DE MÚSICA
   ========================================================================== */

.music-player {
  position: fixed;
  top: 72px;
  right: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Botón toggle */
.mp-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px 0 0 12px;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold-color);
  font-size: 1rem;
  transition: background 0.2s;
  position: relative;
}
.mp-toggle:hover { background: #22203a; }

.mp-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.mp-eq span {
  width: 3px;
  background: var(--gold-color);
  border-radius: 2px;
  animation: eq-bar 0.8s ease-in-out infinite alternate;
}
.mp-eq span:nth-child(1) { height: 6px;  animation-delay: 0s;    }
.mp-eq span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.mp-eq span:nth-child(3) { height: 10px; animation-delay: 0.3s;  }
.mp-eq span:nth-child(4) { height: 16px; animation-delay: 0.45s; }

@keyframes eq-bar {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1);   }
}

.music-player.playing .mp-toggle-icon { display: none; }
.music-player.playing .mp-eq          { display: flex; }

/* Panel */
.mp-panel {
  width: 300px;
  background: #121212;
  border: 1px solid rgba(255,255,255,0.08);
  border-right: none;
  border-radius: 16px 0 0 16px;
  padding: 1.2rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  box-shadow: -8px 8px 40px rgba(0,0,0,0.6);
  margin-top: 6px;
}
.mp-panel.open { display: flex; }

/* Now playing */
.mp-now-playing {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mp-disc {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
  border: 2px solid var(--gold-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-color);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 3s linear;
}
.music-player.playing .mp-disc { animation: disc-spin 4s linear infinite; }
@keyframes disc-spin { to { transform: rotate(360deg); } }

.mp-info { overflow: hidden; }
.mp-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-artist {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #b3b3b3;
}

/* Progress */
.mp-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mp-time {
  font-size: 0.68rem;
  color: #b3b3b3;
  font-family: var(--font-sans);
  min-width: 28px;
}
.mp-progress-bar {
  flex: 1;
  height: 4px;
  background: #333;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.mp-progress-bar:hover { height: 6px; }
.mp-progress-fill {
  height: 100%;
  background: var(--gold-color);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s linear;
}
.mp-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}
.mp-progress-bar:hover .mp-progress-thumb { opacity: 1; }

/* Controls */
.mp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.mp-btn {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.1s;
  padding: 0.3rem;
}
.mp-btn:hover { color: #fff; transform: scale(1.1); }
.mp-btn-play {
  width: 40px;
  height: 40px;
  background: var(--gold-color);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.mp-btn-play:hover { background: #f3d070; color: #000; transform: scale(1.06); }

/* Playlist */
.mp-playlist {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.mp-track {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.mp-track:hover { background: rgba(255,255,255,0.06); }
.mp-track.active { background: rgba(229,193,88,0.12); }
.mp-track-num {
  font-size: 0.72rem;
  color: #b3b3b3;
  min-width: 18px;
  text-align: center;
  font-family: var(--font-sans);
}
.mp-track.active .mp-track-num { color: var(--gold-color); }
.mp-track-name {
  font-size: 0.8rem;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
}
.mp-track.active .mp-track-name { color: #fff; font-weight: 600; }
