/* ==========================
   YÓLOTL Stylesheet v1.3
   ========================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #2D2D2D;
  background-color: #FAFAFA;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* ==========================
   Hero Section
   ========================== */
.hero-section {
  height: 100vh;
  background: linear-gradient(135deg, #A65161, #B43C84, #E04FA6);
  background-size: cover;
  background-position: center;
  color: #fff;
}

/* ==========================
   Call To Action
   ========================== */
.cta-btn {
  background-color: #fff;
  color: #A62D6F;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
  background-color: #F2F2F2;
  transform: translateY(-2px);
}

/* ==========================
   Info Cards
   ========================== */
.info-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.info-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem auto;
}

.info-title {
  color: #A62D6F;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-text {
  font-size: 0.9rem;
  color: #4B4B4B;
}

/* ==========================
   Navbar
   ========================== */
.nav-link {
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #F2F2F2;
}

.nav-link.active {
  color: #fff;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15); /* 🔹 Fondo blanco suave */
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
}


/* ==========================
   FAQ Section
   ========================== */
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  color: #A62D6F;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #fdf3f7;
}

.faq-answer {
  display: none;
  padding: 0.75rem 1rem 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* ==========================
   Procedimiento en Cards
   ========================== */

   

/* === Procedimiento versión elegante === */

/* === Procedimiento - Timeline horizontal moderno === */
.timeline-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.timeline-step {
  position: relative;
  width: 280px;
  text-align: center;
}

.step-circle {
  background-color: #A62D6F;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  width: 55px;
  height: 55px;
  line-height: 55px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 10; /* 🔺 Asegura que esté sobre la línea */
}

.step-circle:hover {
  transform: scale(1.1);
  animation: heartbeat 1s ease-in-out;
}

.step-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(166, 45, 111, 0.15);
}

.step-card h3 {
  color: #A62D6F;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Conectores */
.connector-line {
  position: absolute;
  top: 27px;
  height: 2px;
  background-color: #A62D6F;
  width: 50%;
  z-index: 1; /* ⬅ debajo del círculo */
}


.connector-line.left {
  left: 0;
}

.connector-line.right {
  right: 0;
}

/* Animación Yólotl */
@keyframes heartbeat {
  0%, 25%, 50%, 75%, 100% { transform: scale(1); }
  40% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
}

/* Responsive */
@media (max-width: 1024px) {
  .timeline-container {
    flex-direction: column;
    align-items: center;
  }

  .connector-line {
    display: none;
  }

  .step-card {
    height: auto;
  }
}


















/* ==========================
   Responsive General
   ========================== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.25rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .info-title {
    font-size: 1.1rem;
  }

  footer p {
    font-size: 0.85rem;
  }
}






/* === Animaciones suaves === */
.fade-up, .timeline-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible, .timeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Efecto heartbeat en hover === */
.heartbeat {
  animation: heartbeat 1s ease-in-out;
}

@keyframes heartbeat {
  0%, 25%, 50%, 75%, 100% { transform: scale(1); }
  40% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
}

/* Navbar active link */
.nav-link.active {
  color: #A62D6F !important;
  font-weight: 600;
}



.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #A62D6F;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(166, 45, 111, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.download-btn:hover {
  background-color: #B43C84;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(166, 45, 111, 0.35);
}

.download-btn i {
  font-size: 1.2rem;
}











/* === Enlaces Institucionales === */
#enlaces {
  background: linear-gradient(to bottom right, #F8F8F8, #F2F2F2);
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem 1.75rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(166,45,111,0.25);
}

.link-card h3 {
  font-weight: 600;
  color: #A62D6F;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  text-align: center;
}

.link-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1rem;
}

.icon-container {
  background-color: #A62D6F;
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(166,45,111,0.3);
  transition: transform 0.3s ease;
}

.link-card:hover .icon-container {
  transform: scale(1.1);
  background-color: #B43C84;
}

.visit-link {
  color: #A62D6F;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: color 0.3s ease, transform 0.3s ease;
}

.link-card:hover .visit-link {
  color: #B43C84;
  transform: translateX(4px);
}






/* ===== LOGO VISUAL ENHANCEMENT ===== */
/* ===== LOGO WRAPPER (HEADER) ===== */
.logo-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff; /* 👈 Fondo blanco */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.logo-wrapper:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(255,255,255,0.6), 0 0 20px rgba(255,255,255,0.5);
}

/* ===== LOGO INTERNO ===== */
.logo-yolotl {
  width: 32px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-wrapper:hover .logo-yolotl {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.9));
}






/* ==========================
   HERO SECTION: CORAZÓN RADIANTE (v1.7)
   ========================== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;

  /* Fondo base con gradiente magenta tenue */
  background:
    linear-gradient(135deg, rgba(166, 45, 111, 0.55), rgba(212, 78, 155, 0.45)),
    url("../img/centro-tlaxcala.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* ✨ Luz rosada diagonal */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 200, 230, 0) 0%, 
    rgba(255, 200, 230, 0.12) 25%,
    rgba(255, 200, 230, 0.06) 50%,
    rgba(255, 200, 230, 0) 100%
  );
  animation: lightSweep 14s ease-in-out infinite;
  z-index: 2;
  mix-blend-mode: screen;
}

/* ⚡ Luz diagonal refinada (efecto rayo suave) */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 180, 220, 0) 0%,
    rgba(255, 180, 220, 0.25) 45%,
    rgba(255, 180, 220, 0.4) 50%,
    rgba(82, 46, 65, 0.5) 55%,
    rgba(255, 180, 220, 0) 100%
  );
  width: 60%; /* ⚙️ más angosto → más rayo */
  height: 200%; /* ⚙️ más alto → para cubrir en diagonal */
  top: -50%;
  left: -30%;
  transform: rotate(15deg);
  filter: blur(30px); /* 🌫️ suaviza bordes */
  animation: lightSweep 14s ease-in-out infinite;
  z-index: 2;
  mix-blend-mode: screen;
}


.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.09) 0%,   /* 💡 luz en el centro */
    rgba(0, 0, 0, 0.5) 45%,        /* 🌗 sombra media */
    rgba(0, 0, 0, 0.6) 100%         /* 🌑 oscuridad del borde */
  );
  z-index: 1;
}



/* ✨ Animación realista del rayo */
@keyframes lightSweep {
  0% {
    transform: translateX(-120%) rotate(15deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translateX(0%) rotate(15deg);
    opacity: 0.8;
  }
  80% {
    opacity: 0;
    transform: translateX(120%) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translateX(120%) rotate(15deg);
  }
}













/* ===== HERO LOGO ===== */
/* ===== HERO LOGO GLOW ===== */
.logo-hero {
  width: 140px;
  height: auto;
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.95))
          drop-shadow(0 0 28px rgba(255,255,255,0.75));
  transition: transform 0.4s ease, filter 0.4s ease;
  animation: logoPulseGlow 5s ease-in-out infinite;
}

.logo-hero:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 25px rgba(255,255,255,1))
          drop-shadow(0 0 50px rgba(255,255,255,0.9));
}


@keyframes logoPulseGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.95))
            drop-shadow(0 0 28px rgba(255,255,255,0.75));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255,255,255,1))
            drop-shadow(0 0 45px rgba(255,255,255,0.9));
  }
}



















.motivacion-img {
  position: relative;
  overflow: hidden;
}

.motivacion-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120px; /* invade un poco más el contenido */
  width: 350px; /* más ancho = difuminado más suave */
  height: 100%;
  background: radial-gradient(
    circle at left center,
    rgba(250, 250, 250, 0.98) 10%,   /* centro casi blanco */
    rgba(250, 250, 250, 0.8) 25%,   /* difuminado blanco */
    rgba(161, 22, 99, 0.07) 55%,   /* toque magenta translúcido */
    transparent 85%                 /* se pierde totalmente */
  );
  filter: blur(40px); /* 🔥 suaviza aún más el borde */
  z-index: 2;
  pointer-events: none;
}



/* .motivacion-img::before {
  transition: all 0.6s ease;
}
.motivacion-img:hover::before {
  left: -70px;
  opacity: 0.95;
} */









/* === Footer === */
.footer-yolotl {
  background: linear-gradient(135deg, #1E1B1F, #2A0D23); /* Gris oscuro + vino profundo */
  color: #fff;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
}

.footer-yolotl p {
  margin: 0;
  line-height: 1.5;
}

.lifework-link {
  color: #E571A5;
}
.lifework-link:hover {
  color: #FFB8D5;
  border-bottom: 1px solid #FFB8D5;
}

/* === Ajuste si se veía flotante === */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
}











#mobile-menu {
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

#mobile-menu.flex {
  transform: translateY(0);
  opacity: 1;
}




















/* ================================
   MENÚ MÓVIL UNIVERSAL (FULL FIX)
   ================================ */
#mobile-menu {
  transform: translateY(-10px);
}

#mobile-menu.open {
  opacity: 1 !important;
  transform: translateY(0);
  pointer-events: auto;
}

#mobile-menu:not(.open) {
  opacity: 0;
  pointer-events: none;
}
