/* ---------- VARIABLES DE COLOR (según tu paleta) ---------- */
:root {
  --ludo-light: #F1F1F1;
  --ludo-gold:  #EEC55C;
  --ludo-orange:#EC802D;
  --ludo-teal:  #66BBB5;
  --ludo-green: #208076;
  --ludo-dark:  #003956;

  --radius-lg: 24px;
  --radius-md: 16px;
}

/* ---------- BASE ---------- */

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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--ludo-light);
  color: #1c1c1c;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.bg-ludo-dark { background-color: var(--ludo-dark) !important; }
.bg-light-ludo { background-color: #f7f7f7; }
.text-ludo-highlight { color: var(--ludo-gold); }

/* ---------- NAVBAR ---------- */

#mainNavbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#mainNavbar.navbar-scrolled {
  background-color: rgba(0, 57, 86, 0.96);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.logo-navbar { height: 40px; width: auto; }
.brand-text { letter-spacing: 0.08em; font-size: 0.95rem; }

.navbar-dark .navbar-nav .nav-link {
  font-weight: 500;
  padding-inline: 0.75rem;
}
.navbar-dark .navbar-nav .nav-link:hover { color: var(--ludo-gold); }

/* ---------- BOTONES ---------- */

.btn-ludo-primary {
  background-color: var(--ludo-orange);
  border-color: var(--ludo-orange);
  color: #fff;
  border-radius: 999px;
  padding-inline: 1.5rem;
  font-weight: 600;
}
.btn-ludo-primary:hover {
  background-color: #d56f21;
  border-color: #d56f21;
  color: #fff;
}

.btn-ludo-secondary {
  background-color: var(--ludo-teal);
  border-color: var(--ludo-teal);
  color: #00313e;
  border-radius: 999px;
  font-weight: 600;
}
.btn-ludo-secondary:hover {
  background-color: #55a4a0;
  border-color: #55a4a0;
  color: #00212a;
}

/* ---------- HERO (CENTRADO + TRANSICIÓN POR ETAPAS) ---------- */

.hero-section {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #66bbb5 0, #003956 45%, #001c28 100%);
  color: #ffffff;
  padding-top: 5rem;
  padding-bottom: 4rem;
  overflow: hidden;

  /* CLAVE PARA QUE EL CAMBIO SEA EN EL MISMO LUGAR */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(238, 197, 92, 0.15), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(236, 128, 45, 0.16), transparent 60%);
  pointer-events: none;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ludo-gold);
}

.hero-title {
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
}

.hero-subtitle {
  max-width: 34rem;
  font-weight: 300;
}

/* PRIMERA PARTE DEL HERO */
#heroMainContent {
  z-index: 2;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* SEGUNDA PARTE DEL HERO (SUSTITUYE A LA PRIMERA) */
.hero-secondary {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(480px, 90vw);
  transform: translate(-50%, -50%) scale(0.96);

  background: rgba(16, 24, 40, 0.9);
  backdrop-filter: blur(18px);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);

  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-secondary.expanded {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.hero-secondary.collapsed {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
}

/* ---------- FONDO ANIMADO (PARTÍCULAS) ---------- */

.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

#heroParticles {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- PLANETAS DIFUMINADOS ---------- */

.planet {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(4px);
}

.planet-1 {
  width: 90px;
  height: 90px;
  right: 8%;
  top: 16%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.6), rgba(255,255,255,0.1) 40%, transparent 65%),
    radial-gradient(circle at 70% 80%, rgba(0,224,255,0.25), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(122,92,255,0.22), transparent 55%);
  box-shadow:
    0 0 24px rgba(255,255,255,0.25),
    0 0 50px rgba(0, 224, 255, 0.18);
  opacity: 0.6;
  animation: planet-float-1 26s ease-in-out infinite alternate;
}

@keyframes planet-float-1 {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(10px,-12px,0) scale(1.03); }
}

.planet-2 {
  width: 60px;
  height: 60px;
  left: 10%;
  bottom: 18%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55), rgba(255,255,255,0.1) 40%, transparent 70%),
    radial-gradient(circle at 70% 80%, rgba(255,45,107,0.25), transparent 60%),
    radial-gradient(circle at 10% 70%, rgba(0,224,255,0.2), transparent 60%);
  box-shadow:
    0 0 20px rgba(255,255,255,0.22),
    0 0 40px rgba(255,45,107,0.18);
  opacity: 0.55;
  animation: planet-float-2 32s ease-in-out infinite alternate;
}

@keyframes planet-float-2 {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-10px,8px,0) scale(1.04); }
}

@media (max-width: 768px) {
  .planet-1 { width: 60px; height: 60px; right: 4%; top: 10%; opacity: 0.45; }
  .planet-2 { width: 40px; height: 40px; left: 4%; bottom: 10%; opacity: 0.45; }
}

/* ---------- SECCIONES GENERALES ---------- */

.section-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.section-lead {
  max-width: 40rem;
  margin-inline: auto;
  font-weight: 300;
}

/* ---------- PILLS / FEATURES ---------- */

.feature-pill {
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  color: #00232d;
  background-color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.bg-ludo-teal { background-color: var(--ludo-teal) !important; }
.bg-ludo-gold { background-color: var(--ludo-gold) !important; }
.bg-ludo-orange { background-color: var(--ludo-orange) !important; color: #fff; }

/* ---------- EXPERIENCIA CARDS ---------- */

.exp-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.exp-card-highlight { border: 2px solid var(--ludo-gold); }

.exp-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ludo-dark);
  background-color: #f9f4e4;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- COMUNIDAD / MANIFIESTO ---------- */

.crew-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border-left: 6px solid var(--ludo-gold);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.manifesto-text {
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- REDES SOCIALES ---------- */

.social-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: #1f2b32;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.social-icon {
  height: 40px;
  width: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ludo-teal), var(--ludo-green));
  color: #ffffff;
  font-size: 1.2rem;
}

/* ---------- MAPA ---------- */

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #000;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* ---------- FOOTER ---------- */

.footer-ludo {
  background-color: #061b26;
  color: #a4b7c2;
}

.footer-link {
  color: #a4b7c2;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--ludo-gold);
}

/* ---------- UTILIDADES ---------- */

.py-lg-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 991.98px) {
  .hero-section { text-align: left; }
  #heroMainContent { text-align: left; }
  .hero-secondary { width: 95%; }
}

/* ---------- GALERÍA EXPERIENCIA (ESTILO INSTAGRAM) ---------- */

.experience-gallery {
  max-width: 980px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop → 3 columnas */
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #000;
}

.gallery-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Hover */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.07);
  opacity: 0.95;
}

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

/* ---------- BREAKPOINTS ---------- */

/* Tablet → 2 columnas */
@media (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móvil → mantiene 2×2 para mejor uso de pantalla */
@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ---------- PASEO DE LA FAMA (NUEVO ESTILO) ---------- */

.fama-section {
  position: relative;
  overflow: hidden;
  color: #f5f7fb;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

/* Ajustar textos dentro de la sección */
.fama-section .section-title {
  color: #ffffff;
}

.fama-section .section-lead {
  color: #d3dde7;
}

/* Capa de fondo con degradado + estrellas, más discreta */
.fama-parallax-bg {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(circle at 10% 15%, rgba(255,255,255,0.13), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(circle at 20% 75%, rgba(255,255,255,0.06), transparent 58%),
    radial-gradient(circle at top left, #145f74 0, #003956 40%, #000814 100%);

  opacity: 0.95;
  transform: translate3d(0, 0, 0);
}

/* Contenido por encima del fondo */
.fama-section .container {
  position: relative;
  z-index: 2;
}

/* Cards más compactas, oscuras y tipo glass */
.fame-card {
  position: relative;
  background: rgba(3, 22, 36, 0.88);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5edf5;
  overflow: hidden;
}

.fame-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(238, 197, 92, 0.25), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.fame-card-highlight {
  border: 1px solid rgba(238, 197, 92, 0.7);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.6);
}

.fame-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ludo-teal), var(--ludo-green));
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.fame-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #f7f3df;
  background-color: rgba(249, 244, 228, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}

.fame-meta {
  margin-top: 0.35rem;
  color: #b6c4d3;
}

/* ---------- GALERÍA HORIZONTAL PASEO DE LA FAMA ---------- */

.fama-galeria-wrapper {
  max-width: 980px;
  margin: 2.5rem auto 0;
  padding: 1.4rem 1.2rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(1, 12, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.fama-galeria-wrapper h3 {
  color: #dde6f2;
}

.fama-galeria-wrapper span.small {
  color: #8fa1b3;
}

.fama-galeria {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 2px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.fama-item {
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}

.fama-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.fama-item:hover .fama-img {
  transform: scale(1.07);
  opacity: 0.96;
}

/* Scrollbar estilizado (opcional) */
.fama-galeria::-webkit-scrollbar {
  height: 6px;
}
.fama-galeria::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}
.fama-galeria::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

/* Un poquito más de respiro en móvil */
@media (max-width: 575.98px) {
  .fama-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .fama-galeria-wrapper {
    padding-inline: 0.9rem;
  }
}

/* Sobrescribe GLOBALMENTE el estilo de Bootstrap para text-muted */
.text-muted {
  color: #ffffff !important;
  opacity: 0.85;
}
/* Forzar globalmente text-light-emphasis a blanco */
.text-light-emphasis {
  color: #ffffff !important;
  opacity: 0.9;
}