:root {
  /* Paleta Institucional Premium */
  --primary-curso: #b91116;
  /* Pantone 1807 C */
  --primary-hover: #841816;
  /* Guinda Oscuro */
  --secondary: #e24622;
  /* Pantone Orange 021 C */
  --accent-yellow: #f39200;
  /* Amarillo */
  --accent-peach: #f8b688;
  /* Durazno */
  --accent-green: #2ec4b6;
  /* Verde moderno para detalles de éxito */

  /* Neutros y Textos */
  --text-dark: #3a080a;
  /* Guinda extra oscuro */
  --text-gray: #575756;
  /* Gris Oscuro */
  --border-gray: #e5dcd8;
  /* Gris Arena Claro */
  --bg-white: #ffffff;
  --bg-gray: #faf6f4;
  /* Arena muy claro y cálido */
  --bg-dark: #220304;
  /* Fondo oscuro premium */

  --card-shadow: 0 12px 30px rgba(81, 16, 19, 0.04);
  --card-shadow-hover: 0 22px 45px rgba(185, 17, 22, 0.12);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --bg-gradient: radial-gradient(circle at 28% 29%, rgba(237, 237, 237, 0.0392156862745098) 0%, rgba(237, 237, 237, 0.0392156862745098) 50%, rgba(136, 136, 136, 0.0392156862745098) 50%, rgba(136, 136, 136, 0.0392156862745098) 100%), radial-gradient(circle at 8% 78%, rgba(156, 156, 156, 0.04) 0%, rgba(156, 156, 156, 0.04) 50%, rgba(37, 37, 37, 0.07) 50%, rgba(37, 37, 37, 0.07) 100%), radial-gradient(circle at 29% 46%, rgba(251, 251, 251, 0.0392156862745098) 0%, rgba(251, 251, 251, 0.0392156862745098) 50%, rgba(198, 198, 198, 0.00392156862745098) 50%, rgba(198, 198, 198, 0.00392156862745098) 100%), linear-gradient(90deg, rgb(244, 244, 244), rgba(163, 156, 157, 0.568));
  --text-light: #F8FAFC;
}




/* --- DECORATIVE BACKGROUND BLOBS (Aesthetics) --- */
.cecyd-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  -webkit-filter: blur(80px);
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
  animation: floatBlob 12s ease-in-out infinite alternate;
}

.cecyd-blob-1 {
  width: 350px;
  height: 350px;
  background: var(--secondary);
  top: 5%;
  right: 10%;
}

.cecyd-blob-2 {
  width: 450px;
  height: 450px;
  background: var(--accent-yellow);
  top: 25%;
  left: 5%;
  animation-delay: -4s;
  animation-duration: 16s;
}

.cecyd-blob-3 {
  width: 300px;
  height: 300px;
  background: var(--primary-curso);
  bottom: 15%;
  right: 5%;
  animation-delay: -2s;
  animation-duration: 10s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, -40px) scale(1.15);
  }
}


/* --- HERO SLIDER (Premium Curve) --- */
/* --- HERO SLIDER (Premium Light Mode Split) --- */
.cecyd-hero-slider {
  width: 100%;
  height: 540px;
  background: linear-gradient(135deg, #faf6f4 0%, #f0e6e2 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 5px solid var(--primary-curso);
  z-index: 2;
}

/* Diagonal Wave Split (Soft Warm Gradient) */
.cecyd-hero-wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(135deg, #fcece7 0%, #ffd3c4 100%);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  z-index: 1;
  box-shadow: 8px 0 25px rgba(81, 16, 19, 0.05);
  transition: var(--transition);
}

.cecyd-hero-slider-content {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cecyd-hero-content {
  width: 55%;
  padding-left: 8%;
  color: var(--text-dark);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.cecyd-hero-content.cecyd-fade-out {
  opacity: 0 !important;
  transform: translateY(15px) !important;
}

.cecyd-hero-category {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  color: var(--primary-curso);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cecyd-hero-category::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(226, 70, 34, 0.4);
}

.cecyd-hero-title-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(185, 17, 22, 0.15);
  color: var(--primary-curso);
  display: inline-block;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(81, 16, 19, 0.04);
}

.cecyd-hero-title-box span {
  display: inline-block;
}

.cecyd-hero-title-huge {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg,
      var(--text-dark) 40%,
      var(--primary-curso) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -2px;
  font-family: "Outfit", sans-serif;
}

.cecyd-hero-pill {
  background: linear-gradient(135deg,
      var(--primary-curso) 0%,
      var(--primary-hover) 100%);
  color: white;
  padding: 14px 32px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.3rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 10px 25px rgba(185, 17, 22, 0.15);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cecyd-hero-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      var(--secondary) 0%,
      var(--accent-yellow) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.cecyd-hero-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(226, 70, 34, 0.3);
  color: white;
}

.cecyd-hero-pill:hover::before {
  opacity: 1;
}

.cecyd-hero-pill>* {
  position: relative;
  z-index: 2;
}

.cecyd-hero-pill span {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.4s ease;
}

.cecyd-hero-pill:hover span {
  color: white;
}

/* Floating Image Container */
.cecyd-hero-image-container {
  position: absolute;
  right: 6%;
  bottom: 5%;
  height: 90%;
  z-index: 2;
  display: flex;
  align-items: center;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatImage 6s ease-in-out infinite alternate;
}

@keyframes floatImage {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.cecyd-hero-image-container.cecyd-fade-out {
  opacity: 0 !important;
  transform: scale(0.95) rotate(-1deg) !important;
}

.cecyd-hero-image-container img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
  border-radius: 24px;
  border: 4px solid white;
  background: white;
  padding: 10px;
  box-shadow:
    0 20px 45px rgba(81, 16, 19, 0.08),
    0 0 30px rgba(81, 16, 19, 0.02);
  transition: var(--transition);
}

/* Puntos del Slider */
.cecyd-slider-dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 3;
}

.cecyd-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.cecyd-dot.cecyd-active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}


/* --- CATALOG SECTION --- */
.cecyd-catalog-section {
  padding: 6rem 0 4rem 0;
  max-width: 80%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cecyd-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Gradient title */
.cecyd-section-header h2 {

  background: linear-gradient(135deg,
      var(--text-dark) 0%,
      var(--primary-curso) 50%,
      var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.cecyd-section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-curso), var(--secondary));
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.cecyd-section-header p {

  color: var(--text-gray);
  max-width: 100%;
  margin: 0 auto;
}

/* Frosted Glass Wrapper */
.cecyd-search-filter-wrapper {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(81, 16, 19, 0.03);
  margin-bottom: 4rem;
  border: 1px solid rgba(255, 250, 250, 0.6);
}

/* Search Box */
.cecyd-search-container {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  position: relative;
}

.cecyd-search-box {
  display: flex;
  align-items: center;
  background: rgba(240, 230, 226, 0.6);
  border: 2px solid transparent;
  border-radius: 60px;
  padding: 8px 24px;
  transition: var(--transition);
}

.cecyd-search-box:focus-within {
  border-color: var(--primary-curso);
  background: white;
  box-shadow: 0 8px 25px rgba(185, 17, 22, 0.08);
}

.cecyd-search-icon {
  color: var(--text-gray);
  margin-right: 15px;
  flex-shrink: 0;
}

.cecyd-search-input {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-family: inherit !important;
  font-size: 1.5rem !important;
  color: var(--text-dark) !important;
}

.cecyd-search-input::placeholder {
  color: var(--text-gray);
  opacity: 0.7;
}

/* Category Filters */
.cecyd-category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cecyd-filter-btn {
  background: rgba(240, 230, 226, 0.6);
  color: var(--text-dark);
  border: 1px solid transparent;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-family: inherit;

  cursor: pointer;
  transition: var(--transition);
}

.cecyd-filter-btn:hover {
  background: white;
  border-color: var(--primary-curso);
  color: var(--primary-curso);
  transform: translateY(-2px);
}

.cecyd-filter-btn.cecyd-active {
  background: linear-gradient(135deg,
      var(--primary-curso) 0%,
      var(--primary-hover) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(185, 17, 22, 0.25);
  transform: translateY(-2px);
}

/* Grid of Courses */
.cecyd-courses-container-wrapper {
  position: relative;
  width: 100%;
}

.cecyd-courses-container-wrapper .cecyd-nav-btn {
  display: none !important;
}

/* Grid of Courses */
.cecyd-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  transition: var(--transition);
}

/* No Results Message */
.cecyd-no-results {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 20px;
  border: 2px dashed var(--border-gray);
}

.cecyd-no-results svg {
  color: var(--border-gray);
  margin-bottom: 1.5rem;
}

.cecyd-no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.cecyd-no-results p {
  color: var(--text-gray);
}

/* Course Card - Premium Square Full-Image Overlay Design */
.cecyd-course-card {
  background: var(--bg-dark);
  border-radius: 40px;
  /* Large rounded corners matching the example image */
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(34, 3, 4, 0.12);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cecyd-course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(185, 17, 22, 0.25);
}

.cecyd-card-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #eae3df;
}

.cecyd-card-img-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
      rgba(34, 3, 4, 0.95) 0%,
      rgba(34, 3, 4, 0.55) 50%,
      rgba(34, 3, 4, 0.15) 100%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cecyd-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cecyd-course-card:hover .cecyd-card-img {
  transform: scale(1.08);
}

.cecyd-course-card:hover .cecyd-card-img-wrapper::after {
  opacity: 1;
}

.cecyd-category-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(163,
      134,
      122,
      0.95);
  /* Earthy brown matching the example image */
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cecyd-card-content {
  padding: 2.2rem;
  position: relative;
  z-index: 3;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cecyd-course-card:hover .cecyd-card-content {
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 65%, rgba(255,255,255,0) 100%);
  opacity: 1;
  transform: translateY(0);
}

.cecyd-card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.cecyd-meta-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.cecyd-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: #b91116;
  text-shadow: 0 2px 4px rgba(243, 243, 243, 0.25);
}

.cecyd-card-info-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
}

.cecyd-info-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color:#777;
}

.cecyd-info-detail-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;

}

.cecyd-info-detail-text {
  font-weight: 700;
  font-size: 1.4rem;

}

.cecyd-btn-card {

  width: 100%;
  padding: 12px;
 color: rgb(232 97 39);
  text-align: left;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cecyd-course-card:hover .cecyd-btn-card {
  color: rgb(206, 88, 37);
  transform: translateY(-2px);
}

.cecyd-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.493);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #8b8585;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.cecyd-slider-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cecyd-slider-btn.prev-btn {
  left: 20px;
}

.cecyd-slider-btn.next-btn {
  right: 20px;
}

/* Opcional: Ocultar flechas en pantallas muy pequeñas para no estorbar el texto */
@media (max-width: 768px) {
  .cecyd-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .cecyd-slider-btn.prev-btn {
    left: 10px;
  }

  .cecyd-slider-btn.next-btn {
    right: 10px;
  }
}

/* --- DYNAMIC MODAL (Glassmorphism) --- */
.cecyd-modal-overlay {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 3, 4, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.cecyd-modal-overlay.cecyd-show {
  opacity: 1;
}

.cecyd-modal-container {
  background: white;
  width: 100%;
  max-width: 850px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(81, 16, 19, 0.15);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  margin: auto;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(185, 17, 22, 0.08);
}

.cecyd-modal-overlay.cecyd-show .cecyd-modal-container {
  transform: scale(1);
}

.cecyd-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cecyd-close-btn:hover {
  background: var(--primary-curso);
  color: white;
  transform: rotate(90deg);
}

/* Modal Left Column (Details) */
.cecyd-modal-details {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #34090b 100%);
  color: white;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.cecyd-modal-details::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle,
      rgba(248, 182, 136, 0.1) 0%,
      transparent 70%);
  pointer-events: none;
}

.cecyd-modal-details-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-peach);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.cecyd-modal-details-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: white;
}

.cecyd-modal-info-list {
  margin-bottom: 2rem;
}

.cecyd-modal-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cecyd-modal-info-icon {
  color: var(--accent-peach) !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.cecyd-modal-info-icon svg {
  width: 18px !important;
  height: 18px !important;
  color: var(--accent-peach) !important;
}

.cecyd-modal-info-text strong {
  display: block;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cecyd-modal-info-text p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.cecyd-modal-syllabus-box h4 {
  font-size: 1.3rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 5px;
}

.cecyd-modal-syllabus-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cecyd-modal-syllabus-list li {
  position: relative;
  padding: 5px 12px 5px 26px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.cecyd-modal-syllabus-list li span {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
}

.cecyd-modal-syllabus-list li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-peach) !important;
  font-weight: bold;
}

.cecyd-modal-syllabus-list li:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cecyd-modal-syllabus-list li:hover span {
  color: white !important;
}

.cecyd-modal-syllabus-list li:hover::before {
  color: white !important;
}

/* Modal Right Column (Form) */
.cecyd-modal-form-container {
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cecyd-modal-actions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 0.5rem 0;
  width: 100%;
}

.cecyd-modal-actions-wrapper h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.cecyd-modal-actions-wrapper p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
  line-height: 1.5;
}

.cecyd-modal-enrollment-period-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
  border: 1px solid rgba(185, 17, 22, 0.15);
  border-left: 5px solid var(--primary-curso);
  border-radius: 16px;
  padding: 2rem 1.25rem;
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 320px;
  text-align: left;
  box-shadow: 0 15px 35px rgba(185, 17, 22, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cecyd-modal-enrollment-period-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(185, 17, 22, 0.12);
}

.cecyd-modal-enrollment-period-card .cecyd-info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cecyd-modal-enrollment-period-card .cecyd-info-label {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-curso);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cecyd-info-label-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(185, 17, 22, 0.08);
  color: var(--primary-curso);
  flex-shrink: 0;
}

.cecyd-info-label-icon-wrapper svg {
  width: 16px;
  height: 16px;
}

.cecyd-modal-enrollment-period-card .cecyd-info-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  padding-left: 38px;
}

.cecyd-modal-enrollment-period-card .cecyd-info-subvalue {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-hover);
  margin-top: 4px;
  margin-left: 5px;
  line-height: 1.4;
  background: rgba(185, 17, 22, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-curso);
}

.cecyd-status-open {
  background: rgba(46, 125, 50, 0.15);
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-block;
}

.cecyd-status-closed {
  background: rgba(198, 40, 40, 0.15);
  color: #c62828;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-block;
}

.cecyd-modal-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
}

.cecyd-btn-modal-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg,
      var(--primary-curso) 0%,
      var(--primary-hover) 100%);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(185, 17, 22, 0.25);
  transition: var(--transition);
  box-sizing: border-box;
}

.cecyd-btn-modal-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(185, 17, 22, 0.4);
  color: white;
}

.cecyd-btn-modal-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--border-gray);
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.cecyd-btn-modal-secondary:hover {
  background-color: var(--bg-gray);
  border-color: var(--text-dark);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.cecyd-btn-modal-primary.cecyd-disabled,
.cecyd-btn-modal-primary.cecyd-disabled:hover,
.cecyd-btn-card.cecyd-disabled,
.cecyd-btn-card.cecyd-disabled:hover {
  background: #cbd5e1 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: none !important;
}

/* Closed Enrollment Padlock Box */
.cecyd-modal-closed-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff5f5;
  border: 2px dashed #fecaca;
  border-radius: 16px;
  padding: 24px;
  color: var(--text-dark);
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cecyd-modal-closed-box .cecyd-lock-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.cecyd-modal-closed-box .cecyd-lock-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cecyd-modal-closed-box .cecyd-lock-dates-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 700;
}

.cecyd-modal-closed-box .cecyd-lock-dates {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cecyd-modal-closed-box .cecyd-lock-cycle {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  background: #ffe4e6;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

.cecyd-form-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.cecyd-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.cecyd-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  color: var(--text-dark);
  background-color: var(--bg-gray);
}

.cecyd-form-input:focus {
  border-color: var(--primary-curso);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(185, 17, 22, 0.12);
}

.cecyd-form-input.cecyd-error {
  border-color: var(--secondary);
  background-color: rgba(226, 70, 34, 0.03);
}

.cecyd-form-error-msg {
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

.cecyd-btn-submit {
  width: 100%;
  background: linear-gradient(135deg,
      var(--primary-curso) 0%,
      var(--primary-hover) 100%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(185, 17, 22, 0.2);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cecyd-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 17, 22, 0.35);
}

/* Success Animation State */
.cecyd-modal-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  height: 100%;
}

.cecyd-success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(46, 196, 182, 0.1);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(46, 196, 182, 0.15);
  animation: popCheckmark 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popCheckmark {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cecyd-success-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.cecyd-success-desc {
  color: var(--text-gray);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 280px;
}

/* Loading Spinner */
.cecyd-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .cecyd-hero-wave {
    width: 100%;
    border-radius: 0 0 100px 100px;
    height: 55%;
  }

  .cecyd-hero-slider {
    flex-direction: column;
    height: auto;
    padding-bottom: 3rem;
  }

  .cecyd-hero-slider-content {
    flex-direction: column;
    padding-top: 4rem;
    height: auto;
  }

  .cecyd-hero-content {
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
    text-align: center;
    margin-bottom: 3rem;
  }

  .cecyd-hero-title-huge {
    font-size: 3.8rem;
  }

  .cecyd-hero-image-container {
    position: relative;
    right: auto;
    bottom: auto;
    height: 300px;
    width: 100%;
    justify-content: center;
  }

  .cecyd-hero-image-container img {
    height: 100%;
  }

  .cecyd-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .cecyd-modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px 10px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(34, 3, 4, 0.9) !important;
  }

  .cecyd-modal-container {
    grid-template-columns: 1fr;
    max-height: none;
    margin: 10px auto;
    transform: none !important;
  }

  .cecyd-modal-details {
    padding: 2rem 1.5rem;
  }

  .cecyd-modal-form-container {
    padding: 2rem 1.5rem;
  }

  .cecyd-close-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
  }
}

@media (max-width: 576px) {
  .cecyd-modal-details-title {
    font-size: 1.5rem;
  }

  .cecyd-modal-details {
    padding: 1.8rem 1.2rem;
  }

  .cecyd-modal-form-container {
    padding: 1.8rem 1.2rem;
  }

  .cecyd-modal-details-badge {
    margin-right: 45px;
    max-width: calc(100% - 50px);
  }
}


@media (max-width: 768px) {


  .cecyd-catalog-section {
    padding: 3rem 0 2rem 0 !important;
    max-width: 92% !important;
  }

  .cecyd-category-filters {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding: 4px 4px 10px 4px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE/Edge */
  }

  .cecyd-category-filters::-webkit-scrollbar {
    display: none !important;
    /* Chrome, Safari, Opera */
  }

  /* Side navigation buttons for catalog slider on mobile */
  .cecyd-courses-container-wrapper {
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }

  .cecyd-courses-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 1.5rem !important;
    padding: 1rem 0.5rem !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE/Edge */
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
  }

  .cecyd-courses-grid::-webkit-scrollbar {
    display: none !important;
  }

  .cecyd-course-card {
    flex: 0 0 auto !important;
    width: 290px !important;
    margin: 0 !important;
  }

  .cecyd-search-filter-wrapper {
    padding: 1.2rem 1rem !important;
    border-radius: 16px !important;
    margin-bottom: 2rem !important;
  }

  .cecyd-courses-container-wrapper .cecyd-nav-btn {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(81, 16, 19, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 50% !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
    transition: var(--transition) !important;
  }

  .cecyd-courses-container-wrapper .cecyd-nav-btn.prev-catalog {
    left: -8px !important;
  }

  .cecyd-courses-container-wrapper .cecyd-nav-btn.next-catalog {
    right: -8px !important;
  }

  .cecyd-courses-container-wrapper .cecyd-nav-btn:hover {
    background: var(--primary-curso) !important;
    transform: translateY(-50%) scale(1.08) !important;
  }

  .cecyd-courses-container-wrapper .cecyd-nav-btn i {
    font-size: 1rem !important;
  }

  .cecyd-section-header h2 {
    font-size: 2.2rem;
  }

  .cecyd-footer-grid {
    grid-template-columns: 1fr;
  }

  .cecyd-footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}