:root {
    /* Corporate Palette */
    --pantone-red: #B91116;
    --pantone-orange: #E24622;
    --deep-red: #e80c38;
    --dark-red: #841816;
    --light-peach: #F8B688;
    --orange-alt: #E8641C;
    --yellow-orange: #F39200;
    --dark-gray: #575756;
    --light-gray: #9D9D9C;
  

    /* Theme Mapping */
    --bg-dark: #121212;
--bg-gradient: radial-gradient(circle at 28% 29%, rgba(237, 237, 237, 0.039) 0%, rgba(237, 237, 237, 0.039) 50%, rgba(136, 136, 136, 0.039) 50%, rgba(136, 136, 136, 0.039) 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.039) 0%, rgba(251, 251, 251, 0.039) 50%, rgba(198, 198, 198, 0.003) 50%, rgba(198, 198, 198, 0.003) 100%), linear-gradient(90deg, #063047, #7794b6);
    --text-light: #F8FAFC;
    --text-muted: var(--light-gray);
    
    --primary-color: var(--pantone-red);
    --primary-hover: var(--dark-red);
    
    --accent-color: var(--pantone-orange);
    --warn-color: var(--yellow-orange);
    --green-color: #10B981;
    
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
     --glass-bg-card: #FFFFFF;

     --background-image: conic-gradient(from 245deg at 50% 50%, rgba(255, 255, 255, 0.1) 0deg, transparent 60deg, rgba(255, 255, 255, 0.1) 120deg, transparent 180deg), linear-gradient(135deg, #e80c38, #B91116);

     
}



.cecyd-wrapper {
   
    padding: 2rem;
}

.cecyd-conference-title {
   font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: .8rem;
  line-height: 1.1;

  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
   
}
.cecyd-conference-subtitle {
    font-size: 1.5rem;
    color: var( --glass-bg-card);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}
    /* =========================================
   HEADER
========================================= */

    .partners-header {
      text-align: center;
      margin-bottom: 4rem;
    }

    .partners-tag {
      display: inline-flex;
      align-items: center;
      gap: .6rem;
      padding: .7rem 1.3rem;
      border-radius: 999px;
      background: rgb(232 97 39);
      border: 1px solid rgba(232, 97, 39, .18);
      color: #fff;
      font-weight: 700;
      margin-bottom: 1.5rem;

      
    }

    .partners-header h2 {
      font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: .8rem;
  line-height: 1.1;

  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
    }

    .partners-header p {
      color: var(--text-gray);
      max-width: 760px;
      margin: auto;
      font-size: 1.6rem;
      line-height: 1.5;
    }
    .cecyd-section-subtitle{
  color:var(--text-gray);
    }
   

.cecyd-carousel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.cecyd-carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cecyd-carousel-track::-webkit-scrollbar {
    display: none;
}

.cecyd-card {
    min-width: 340px;
    max-width: 340px;
    flex: 0 0 auto;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cecyd-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cecyd-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.cecyd-card-img {
    position: relative;
    height: auto;
    width: 100%;
    overflow: hidden;
}

.cecyd-card-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.cecyd-card:hover .cecyd-card-img img {
    transform: scale(1.05);
}

.cecyd-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(185, 17, 22, 0.8);
    backdrop-filter: blur(4px);
    color: white;
}

.cecyd-badge-accent { background-color: rgba(226, 70, 34, 0.8); }
.cecyd-badge-warn { background-color: rgba(243, 146, 0, 0.8); }
.cecyd-badge-green { background-color: rgba(16, 185, 129, 0.8); }

.cecyd-card-content {
    padding: 1.5rem;
}

.cecyd-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.cecyd-meta {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cecyd-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.cecyd-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.2rem;
}

.cecyd-speaker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #CBD5E1;
}

.cecyd-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.cecyd-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cecyd-btn.cecyd-primary {
    background: var(--pantone-red);
    color: white;
    box-shadow: 0 4px 15px rgba(185, 17, 22, 0.3);
}

.cecyd-btn.cecyd-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 17, 22, 0.5);
}

.cecyd-btn.cecyd-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
}

.cecyd-btn.cecyd-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.cecyd-past-card {
    filter: grayscale(80%);
    opacity: 0.85;
}

.cecyd-past-card:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.cecyd-nav-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.cecyd-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Courses Section */
.cecyd-courses-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.cecyd-section-cecyd-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color:var(--orange-alt);
 
}

.cecyd-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.cecyd-course-card {
    min-width: 100%;
    max-width: 100%;
}
.cecyd-mensaje-centro {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cecyd-mensaje-centro h2 {
  font-size: 28px;
  color: #ff657c;
  font-weight: 700;

}





/* animación suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
    .cecyd-nav-btn {
        display: none;
    }
    .cecyd-carousel-container {
        gap: 0;
    }
    .cecyd-wrapper {
        padding: 1.5rem 0.5rem;
    }
    .cecyd-main-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    .cecyd-card {
    
        scroll-snap-align: center;
    }
    .cecyd-carousel-track {
        gap: 1rem;
        padding: 1rem;
        scroll-snap-type: x mandatory;
    }
}
.cecyd-conference-filters{
  display:flex;
  gap:12px;
}

.cecyd-filter-btn{
  border:none;
  padding:14px 24px;
  border-radius:18px;
  background:#fff;
  color:#E86127;
  cursor:pointer;
  font-weight:700;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  transition:.3s;
}

.cecyd-filter-btn.cecyd-active{
  background:#E86127;
  color:#fff;
}

.cecyd-conference-grid{
  display:grid;
  grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));
  gap:30px;
}

/* CARD */

.cecyd-conference-card{
  background:#fff;
  border-radius:28px;
  overflow:hidden;
  transition:.35s;
  position: relative;
  height: 340px;
}

.cecyd-conference-card:hover{
  transform:translateY(-6px);
  box-shadow: 0 20px 50px rgba(173, 162, 156, 0.2);
}

/* IMAGE */

.cecyd-conference-image-box{
  position:absolute;
  inset:0;
  height:100%;
  width:100%;
}

.cecyd-conference-image{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cecyd-conference-overlay{
  position:absolute;
  inset:0;
 
}

.cecyd-conference-badge{
  position:absolute;
  top:18px;
  left:18px;
  background:#E86127;
  color:#fff;
  padding:8px 16px;
  border-radius:50px;
  font-size:.82rem;
  font-weight:700;
}

/* BODY */
.fondo-inscripcion {
  background: var(--bg-gradient);
    color: var(--text-light);
   
}
.fondo-conference {
  background: var(--bg-gradient);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 6rem 0 4rem 0
}

.cecyd-conference-body{
  position:absolute;
  inset:0;
  padding:28px;
  background: rgba(248, 248, 248, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 10;
}

.cecyd-conference-card:hover .cecyd-conference-body{
  opacity: 1;
  transform: translateY(0);
}

.cecyd-conference-date{
  color:#E86127;
  font-size:1.2rem;
  font-weight:700;
}

.cecyd-conference-title{
  margin:14px 0;
  color:#ffffff;
  line-height:1.125;
  font-size:1.5rem;
}

.cecyd-conference-desc{
  color:#64748b;
  line-height:1.7;
  margin-bottom:28px;
   font-size:1.2rem;
}

/* FOOTER */

.cecyd-conference-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
}

.cecyd-conference-speaker{
  color:#f3f4f6;
  font-weight:600;
}

.cecyd-conference-link{
  text-decoration:none;
  color:#E86127;
  font-weight:700;
}

/* Video Modal Styles */
.cecyd-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cecyd-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.cecyd-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.cecyd-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #121212;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cecyd-modal.active .cecyd-modal-content {
    transform: scale(1);
}

.cecyd-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 20;
    transition: all 0.2s ease;
}

.cecyd-modal-close:hover {
    background: var(--pantone-red);
    transform: rotate(90deg);
}

.cecyd-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.cecyd-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
