/**
 * CIYDI Pro - Main Stylesheet (Minimalist Clean Light Style)
 * Estructura de Maquetación, Tipografía y Componentes EdTech de Alta Precisión
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Identidad Corporativa Oficial CIYDI Pro (#CC4D09) */
  --ciydi-brand: #CC4D09;
  --ciydi-brand-hover: #A63B04;
  --ciydi-brand-active: #8C2E02;
  --ciydi-brand-light: rgba(204, 77, 9, 0.08);
  --ciydi-brand-border: rgba(204, 77, 9, 0.22);
  --ciydi-brand-glow: 0 4px 14px rgba(204, 77, 9, 0.35);

  /* Acentos & Compatibilidad UI */
  --ciydi-primary: #CC4D09;
  --ciydi-cyan: #CC4D09;
  --ciydi-text-primary: #0F172A;
  --ciydi-text-secondary: #475569;
  --ciydi-text-muted: #64748B;
  --ciydi-border: #E2E8F0;
  --ciydi-card-bg: #FFFFFF;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ciydi-text-primary);
  background-color: #FAFAFA;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: #FAFAFA;
  color: var(--ciydi-text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ciydi-text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--ciydi-text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contenedores */
/* Contenedores Mobile First */
.ciydi-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .ciydi-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 1024px) {
  .ciydi-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.ciydi-section {
  padding-top: 48px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .ciydi-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }
}

.ciydi-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px auto;
}

@media (min-width: 1024px) {
  .ciydi-section-header {
    margin-bottom: 52px;
  }
}

.ciydi-section-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-top: 10px;
  margin-bottom: 12px;
  color: var(--ciydi-text-primary);
}

.ciydi-gradient-text {
  color: #0F172A;
  display: inline-block;
}

.ciydi-section-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--ciydi-text-secondary);
  line-height: 1.6;
}

/* ============================================================
   HEADER & NAVBAR MINIMALISTA MOBILE FIRST
   ============================================================ */
/* ============================================================
   BARRA SUPERIOR DE ANUNCIOS (TOP BAR)
   ============================================================ */
.ciydi-topbar {
  background: #0F172A;
  color: #F8FAFC;
  font-size: 0.8125rem;
  padding: 8px 0;
  text-align: center;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ciydi-topbar-link {
  color: #F8FAFC;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.ciydi-topbar-link:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.ciydi-header-wrapper.ciydi-is-static {
  position: relative !important;
  top: auto !important;
}

.ciydi-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E2E8F0;
  transition: all 0.25s ease;
  padding: 14px 0;
}

.ciydi-header-wrapper.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
  border-bottom-color: #CBD5E1;
}

@media (min-width: 1024px) {
  .ciydi-header-wrapper {
    padding: 16px 0;
  }
  .ciydi-header-wrapper.scrolled {
    padding: 11px 0;
  }
}

.ciydi-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
}

.ciydi-brand-custom-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.custom-logo {
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .custom-logo {
    max-height: 42px;
  }
}

.ciydi-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
  text-decoration: none;
  flex-shrink: 0;
}

.ciydi-brand-logo-icon {
  width: 32px;
  height: 32px;
  background: #CC4D09;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(204, 77, 9, 0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ciydi-brand:hover .ciydi-brand-logo-icon {
  transform: scale(1.05);
  background: #A63B04;
}

.ciydi-brand-pro-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  background: #F1F5F9;
  color: #475569;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #E2E8F0;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: none;
}

@media (min-width: 480px) {
  .ciydi-brand-pro-tag {
    display: inline-block;
  }
}

/* ============================================================
   ENLACES DE NAVEGACIÓN PRINCIPAL (DESKTOP)
   ============================================================ */
.ciydi-nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .ciydi-nav-links {
    display: flex;
  }
}

.ciydi-nav-links li {
  position: relative;
  list-style: none;
}

.ciydi-nav-links li > a,
.ciydi-nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1.4;
}

.ciydi-nav-links li > a:hover,
.ciydi-nav-links li.current-menu-item > a,
.ciydi-nav-links li.current_page_item > a,
.ciydi-nav-link:hover,
.ciydi-nav-link.active {
  color: #0F172A;
  background: #F8FAFC;
}

.ciydi-nav-links li.current-menu-item > a,
.ciydi-nav-links li.current_page_item > a,
.ciydi-nav-link.active {
  color: #CC4D09;
  font-weight: 700;
  background: rgba(204, 77, 9, 0.08);
}

/* Chevron animado sutil para menús desplegables nativos de WordPress */
.ciydi-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.ciydi-nav-links li:hover .ciydi-nav-chevron,
.ciydi-nav-links li:focus-within .ciydi-nav-chevron {
  transform: rotate(180deg);
  color: #CC4D09;
}

.ciydi-nav-links li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  margin-left: 5px;
  margin-top: -2px;
  opacity: 0.65;
  transition: transform 0.22s ease, opacity 0.2s ease, color 0.2s ease;
}

.ciydi-nav-links li.menu-item-has-children:hover > a::after,
.ciydi-nav-links li.menu-item-has-children:focus-within > a::after {
  transform: rotate(225deg);
  margin-top: 2px;
  opacity: 1;
  color: #CC4D09;
}

/* Evitar doble flecha si el enlace ya tiene el SVG .ciydi-nav-chevron */
.ciydi-nav-links li.menu-item-has-children > a:has(.ciydi-nav-chevron)::after {
  display: none !important;
}

/* ============================================================
   SUBMENÚS & DROPDOWNS NATIVOS DE WORDPRESS Y MEGA-MENÚS
   ============================================================ */
.ciydi-nav-links .sub-menu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  min-width: 220px !important;
  max-width: 320px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: var(--radius-md) !important;
  padding: 8px !important;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
  z-index: 99999 !important;
  list-style: none !important;
  margin: 0 !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.ciydi-nav-links li:hover > .sub-menu,
.ciydi-nav-links li:focus-within > .sub-menu {
  display: flex !important;
  animation: ciydiNavDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mega-menú de 2 columnas específicamente para Tienda / Catálogos masivos */
.ciydi-nav-links .sub-menu.ciydi-nav-dropdown,
.ciydi-nav-links .sub-menu.ciydi-mega-menu {
  min-width: 600px !important;
  max-width: 680px !important;
  padding: 12px !important;
  max-height: 82vh !important;
  overflow-y: auto !important;
}

.ciydi-nav-links li:hover > .sub-menu.ciydi-nav-dropdown,
.ciydi-nav-links li:focus-within > .sub-menu.ciydi-nav-dropdown,
.ciydi-nav-links li:hover > .sub-menu.ciydi-mega-menu,
.ciydi-nav-links li:focus-within > .sub-menu.ciydi-mega-menu {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px 10px !important;
}

@keyframes ciydiNavDropdownFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ciydi-nav-links .sub-menu li {
  width: 100% !important;
  list-style: none !important;
}

.ciydi-nav-links .sub-menu li.ciydi-dropdown-footer {
  grid-column: 1 / -1 !important;
  margin-top: 6px !important;
  padding-top: 8px !important;
  border-top: 1px solid #E2E8F0 !important;
}

.ciydi-nav-links .sub-menu li a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  color: #334155 !important;
  transition: all 0.15s ease !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

.ciydi-nav-links .sub-menu li a:hover {
  background: #F8FAFC !important;
  color: #CC4D09 !important;
  transform: translateX(3px) !important;
}

.ciydi-dropdown-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #CC4D09;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ciydi-nav-links .sub-menu li a:hover .ciydi-dropdown-icon {
  background: rgba(204, 77, 9, 0.09);
  border-color: rgba(204, 77, 9, 0.25);
  color: #CC4D09;
}

.ciydi-dropdown-icon svg {
  display: block;
}

.ciydi-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ciydi-dropdown-text strong {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ciydi-dropdown-text small {
  font-size: 0.6875rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  font-weight: 400;
}

.ciydi-dropdown-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
}

.ciydi-dropdown-footer a.ciydi-dropdown-all-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 12px !important;
  background: #F8FAFC !important;
  border-radius: var(--radius-sm) !important;
  color: #CC4D09 !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  transition: all 0.2s ease !important;
}

.ciydi-dropdown-footer a.ciydi-dropdown-all-link:hover {
  background: rgba(204, 77, 9, 0.08) !important;
  color: #A63B04 !important;
  transform: none !important;
}

/* ============================================================
   ACCIONES DEL HEADER (WHATSAPP, CAMPUS ALUMNO, CARRITO)
   ============================================================ */
.ciydi-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* WhatsApp Sutil y Estilizado */
.ciydi-nav-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}

.ciydi-nav-wa-btn:hover {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #14532D;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.12);
}

.ciydi-nav-wa-btn svg {
  color: #16A34A;
}

@media (max-width: 640px) {
  .ciydi-nav-wa-btn {
    padding: 8px 10px;
  }
  .ciydi-nav-wa-btn .ciydi-wa-text {
    display: none;
  }
}

/* Botón Campus Alumno (Estilo Stripe / Dark Pill) */
.ciydi-btn-campus {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #0F172A;
  color: #FFFFFF !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.3;
}

.ciydi-btn-campus:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

@media (min-width: 860px) {
  .ciydi-btn-campus {
    display: inline-flex;
  }
}

/* Icono Carrito Flotante */
.ciydi-nav-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #334155;
  position: relative;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ciydi-nav-cart:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.ciydi-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #CC4D09;
  color: #FFFFFF;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(204, 77, 9, 0.35);
}

/* Botón Móvil Hamburguesa */
.ciydi-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ciydi-mobile-toggle:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

@media (min-width: 1024px) {
  .ciydi-mobile-toggle {
    display: none !important;
  }
}

/* Menú Drawer Móvil Off-Canvas */
.ciydi-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.ciydi-mobile-drawer.is-active {
  pointer-events: auto;
  visibility: visible;
}

.ciydi-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ciydi-mobile-drawer.is-active .ciydi-drawer-backdrop {
  opacity: 1;
}

.ciydi-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: #FFFFFF;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.ciydi-mobile-drawer.is-active .ciydi-drawer-panel {
  transform: translateX(0);
}

.ciydi-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 20px;
}

.ciydi-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 0.2s ease;
}

.ciydi-drawer-close:hover {
  background: #E2E8F0;
}

.ciydi-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  padding: 0;
}

.ciydi-drawer-links li {
  list-style: none;
}

.ciydi-drawer-links li a,
.ciydi-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  transition: all 0.15s ease;
  min-height: 44px;
  text-decoration: none;
}

.ciydi-drawer-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ciydi-drawer-link-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #CC4D09;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ciydi-drawer-links li a:hover,
.ciydi-drawer-links li.current-menu-item > a,
.ciydi-drawer-link:hover,
.ciydi-drawer-link.active {
  background: rgba(204, 77, 9, 0.08);
  color: #CC4D09;
}

.ciydi-drawer-links li a:hover .ciydi-drawer-link-icon,
.ciydi-drawer-link:hover .ciydi-drawer-link-icon {
  background: rgba(204, 77, 9, 0.14);
}

.ciydi-drawer-links .sub-menu {
  list-style: none;
  padding-left: 12px;
  margin: 4px 0 10px 14px;
  border-left: 2px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ciydi-drawer-links .sub-menu a {
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  min-height: 38px;
  border-radius: 6px;
}

.ciydi-drawer-links .sub-menu a:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Indicador de Asesores Activos en Drawer */
.ciydi-drawer-advisor-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 14px;
}

.ciydi-drawer-advisor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  border: 2px solid #BAE6FD;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .ciydi-mobile-drawer {
    display: none !important;
  }
}

.ciydi-cart-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: var(--ciydi-text-primary);
  cursor: pointer;
  box-shadow: var(--glass-shadow-soft);
  transition: all 0.2s ease;
}

@media (min-width: 1024px) {
  .ciydi-cart-trigger {
    width: 42px;
    height: 42px;
  }
}

.ciydi-cart-trigger:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.ciydi-cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   HERO SECTION (MOBILE FIRST + DESKTOP DE ALTA GAMA)
   ============================================================ */
.ciydi-hero {
  padding-top: 36px;
  padding-bottom: 48px;
  position: relative;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
}

@media (min-width: 1024px) {
  .ciydi-hero {
    padding-top: 56px;
    padding-bottom: 76px;
  }
}

/* Mobile: 1 columna fluida. Desktop: 2 columnas balanceadas */
.ciydi-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

@media (min-width: 1024px) {
  .ciydi-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }
}

.ciydi-hero-content {
  position: relative;
  z-index: 2;
}

.ciydi-hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.035em;
  margin-top: 14px;
  margin-bottom: 16px;
  line-height: 1.16;
  color: var(--ciydi-text-primary);
}

@media (min-width: 1024px) {
  .ciydi-hero-title {
    margin-top: 18px;
    margin-bottom: 20px;
    line-height: 1.12;
  }
}

.ciydi-hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ciydi-text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
}

.ciydi-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ciydi-hero-card-preview {
  position: relative;
}

.ciydi-hero-floating-glass {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: var(--glass-shadow-deep);
}

.ciydi-hero-video-box {
  width: 100%;
  height: 230px;
  border-radius: var(--radius-md);
  background: #F1F5F9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E8F0;
  margin-bottom: 20px;
}

.ciydi-play-pulse-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease;
  position: relative;
  z-index: 2;
}

.ciydi-play-pulse-btn:hover {
  transform: scale(1.08);
  background: #1E293B;
}

/* ============================================================
   STATS BAR (SOCIAL PROOF MINIMALISTA - MOBILE FIRST)
   ============================================================ */
.ciydi-stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: var(--glass-shadow-soft);
  margin-top: 28px;
}

@media (min-width: 768px) {
  .ciydi-stats-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 28px 36px;
    border-radius: var(--radius-lg);
    margin-top: 36px;
  }
}

.ciydi-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

@media (min-width: 768px) {
  .ciydi-stat-item {
    border-right: 1px solid #E2E8F0;
    padding-right: 20px;
  }
  .ciydi-stat-item:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.ciydi-stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ciydi-text-primary);
  line-height: 1.1;
}

@media (min-width: 768px) {
  .ciydi-stat-number {
    font-size: 2.25rem;
  }
}

.ciydi-stat-label {
  font-size: 0.8125rem;
  color: var(--ciydi-text-muted);
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .ciydi-stat-label {
    font-size: 0.875rem;
  }
}

/* ============================================================
   ESPECIALIDADES / CATEGORÍAS (MOBILE FIRST)
   ============================================================ */
.ciydi-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 540px) {
  .ciydi-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .ciydi-categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}

.ciydi-category-card {
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  box-shadow: var(--glass-shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 1024px) {
  .ciydi-category-card {
    padding: 24px;
  }
  .ciydi-category-card:hover {
    transform: translateY(-3px);
    border-color: #CBD5E1;
    box-shadow: var(--glass-shadow-deep);
  }
}

.ciydi-category-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  margin-bottom: 14px;
  font-size: 1.25rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .ciydi-category-icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    font-size: 1.35rem;
  }
  .ciydi-category-card:hover .ciydi-category-icon-wrapper {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
  }
}

.ciydi-category-name {
  font-size: 1.05rem;
  color: var(--ciydi-text-primary);
  margin-bottom: 4px;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .ciydi-category-name {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
}

.ciydi-category-count {
  font-size: 0.8125rem;
  color: var(--ciydi-text-muted);
}

/* ============================================================
   FILTRO DE ESPECIALIDADES EN PORTADA (CERO CURSOS REVUELTOS)
   ============================================================ */
.ciydi-course-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.ciydi-course-filter-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.ciydi-course-filter-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
  transform: translateY(-1px);
}

.ciydi-course-filter-btn.is-active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

/* ============================================================
   GRID DE CURSOS (MOBILE FIRST)
   ============================================================ */
.ciydi-courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .ciydi-courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .ciydi-courses-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.ciydi-course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ciydi-course-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: var(--glass-shadow-deep);
}

.ciydi-course-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #F1F5F9;
  overflow: hidden;
}

.ciydi-course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ciydi-course-card:hover .ciydi-course-thumb {
  transform: scale(1.03);
}

.ciydi-course-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap;
  max-width: calc(100% - 24px);
}

.ciydi-course-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ciydi-course-meta-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--ciydi-text-muted);
  margin-bottom: 10px;
}

.ciydi-course-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ciydi-course-title {
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--ciydi-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ciydi-course-excerpt {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ciydi-text-secondary);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ciydi-course-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.ciydi-instructor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #CBD5E1;
}

.ciydi-instructor-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ciydi-text-primary);
}

.ciydi-course-footer {
  padding: 16px 22px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ciydi-course-price {
  display: flex;
  flex-direction: column;
}

.ciydi-price-regular {
  font-size: 0.8125rem;
  color: var(--ciydi-text-muted);
  text-decoration: line-through;
}

.ciydi-price-current {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
}

/* ============================================================
   FICHA DE CURSO / PRODUCTO (MOBILE FIRST & PROGRESSIVE DESKTOP)
   ============================================================ */
.ciydi-single-course-page {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 16px)); /* Margen inferior para barra fija móvil con safe area */
}

@media (min-width: 1024px) {
  .ciydi-single-course-page {
    padding-bottom: 48px;
  }
}

.ciydi-single-course-title {
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  color: #0F172A;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ============================================================
   ARQUITECTURA DE FICHA DE CURSOS (2 COLUMNAS ROBUSTAS & FLUIDAS)
   ============================================================ */
.ciydi-single-course-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.ciydi-course-main-column {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ciydi-course-sidebar-column {
  width: 100%;
}

@media (max-width: 1023px) {
  .ciydi-course-sidebar-column {
    order: 0;
  }
}

@media (min-width: 1024px) {
  .ciydi-single-course-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 36px 44px;
  }

  .ciydi-course-main-column {
    flex: 1 1 0%;
    min-width: 0;
    gap: 32px;
  }

  .ciydi-course-sidebar-column {
    width: var(--ciydi-course-sidebar-width, 390px);
    flex-shrink: 0;
    position: sticky;
    top: 96px;
    z-index: 25;
  }
}

/* ============================================================
   HERO CARD ELEVADO / CABECERA DEL CURSO
   ============================================================ */
.ciydi-hero-main-block {
  border-radius: 20px;
  padding: 32px 36px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .ciydi-hero-main-block {
    padding: 22px 20px;
    border-radius: 16px;
  }
}

/* Tema 1: Light Luxe (Minimalista Claro / Editorial Slate - Predeterminado) */
.ciydi-theme-light .ciydi-hero-main-block {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
}

.ciydi-theme-light .ciydi-single-course-title {
  color: #0F172A;
}

.ciydi-theme-light .ciydi-single-course-excerpt {
  color: #475569;
}

/* Tema 2: High-Tech Dark Slate (Azul Marino Oscuro #0B1120) */
.ciydi-theme-dark .ciydi-hero-main-block {
  background: linear-gradient(145deg, #0B1120 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.ciydi-theme-dark .ciydi-single-course-title {
  color: #FFFFFF !important;
}

.ciydi-theme-dark .ciydi-single-course-excerpt {
  color: #94A3B8 !important;
}

.ciydi-theme-dark .ciydi-hero-instructor span {
  color: #CBD5E1 !important;
}

.ciydi-theme-dark .ciydi-hero-instructor strong {
  color: #FFFFFF !important;
}

.ciydi-theme-dark .ciydi-kpi-item {
  color: #FF8542 !important;
}

.ciydi-theme-dark .ciydi-kpi-item strong {
  color: #FFFFFF !important;
}

.ciydi-theme-dark .ciydi-kpi-sep {
  color: #475569 !important;
}

/* Tema 3: Gradiente Tecnológico CIYDI (Grafito Marino a Naranja Corporativo) */
.ciydi-theme-brand .ciydi-hero-main-block {
  background: linear-gradient(135deg, #0F172A 0%, #7C2D04 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 40px rgba(204, 77, 9, 0.22);
}

.ciydi-theme-brand .ciydi-single-course-title {
  color: #FFFFFF !important;
}

.ciydi-theme-brand .ciydi-single-course-excerpt {
  color: #FFEDD5 !important;
}

.ciydi-theme-brand .ciydi-hero-instructor span,
.ciydi-theme-brand .ciydi-hero-instructor strong,
.ciydi-theme-brand .ciydi-kpi-item,
.ciydi-theme-brand .ciydi-kpi-item strong {
  color: #FFFFFF !important;
}


/* Grids Técnicos de la Ficha de Curso 100% Fluidos y Responsivos */
.ciydi-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 480px) {
  .ciydi-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (min-width: 768px) {
  .ciydi-specs-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
}

.ciydi-competencies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .ciydi-competencies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.ciydi-methodology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .ciydi-methodology-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .ciydi-methodology-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* Barra de Filtros del Catálogo y Contenedor de Píldoras con Scroll Táctil */
.ciydi-archive-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E2E8F0;
}

@media (min-width: 768px) {
  .ciydi-archive-filter-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Barra de Pestañas de Navegación por Categorías (Limpia y Minimalista) */
.ciydi-category-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 14px;
}
.ciydi-cat-tabs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ciydi-cat-tab-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748B;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ciydi-cat-tab-link:hover {
  color: #CC4D09;
  background: rgba(204, 77, 9, 0.05);
  border-color: rgba(204, 77, 9, 0.3);
}
.ciydi-cat-tab-link.is-active {
  color: #FFFFFF;
  font-weight: 700;
  background: #CC4D09;
  border-color: #CC4D09;
  box-shadow: 0 2px 8px rgba(204, 77, 9, 0.3);
}

.ciydi-pills-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.ciydi-pills-scroll-container::-webkit-scrollbar {
  display: none;
}

.ciydi-pills-scroll-container .ciydi-pill {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .ciydi-pills-scroll-container {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Temario Acordeón Táctil */
.ciydi-accordion-module {
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  overflow: hidden;
}

.ciydi-accordion-header {
  min-height: 48px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #F8FAFC;
  user-select: none;
  transition: background 0.2s ease;
  gap: 12px;
}

@media (min-width: 768px) {
  .ciydi-accordion-header {
    padding: 16px 20px;
  }
}

.ciydi-accordion-header:hover {
  background: #F1F5F9;
}

.ciydi-accordion-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ciydi-text-primary);
  margin: 0;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .ciydi-accordion-header h4 {
    font-size: 1.05rem;
  }
}

.ciydi-accordion-body {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #FFFFFF;
}

@media (min-width: 768px) {
  .ciydi-accordion-body {
    padding: 0 20px;
  }
}

.ciydi-accordion-body.open {
  padding: 14px 16px;
  max-height: 800px;
}

@media (min-width: 768px) {
  .ciydi-accordion-body.open {
    padding: 14px 20px;
  }
}

.ciydi-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.9rem;
  color: var(--ciydi-text-secondary);
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .ciydi-lesson-row {
    font-size: 0.9375rem;
    flex-wrap: nowrap;
  }
}

.ciydi-lesson-row:last-child {
  border-bottom: none;
}

/* ============================================================
   BARRA FIJA DE COMPRA INFERIOR (MÓVIL ONLY)
   ============================================================ */
.ciydi-mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (min-width: 1024px) {
  .ciydi-mobile-sticky-bar {
    display: none !important;
  }
}

.ciydi-mobile-sticky-price {
  display: flex;
  flex-direction: column;
}

.ciydi-mobile-sticky-price .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--ciydi-text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ciydi-mobile-sticky-price .amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
}

.ciydi-mobile-sticky-btn {
  flex-grow: 1;
  max-width: 220px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  background: #0F172A;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.ciydi-mobile-sticky-btn:active {
  transform: scale(0.98);
}

/* ============================================================
   FOOTER MINIMALISTA (MOBILE FIRST)
   ============================================================ */
.ciydi-footer {
  border-top: 1px solid #E2E8F0;
  background: #FFFFFF;
  padding-top: 48px;
  padding-bottom: 32px;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .ciydi-footer {
    padding-top: 64px;
    padding-bottom: 36px;
  }
}

.ciydi-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .ciydi-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (min-width: 1024px) {
  .ciydi-footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 48px;
  }
  .ciydi-footer-grid.has-4-cols {
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  }
  .ciydi-footer-grid.has-3-cols {
    grid-template-columns: 2fr 1.2fr 1.4fr;
  }
}

.ciydi-footer-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ciydi-text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 1024px) {
  .ciydi-footer-col-title {
    margin-bottom: 16px;
  }
}

.ciydi-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ciydi-footer-link {
  color: var(--ciydi-text-secondary);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.ciydi-footer-link:hover {
  color: #0F172A;
}

.ciydi-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #F1F5F9;
  font-size: 0.85rem;
  color: var(--ciydi-text-muted);
}

@media (min-width: 768px) {
  .ciydi-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding-top: 28px;
    font-size: 0.875rem;
  }
}

/* Modal de Vídeo Tráiler */
.ciydi-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (min-width: 768px) {
  .ciydi-modal-backdrop {
    padding: 24px;
  }
}

.ciydi-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ciydi-modal-content {
  width: 100%;
  max-width: 840px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .ciydi-modal-content {
    border-radius: var(--radius-lg);
  }
}

.ciydi-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}

.ciydi-modal-close:hover {
  background: #E2E8F0;
}

/* ============================================================
   AJUSTES RESPONSIVOS AVANZADOS (MOBILE FIRST & SENIOR POLISH)
   ============================================================ */

/* Header compacto en Scroll */
.ciydi-header-wrapper.scrolled {
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

@media (min-width: 1024px) {
  .ciydi-header-wrapper.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Evitar desborde horizontal general en cualquier dispositivo */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Corrección de padding en tarjetas para pantallas pequeñas */
@media (max-width: 640px) {
  .ciydi-glass-card {
    padding: 20px 16px !important;
  }
  .ciydi-hero-floating-glass {
    padding: 18px 16px;
  }
}

/* Acordeón de Temario en Móvil */
@media (max-width: 640px) {
  .ciydi-accordion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }
  .ciydi-accordion-header > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .ciydi-accordion-header > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px dashed #E2E8F0;
  }
  .ciydi-lesson-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 0;
  }
}

/* Botones de acción del Hero en pantallas muy angostas */
@media (max-width: 480px) {
  .ciydi-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .ciydi-hero-actions .ciydi-btn {
    width: 100%;
    justify-content: center;
  }
  .ciydi-stats-strip {
    gap: 10px;
    padding: 16px 12px;
  }
  .ciydi-stat-number {
    font-size: 1.35rem;
  }
  .ciydi-stat-label {
    font-size: 0.75rem;
  }
}

/* Barra fija inferior de compra en pantallas móviles pequeñas */
@media (max-width: 380px) {
  .ciydi-mobile-sticky-bar {
    padding: 8px 12px;
    gap: 8px;
  }
  .ciydi-mobile-sticky-price .amount {
    font-size: 1.15rem;
  }
  .ciydi-mobile-sticky-btn {
    font-size: 0.8125rem;
    height: 40px;
    padding: 0 12px;
  }
}

/* Pie de tarjeta de curso en pantallas angostas */
@media (max-width: 420px) {
  .ciydi-course-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 16px !important;
  }
  .ciydi-course-footer .ciydi-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .ciydi-course-body {
    padding: 16px !important;
  }
}

/* In-Company y Acción Corporativa en Móvil */
@media (max-width: 640px) {
  .ciydi-incompany-card {
    padding: 28px 18px !important;
  }
  .ciydi-incompany-action-box {
    padding: 20px 16px !important;
  }
  .ciydi-card-specs-mini {
    grid-template-columns: 1fr !important;
  }
}

/* Barra de Navegación en teléfonos muy compactos (< 360px) */
@media (max-width: 360px) {
  .ciydi-navbar {
    padding: 4px 8px !important;
    gap: 6px !important;
  }
  .ciydi-brand {
    font-size: 1.05rem !important;
    gap: 6px !important;
  }
  .ciydi-brand-logo-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .ciydi-nav-wa-icon-mobile,
  .ciydi-cart-trigger,
  .ciydi-mobile-toggle {
    width: 36px !important;
    height: 36px !important;
  }
}

.ciydi-meta-sep {
  color: #CBD5E1;
  user-select: none;
  display: inline-block;
}

@media (max-width: 640px) {
  .ciydi-meta-sep {
    display: none;
  }
}

/* ============================================================
   ESTILOS MINIMALISTAS INDUSTRIALES CIYDI (LANDING SENCILLA Y PERFECTA)
   ============================================================ */

.ciydi-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 18px;
}

.ciydi-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CC4D09;
  display: inline-block;
}

.ciydi-hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
}

.ciydi-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
}

.ciydi-hero-technical-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.ciydi-card-top-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ciydi-tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(204, 77, 9, 0.08);
  border: 1px solid rgba(204, 77, 9, 0.22);
  color: #CC4D09;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ciydi-tech-hours {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0F172A;
}

.ciydi-hero-blueprint-box {
  height: 160px;
  background: #0F172A;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: #FFFFFF;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.ciydi-blueprint-software-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-family: monospace;
  color: #FF8542;
  background: rgba(204, 77, 9, 0.22);
  border: 1px solid rgba(204, 77, 9, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

.ciydi-blueprint-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ciydi-hero-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.ciydi-hero-card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 16px;
}

.ciydi-card-specs-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.ciydi-mini-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ciydi-spec-k {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: #64748B;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ciydi-spec-v {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0F172A;
}

.ciydi-card-footer-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
}

.ciydi-price-sub {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: #64748B;
}

.ciydi-price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
}

.ciydi-price-val small {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
}

/* Rutas Técnicas de Especialización */
.ciydi-routes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .ciydi-routes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ciydi-routes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ciydi-route-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.ciydi-route-card:hover {
  border-color: #CC4D09;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(204, 77, 9, 0.15);
}

.ciydi-route-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ciydi-route-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.ciydi-route-software {
  font-size: 0.75rem;
  font-weight: 600;
  color: #CC4D09;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ciydi-route-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.ciydi-route-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ciydi-route-link:hover {
  color: #CC4D09;
}

/* El Estándar CIYDI (4 Pilares) */
.ciydi-standard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 768px) {
  .ciydi-standard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .ciydi-standard-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ciydi-standard-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.ciydi-standard-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #CC4D09;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.ciydi-standard-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.ciydi-standard-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

/* Sección In-Company para Empresas */
.ciydi-incompany-card {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  margin-top: 24px;
}
@media (min-width: 1024px) {
  .ciydi-incompany-card {
    padding: 56px 48px;
  }
}

.ciydi-incompany-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 1024px) {
  .ciydi-incompany-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.ciydi-incompany-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.ciydi-incompany-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 24px;
  max-width: 600px;
}

.ciydi-incompany-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ciydi-incompany-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #E2E8F0;
}

.ciydi-incompany-action-box {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

/* Preguntas Frecuentes (FAQ) */
.ciydi-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 768px) {
  .ciydi-faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ciydi-faq-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 24px;
}

.ciydi-faq-q {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  line-height: 1.35;
}

.ciydi-faq-a {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

/* Thumbnail elegante para cursos en catálogo */
.ciydi-course-blueprint-thumb {
  width: 100%;
  height: 100%;
  background: #0F172A;
  color: #FFFFFF;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

.ciydi-course-deliverables-strip {
  font-size: 0.75rem;
  color: #64748B;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* ============================================================
   UI/UX V2: BOTONES DE CATEGORÍAS & ESPECIALIDADES DE CURSOS
   ============================================================ */

/* Badges de confianza de la Academia */
.ciydi-catalog-trust-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ciydi-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

/* Barra de Conmutación de Vistas (Especialidades vs Catálogo) */
.ciydi-catalog-view-switch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.ciydi-view-tabs {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid #E2E8F0;
  gap: 4px;
}

.ciydi-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748B;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ciydi-view-tab:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.7);
}

.ciydi-view-tab.is-active {
  color: #0F172A;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid #CBD5E1;
}

/* Grid de Categorías como Botones UI/UX */
.ciydi-categories-btn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 640px) {
  .ciydi-categories-btn-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

@media (min-width: 1024px) {
  .ciydi-categories-btn-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* TARJETA-BOTÓN DE ESPECIALIDAD INDUSTRIAL */
.ciydi-category-btn-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ciydi-category-btn-card:hover {
  transform: translateY(-4px);
  border-color: #CC4D09;
  box-shadow: 0 16px 32px -8px rgba(204, 77, 9, 0.2), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* Marco Limpio para la Imagen (Sin Viñeta ni Sombras Oscuras) */
.ciydi-category-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ciydi-category-media-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #FFFFFF;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ciydi-category-btn-card:hover .ciydi-category-media-img {
  transform: scale(1.03);
}

/* Eliminación total de degradados oscuros sobre las portadas */
.ciydi-category-media-vignette {
  display: none !important;
}

/* Eliminación de píldoras flotantes sobre la imagen */
.ciydi-category-badges-layer {
  display: none !important;
}

.ciydi-category-glass-pill {
  display: none !important;
}

/* Cuerpo de la Tarjeta */
.ciydi-category-card-content {
  padding: 18px 8px 6px 8px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ciydi-category-software-line {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ciydi-cat-meta-label {
  color: #CC4D09;
  font-weight: 700;
  margin-right: 4px;
}

.ciydi-cat-meta-value {
  color: #475569;
  font-weight: 600;
}

.ciydi-category-tech-pills {
  display: none !important;
}

.ciydi-tech-pill {
  display: none !important;
}

.ciydi-category-title-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}

.ciydi-category-btn-card:hover .ciydi-category-title-text {
  color: #CC4D09;
}

.ciydi-category-desc-text {
  font-size: 0.84375rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

/* Barra de Metadatos de Confianza (Conteo + STPS) */
/* Barra de Metadatos de Confianza (Conteo) */
.ciydi-category-card-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.75rem;
  transition: all 0.25s ease;
}

.ciydi-category-btn-card:hover .ciydi-category-card-meta-bar {
  background: #FFF7ED;
  border-color: rgba(204, 77, 9, 0.2);
}

.ciydi-cat-meta-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 600;
}

.ciydi-cat-meta-count svg {
  color: #64748B;
}

.ciydi-cat-meta-stps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9A3412;
  background: rgba(204, 77, 9, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  display: none !important;
}

.ciydi-cat-meta-stps svg {
  color: #CC4D09;
}

/* BOTÓN DE ACCIÓN PROTAGONISTA DENTRO DE LA TARJETA (SÓLIDO CORPORATIVO CIYDI) */
.ciydi-category-primary-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-radius: 10px;
  background: #CC4D09;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(204, 77, 9, 0.25);
}

.ciydi-btn-arrow-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.ciydi-category-btn-card:hover .ciydi-category-primary-btn {
  background: #A63B04;
  box-shadow: 0 8px 22px rgba(204, 77, 9, 0.4);
}

.ciydi-category-btn-card:hover .ciydi-btn-arrow-bubble {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.32);
}

/* Banner Inferior B2B y Ayuda */
.ciydi-catalog-help-banner {
  margin-top: 48px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
}

.ciydi-help-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 680px;
}

.ciydi-help-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0F172A;
  color: #FF8542;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.ciydi-help-banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.ciydi-help-banner-desc {
  font-size: 0.84375rem;
  color: #64748B;
  margin: 0;
  line-height: 1.45;
}

.ciydi-help-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ==========================================================================
   CIYDI PRO - CENTRO DE ASESORES E INGENIEROS ESPECIALISTAS (MODAL & TRIGGER)
   ========================================================================== */
.ciydi-advisor-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204, 77, 9, 0.08);
  border: 1px solid rgba(204, 77, 9, 0.25);
  color: #CC4D09;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.ciydi-advisor-header-btn:hover {
  background: #CC4D09;
  border-color: #CC4D09;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(204, 77, 9, 0.25);
  transform: translateY(-1px);
}

.ciydi-live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.ciydi-live-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: inherit;
  opacity: 0.75;
  animation: ciydiPulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ciydiPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Modal Backdrop */
.ciydi-advisors-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ciydi-advisors-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.ciydi-advisors-modal-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 28px 32px;
  position: relative;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ciydi-advisors-modal-backdrop.is-open .ciydi-advisors-modal-container {
  transform: translateY(0) scale(1);
}

.ciydi-advisors-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ciydi-advisors-close:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

.ciydi-advisors-header {
  text-align: center;
  margin-bottom: 28px;
}

.ciydi-advisors-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.ciydi-advisors-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.ciydi-advisors-desc {
  font-size: 0.9375rem;
  color: #64748B;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.ciydi-advisors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .ciydi-advisors-grid {
    grid-template-columns: 1fr;
  }
}

.ciydi-advisor-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.ciydi-advisor-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
  background: #FFFFFF;
}

.ciydi-advisor-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ciydi-advisor-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.ciydi-advisor-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.ciydi-advisor-status-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #FFFFFF;
}

.ciydi-advisor-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 2px 0;
}

.ciydi-advisor-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #E2E8F0;
  color: #334155;
}

.ciydi-advisor-spec {
  font-size: 0.8125rem;
  color: #64748B;
  margin: 0 0 16px 0;
  line-height: 1.45;
  flex-grow: 1;
}

.ciydi-advisor-wa-btn {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 14px;
  width: 100%;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ciydi-advisor-wa-btn:hover {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ciydi-advisors-footer {
  border-top: 1px solid #E2E8F0;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: #64748B;
}

.ciydi-advisors-footer-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ciydi-advisors-footer-phone a {
  color: #CC4D09;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   CIYDI PRO - SLIDER & CARRUSEL DE PORTADA
   ========================================================================== */
.ciydi-home-slider-section {
  position: relative;
  background: #0F172A;
  color: #F8FAFC;
  overflow: hidden;
}

.ciydi-slider-wrapper {
  position: relative;
  min-height: 520px;
}

.ciydi-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  display: flex;
  align-items: center;
}

.ciydi-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ciydi-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.ciydi-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 55%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 1;
}

.ciydi-slide-inner {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}

.ciydi-slide-content {
  max-width: 660px;
}

.ciydi-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204, 77, 9, 0.16);
  border: 1px solid rgba(204, 77, 9, 0.45);
  color: #FF8542;
  font-size: 0.78125rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.ciydi-slide-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  margin: 0 0 16px 0;
  letter-spacing: -0.025em;
}

@media (max-width: 768px) {
  .ciydi-slide-title {
    font-size: 1.65rem;
  }
  .ciydi-slider-wrapper {
    min-height: 440px;
  }
}

.ciydi-slide-desc {
  font-size: 1rem;
  color: #CBD5E1;
  line-height: 1.55;
  margin: 0 0 24px 0;
}

.ciydi-slide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ciydi-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ciydi-slider-arrow:hover {
  background: #CC4D09;
  border-color: #CC4D09;
  transform: translateY(-50%) scale(1.05);
}

.ciydi-slider-prev {
  left: 20px;
}

.ciydi-slider-next {
  right: 20px;
}

.ciydi-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.ciydi-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ciydi-slider-dot.is-active {
  width: 28px;
  background: #CC4D09;
}

/* Imagen Destacada del Hero */
.ciydi-hero-image-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: #1E293B;
}

.ciydi-hero-custom-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   CIYDI PRO - BOTÓN FLOTANTE GLOBAL DE WHATSAPP / CHAT CON ASESOR
   ========================================================================== */
.ciydi-floating-wa-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1), right 0.28s ease, transform 0.2s ease;
}

.ciydi-floating-wa-wrap.is-left {
  right: auto;
  left: 24px;
}

.ciydi-floating-wa-tooltip {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  white-space: nowrap;
}

.ciydi-floating-wa-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.ciydi-floating-wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

/* En dispositivos móviles y tablets (< 1024px) */
@media (max-width: 1023px) {
  .ciydi-floating-wa-tooltip {
    display: none !important;
  }

  .ciydi-floating-wa-wrap {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    right: 16px;
  }

  .ciydi-floating-wa-wrap.is-left {
    left: 16px;
    right: auto;
  }

  .ciydi-floating-wa-btn {
    width: 48px;
    height: 48px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  }

  .ciydi-floating-wa-btn svg {
    width: 24px;
    height: 24px;
  }

  /* RESUELVE LA SUPERPOSICIÓN EN MÓVILES:
     En páginas de cursos (single product) o donde exista la barra sticky móvil (.ciydi-mobile-sticky-bar),
     el botón flotante de chat se eleva automáticamente por encima de la barra de compra
     para NUNCA bloquear el botón de inscripción ("Inscribirme al curso") ni el precio. */
  body.single-product .ciydi-floating-wa-wrap,
  body.ciydi-has-mobile-sticky .ciydi-floating-wa-wrap,
  body:has(.ciydi-mobile-sticky-bar) .ciydi-floating-wa-wrap {
    bottom: calc(78px + env(safe-area-inset-bottom, 12px)) !important;
  }
}


