:root {
  --fmm-primary: #1c3e8c;
  --fmm-secondary: #cd890b;
  --fmm-dark: #0f172a;
  --fmm-muted: #475569;
  --fmm-accent: #00689c;
  --emprendimiento-bg: #fdf9f4;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
.navbar.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff; /* mantiene fondo sólido */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--fmm-dark);
  overflow-x: hidden;
  background-color: color(srgb 0.99 0.96 0.93 / 0.35);
  padding-top: 70px;
}
h1,
h2,
h3,
h4,
h5,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Averia Serif Libre", Georgia, "Times New Roman", serif;
  letter-spacing: 0.2px;
  color: var(--fmm-accent);
}

/* Spacing standard */
.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 992px) {
  .py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
.py-7 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
#inicio {
  background: var(--emprendimiento-bg) url(bg_header.png) no-repeat center
    bottom;
  background-size: cover;
}
#fechas {
  background: #ffffff url(bg_header.png) no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}
#galeria {
  background: var(--emprendimiento-bg) url(footer.png) no-repeat center bottom;
  background-size: cover;
}
/* Caja del bloque */
.checklist {
}

/* Lista limpia */
.checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--emprendimiento-bg);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* Ítems con ícono alineado */
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 1.5;
}

/* Ícono */
.checklist li i {
  color: var(--fmm-secondary);
  flex-shrink: 0;
  margin-top: 2px; /* ajusta vertical para centrar */
  font-size: 1rem;
}

/* Colors and theme */
.bg-primary {
  background-color: var(--fmm-accent) !important;
}
.bg-gradient-fmm {
  background: linear-gradient(135deg, var(--fmm-primary), var(--fmm-accent));
}
.btn-fmm {
  background: var(--fmm-accent);
  border-color: var(--fmm-accent);
  color: #fff;
  font-weight: 600;
}
.btn-fmm:hover {
  filter: brightness(1.05);
  color: var(--emprendimiento-bg);
  background: var(--fmm-secondary);
  border-color: var(--fmm-secondary);
}
.btn-outline-fmm {
  background: transparent;
  border: 2px solid var(--fmm-accent);
  color: var(--fmm-accent);
  font-weight: 600;
}
.btn-outline-fmm:hover {
  background: var(--fmm-accent);
  color: #fff;
}
.btn-secondary-fmm {
  background: var(--fmm-secondary);
  border-color: var(--fmm-secondary);
  color: #111;
  font-weight: 600;
}
.btn-secondary-fmm:hover {
  filter: brightness(0.95);
  color: var(--emprendimiento-bg);
  background: var(--fmm-muted);
  border-color: var(--fmm-accent);
}
.badge-soft {
  background: color-mix(in oklab, var(--fmm-secondary) 18%, transparent);
  color: var(--fmm-dark);
  border: 1px solid color-mix(in oklab, var(--fmm-secondary) 55%, transparent);
}
.text-muted {
  color: var(--fmm-muted) !important;
}
.text-primary {
  color: var(--fmm-accent) !important;
}
.shadow-soft {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Navbar */
.nav-link {
  font-weight: 600;
  color: var(--fmm-dark);
}
.nav-link:hover,
.nav-link:focus {
  color: var(--fmm-accent);
}
.navbar-brand span {
  font-family: "Averia Serif Libre", Georgia, serif;
}

/* Feature cards */
.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in oklab, var(--fmm-secondary) 14%, #fff);
}

/* Timeline horizontal centrado */
.timeline-h {
  padding-block: 1rem;
}
.timeline-h .tl-wrap {
  display: flex;
  flex-wrap: wrap; /* sin scroll por un solo ítem */
  justify-content: center; /* centrado */
  gap: clamp(12px, 2vw, 20px);
  position: relative;
}

/* Línea conectora (solo cuando hay >=2 ítems) */
.timeline-h .connector {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 32px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    color-mix(in oklab, var(--fmm-secondary) 70%, transparent) 0 18px,
    transparent 18px 32px
  );
  pointer-events: none;
}

/* Tarjeta de cada hito */
.tl-item {
  position: relative;
  z-index: 1;
  flex: 1 1 clamp(220px, 24vw, 280px);
  max-width: 320px;
  min-width: 220px;
  text-align: center;
}

.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fmm-secondary);
  border: 3px solid var(--fmm-dark);
  margin: 0 auto 10px auto;
}

.tl-card {
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--fmm-secondary) 28%, #ddd);
  border-radius: 14px;
  padding: 1rem 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tl-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 0.5rem auto;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--fmm-accent) 14%, #fff);
  color: var(--fmm-accent);
  font-size: 1.25rem;
}

.tl-date {
  font-weight: 800;
  color: var(--fmm-accent);
  margin-bottom: 0.25rem;
}
.tl-desc {
  color: var(--fmm-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Variantes para Feria y Premio (secondary) */
.tl-item.is-secondary .tl-dot {
  background: var(--fmm-secondary);
  border-color: var(--fmm-dark);
}
.tl-item.is-secondary .tl-icon {
  background: color-mix(in oklab, var(--fmm-secondary) 22%, #fff);
  color: #7a5b12;
}
.tl-item.is-secondary .tl-card {
  border-color: color-mix(in oklab, var(--fmm-secondary) 45%, #ddd);
}
.tl-item.is-secondary .tl-date {
  color: var(--fmm-secondary);
}

/* Seguridad en pantallas muy pequeñas */
@media (max-width: 480px) {
  .timeline-h .connector {
    display: none;
  }
}
/* --- Ajustes timeline: alineación y línea punteada --- */
:root {
  /* Tamaños para calcular la alineación exacta */
  --tl-dot-size: 16px; /* diámetro del punto (sin borde) */
  --tl-dot-border: 3px; /* grosor del borde del punto */
  --tl-line-thickness: 2px; /* grosor de la línea conectora */
}

/* Punto (asegura mismo z-index y margen) */
.tl-dot {
  width: var(--tl-dot-size);
  height: var(--tl-dot-size);
  border-radius: 50%;
  background: var(--fmm-secondary);
  border: var(--tl-dot-border) solid var(--fmm-dark);
  margin: 0 auto 10px auto;
  position: relative;
  z-index: 1; /* por encima de la línea */
}

/* Línea conectora centrada respecto al punto y punteada */
.timeline-h .connector {
  position: absolute;
  left: 5%;
  right: 5%;
  /* centro vertical del punto = (size + 2*border)/2 */
  top: calc(
    (var(--tl-dot-size) + (2 * var(--tl-dot-border))) / 2 -
      (var(--tl-line-thickness) / 2)
  );
  height: 0; /* usamos border-top */
  border-top: var(--tl-line-thickness) dashed var(--fmm-secondary);
  z-index: 0;
  pointer-events: none;
}

/* En pantallas muy pequeñas (o cuando wrap rompa la línea), ocultar conector */
@media (max-width: 480px) {
  .timeline-h .connector {
    display: none;
  }
}

/* Gallery */
.ratio-21x9 {
  --bs-aspect-ratio: 42.857%;
}
.gallery img {
  object-fit: cover;
}

.sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1030;
}
.brand-bar img {
  max-height: 44px;
}
.hero-visual {
  min-height: 360px;
}
footer {
  background: var(--fmm-primary);
  color: #e2e8f0;
}

.social-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: transparent;
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.social-btn i {
  font-size: 18px;
  line-height: 1;
}

.social-btn:hover {
  background: #ffffff;
  color: var(--fmm-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}
/* Ícono centrado dentro de círculo azul para miniaturas de galería */
.thumb-zoom i.fa-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--fmm-accent);
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación al pasar el mouse */
.thumb-zoom:hover i.fa-image {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

/* (opcional) hover del contenedor: efecto zoom + quitar sepia */
.thumb-zoom img {
  transition: transform 0.28s ease, filter 0.28s ease;
  filter: sepia(65%);
}
.thumb-zoom:hover img {
  transform: scale(1.06);
  filter: sepia(0%);
}

.whatsapp_2 {
  position: fixed;
  width: 70px;
  height: 70px;
  bottom: 80px;
  right: 80px;
  text-decoration: none;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 40px;
  z-index: 100;
  border: 3px solid #fff;
  box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.12), 0 9px 8px 0 rgba(0, 0, 0, 0.11);
}
@media screen and (min-width: 320px) and (max-width: 520px) {
  .whatsapp_2 {
    bottom: 30px !important;
    left: 15px !important;
    width: 60px !important;
    height: 60px !important;
    font-size: 30px !important;
  }
}
.whatsapp_2:hover,
.whatsapp_2:focus {
  color: #fff;
}
.whatsapp_2 .whatsapp-icon {
  margin-top: 13px;
}
.episode-card {
  border: 0;
  border-radius: 1rem;
  transition: box-shadow 0.25s ease;
}
.episode-card:hover {
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.08);
}
.episode-card .card-body {
  /* display: flex;
  flex-direction: column; */
}

.ratio-16x9 {
  aspect-ratio: 16/9;
}
.episode-thumb {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}
.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  background: #eef2f6;
}
.episode-thumb:hover img {
  transform: scale(1.05);
}
.play-ico {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: transform 0.25s ease;
}
.episode-thumb:hover .play-ico {
  transform: scale(1.1);
}
.episode-thumb a {
  cursor: pointer;
}
