/* =========================================================================
   CONSECAM — Animations & Premium Visual Styles (Cleaned)
   ========================================================================= */

/* Solid style for cards (replaced glassmorphism) */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.section--dark .glass-card {
  background: var(--ink-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

/* Page Loader Spinner */
.page-veil::after {
  content: "";
  width: 68px;
  height: 68px;
  border: 3.5px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--celeste);
  border-right-color: var(--celeste-700);
  border-radius: 50%;
  position: absolute;
  animation: spin-veil 1s linear infinite;
}

@keyframes spin-veil {
  to { transform: rotate(360deg); }
}

/* Glowing shadow on hover */
.glow-card {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.glow-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 22px 48px rgba(18, 25, 27, 0.15),
    0 0 20px rgba(47, 174, 224, 0.18);
}

/* Micro-animacion para flechas en links */
.arrow-move svg {
  transition: transform 0.25s var(--ease);
}
.arrow-move:hover svg {
  transform: translateX(5px);
}

 
/* Background SVG Animation */
@keyframes float-bg {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}
.anim-float {
  animation: float-bg 8s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes spin-bg {
  100% { transform: rotate(360deg); }
}
.anim-spin-slow {
  animation: spin-bg 20s linear infinite;
  transform-origin: center center;
}
@keyframes pulseNode {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(2.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes dashAnim {
  to {
    stroke-dashoffset: 0;
  }
}

/* Curso Destacado Estilo Udemy/Moderno */
.course-card-featured {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #f4f9fd);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid rgba(47, 174, 224, 0.15);
  margin-bottom: 3rem;
  transition: transform 0.3s ease;
}
.course-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(47, 174, 224, 0.12);
}
.course-card-featured .thumb {
  flex: 0 0 55%;
  max-width: 55%;
  height: 100%;
  min-height: 380px;
  position: relative;
  background-color: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.course-card-featured .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}
.course-card-featured .body {
  flex: 1;
  padding: 3.5rem 4rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.course-card-featured h3 {
  font-size: 2.2rem !important;
  margin-bottom: 1.2rem !important;
  line-height: 1.2 !important;
  color: var(--azul-900);
}
.course-card-featured .course-tag {
  top: auto !important;
  bottom: 14px !important;
  left: 14px !important;
}
.course-card-featured .blog-social-bar {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .course-card-featured {
    flex-direction: column !important;
  }
  .course-card-featured .thumb {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 250px;
  }
  .course-card-featured .body {
    padding: 2rem !important;
  }
  .course-card-featured h3 {
    font-size: 1.6rem !important;
  }
}

/* =========================================
   PROMO MODAL (POP-UP) STYLES
   ========================================= */
.promo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: promoFadeIn 0.4s ease forwards;
}

@keyframes promoFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.promo-modal-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 1120px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(47, 174, 224, 0.25);
}

.promo-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  font-size: 2rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-close-btn:hover {
  background: #ff4757;
  color: #fff;
  transform: rotate(90deg);
}

.promo-modal-body {
  display: flex;
  flex-direction: row;
  min-height: 540px;
}

.promo-img-col {
  flex: 0 0 55%;
  max-width: 55%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}

.promo-img-col img {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.promo-info-col {
  flex: 1;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-badge {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.promo-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.promo-excerpt {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.promo-date-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.promo-form .form-group-sm {
  margin-bottom: 1rem;
}

.promo-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.promo-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.promo-form input:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-promo-wa {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-promo-wa:hover {
  background: #1ebc57;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .promo-modal-body {
    flex-direction: column;
  }
  .promo-img-col {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 1rem;
  }
  .promo-img-col img {
    max-height: 250px;
  }
  .promo-info-col {
    padding: 1.5rem;
  }
  .promo-title {
    font-size: 1.3rem;
  }
}
