/* =========================
   MOTIVACIÓN — METAMORFOSIS
   ========================= */

/* ===== RESET GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #0a0a0a;
  color: #fff;
  scroll-behavior: smooth;
}

/* =========================
   NAVBAR (negro sólido → elegante)
   ========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(15, 15, 15, 1); /* 🔹 color sólido inicial */
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease, padding 0.3s ease;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.navbar .navbar-brand span {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.navbar .nav-link {
  color: #f5f5f5 !important;
  margin-left: 1.2rem;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .nav-link:hover {
  color: #ff4b4b !important;
  transform: scale(1.05);
}

/* === Scroll: negro elegante === */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 0.8rem 1.2rem;
}

.navbar.scrolled .nav-link {
  color: #fff !important;
}

.navbar.scrolled .navbar-brand span {
  color: #ff3b3b !important;
}

/* === Botón hamburguesa === */
.navbar-toggler {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: 6px;
  padding: 6px 10px;
  transition: 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.navbar-toggler i {
  color: #fff;
  font-size: 1.5rem;
}


/* =========================
   HERO AJUSTADO (imagen + gradiente visible)
   ========================= */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  /* La imagen va primero y el gradiente encima, con transparencia */
  background: 
    url('https://images.unsplash.com/photo-1734668486909-4637ecd66408?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1740') center/cover no-repeat,
    linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(5, 5, 5, 0.8));
  background-blend-mode: overlay; /* 🔹 mezcla suave */
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 1.5rem 60px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 🔹 leve oscurecido */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem 1rem;
  animation: fadeIn 1.5s ease forwards;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero .lead {
  font-size: clamp(1rem, 3.2vw, 1.1rem);
  color: #f5f5f5;
  margin-bottom: 1.5rem;
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-text {
  max-width: 720px;
  margin: 0 auto;
  color: #e6e6e6;
  line-height: 1.9;
  font-size: clamp(0.9rem, 3vw, 1rem);
  background: rgba(0, 0, 0, 0.45);
  padding: 1.6rem 1.8rem;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.hero-text:hover {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.hero-text strong {
  color: #ff4b4b;
}

.hero-text .highlight {
  color: #ffb3b3;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero {
    padding: 140px 1rem 60px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}



/* =========================
   ANIMACIONES
   ========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 1.4s ease forwards;
}

.animate-fade-delay {
  animation: fadeIn 2.2s ease forwards;
}

/* =========================
   EQUIPO
   ========================= */
.equipo {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card {
  background: #141414;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(217,4,41,0.4);
}

.team-card img {
  width: 100%;
  aspect-ratio: 3 / 3.8;
  object-fit: cover;
  object-position: center top;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  filter: brightness(0.9);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.team-card:hover img {
  filter: brightness(1);
  transform: scale(1.03);
}

.team-card .card-body {
  padding: 1.5rem 1rem;
  text-align: center;
}

.team-card h4 {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.team-card p.role {
  color: #ff4b4b;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.team-card p.quote {
  color: #bfbfbf;
  font-style: italic;
  font-size: 0.9rem;
}

/* ===== EQUIPO RESPONSIVE ===== */
@media (max-width: 768px) {
  .team-card img {
    aspect-ratio: 3 / 4.5;
  }
  .team-card h4 {
    font-size: 1rem;
  }
  .team-card p.quote {
    font-size: 0.85rem;
  }
}

/* =========================
   RETO DEL DÍA
   ========================= */
.reto {
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
}

.reto p {
  max-width: 700px;
  line-height: 1.7;
}

/* =========================
   HISTORIAS INSPIRADORAS
   ========================= */
.historias {
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.historia-card {
  background: #141414;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.historia-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(217,4,41,0.35);
}

.historia-card img {
  height: 320px;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter 0.4s ease;
}

.historia-card:hover img {
  filter: brightness(1);
}

.historia-card .card-body {
  padding: 1.5rem;
}

.historia-card h4 {
  font-weight: 600;
  color: #fff;
}

.historia-card p {
  line-height: 1.6;
}

@media (max-width: 768px) {
  .historia-card img {
    height: 280px;
  }
}


/* =========================
   CIERRE FINAL 
   ========================= */
.cierre {
  position: relative;
  background: radial-gradient(circle at center, #151515 0%, #191919 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cierre h2 {
  color: #ff4b4b;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255, 0, 50, 0.4);
}

.cierre p {
  color: #d8d8d8;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

.cierre .final-quote {
  font-style: italic;
  color: #ffb3b3;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* =========================
   FOOTER MODERNO
   ========================= */
.footer {
  background: #000;
  color: #bbb;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1rem;
}

.footer .social-links a {
  color: #ff4b4b;
  text-decoration: none;
  margin: 0 0.4rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer .social-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 0, 50, 0.4);
}

.footer p {
  margin-bottom: 0.5rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .footer {
    font-size: 0.9rem;
  }
}

/* =========================
   EFECTO CURSOR PARPADEANTE
   ========================= */
#dailyQuote::after,
#dailyChallenge::after {
  content: '|';
  margin-left: 6px;
  color: #ff4b4b;
  animation: blink 1s step-end infinite;
  font-weight: 500;
}

@keyframes blink {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}

