/* =====================================================
       TOKENS — Paleta y variables del módulo Academia
       ===================================================== */
    :root {
      --black:    #000000;
      --dark:     #0A0A0A;
      --dark2:    #111111;
      --dark3:    #181818;
      --gold:     #C9A84C;
      --gold2:    #F0C96E;
      --violet:   #7C3AED;
      --violet2:  #A78BFA;
      --white:    #FFFFFF;
      --off:      #F8F8F8;
      --muted:    #555;
      --muted2:   #888;
      --border:   rgba(255,255,255,0.07);
      --border-g: rgba(201,168,76,0.2);
      --ff-d: 'Cormorant SC', serif;
      --ff-b: 'Cormorant Garamond', serif;
      --ease: cubic-bezier(.4,0,.2,1);
    }

    /* =====================================================
       RESET — Normaliza herencias del tema global
       ===================================================== */
    .av-page *, .av-page *::before, .av-page *::after {
      box-sizing: border-box; margin: 0; padding: 0;
    }

    /* =====================================================
       PÁGINA — Fondo negro total, fuente base
       ===================================================== */
    .av-page {
      background: var(--black);
      color: var(--white);
      font-family: var(--ff-b);
      overflow-x: hidden;
      min-height: 100vh;
    }

    /* =====================================================
       CANVAS — Partículas orbitales de fondo animado
       ===================================================== */
    #av-canvas {
      position: fixed; inset: 0; z-index: 0; pointer-events: none;
    }

/* =====================================================
   HERO — Sección de entrada con imagen de fondo,
   typewriter, ventajas, botones y estadísticas
   ===================================================== */

.av-hero {
  position: relative;
  z-index: 1;
  isolation: isolate;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 0 6vw;
  overflow: hidden;

  color: var(--white);
  background-color: #07070b;
  background-image: url('/src/components/assets/images/academy/iqnet-ltd-academy/fondo-cursos.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* Capa oscura para mantener la legibilidad */
.av-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 9, 0.97) 0%,
      rgba(5, 5, 9, 0.91) 34%,
      rgba(5, 5, 9, 0.70) 66%,
      rgba(5, 5, 9, 0.46) 100%
    );
}

/* Resplandor violeta y dorado decorativo */
.av-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 48% 8%,
      rgba(124, 58, 237, 0.18) 0%,
      transparent 48%
    ),
    radial-gradient(
      circle at 84% 72%,
      rgba(201, 168, 76, 0.13) 0%,
      transparent 31%
    ),
    linear-gradient(
      to bottom,
      transparent 52%,
      rgba(4, 4, 8, 0.48) 100%
    );
}

/* Contenedor principal */
.av-hero__inner {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Refuerzo visual detrás del texto */
.av-hero__inner::before {
  content: '';
  /*position: absolute;*/
  z-index: -1;

  top: -45px;
  right: 38%;
  bottom: -45px;
  left: -45px;

  border-radius: 28px;

  background:
    linear-gradient(
      90deg,
      rgba(6, 6, 11, 0.54) 0%,
      rgba(6, 6, 11, 0.27) 72%,
      transparent 100%
    );

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Etiqueta superior */
.av-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 1.5rem;

  font-family: var(--ff-d);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--violet2);

  opacity: 0;
  animation: avUp 0.6s var(--ease) 0.1s forwards;
}

.av-eyebrow::before {
  content: '';
  display: block;

  width: 28px;
  height: 1px;

  background: var(--violet);
}

/* Título principal */
.av-hero__title {
  margin: 0;

  font-family: var(--ff-d);
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;

  opacity: 0;
  animation: avUp 0.8s var(--ease) 0.25s forwards;
}

.av-hero__title > span {
  display: block;
}

.av-hero__title .line-gold {
  color: var(--gold);
}

.av-hero__title .line-dim {
  color: rgba(255, 255, 255, 0.28);
}

/* Typewriter */
.av-hero__typerow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 2.5rem;

  opacity: 0;
  animation: avUp 0.7s var(--ease) 0.5s forwards;
}

.av-hero__typerow span {
  font-family: var(--ff-b);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted2);
}

#av-typewriter {
  min-width: 2ch;
  padding-right: 3px;

  font-family: var(--ff-d);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);

  border-right: 2px solid var(--gold);
  animation: caretBlink 0.85s step-end infinite;
}

@keyframes caretBlink {
  50% {
    border-color: transparent;
  }
}

/* Descripción */
.av-hero__desc {
  max-width: 520px;
  margin-top: 2rem;

  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
  color: var(--muted2);

  opacity: 0;
  animation: avUp 0.7s var(--ease) 0.65s forwards;
}

/* Ventajas */
.av-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 2rem;

  opacity: 0;
  animation: avUp 0.7s var(--ease) 0.8s forwards;
}

.av-pill {
  padding: 0.35rem 1rem;

  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 20px;

  background: rgba(201, 168, 76, 0.07);

  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.68);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* Botones */
.av-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 2.5rem;

  opacity: 0;
  animation: avUp 0.7s var(--ease) 0.95s forwards;
}

.av-cta-primary,
.av-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 52px;
  padding: 1rem 2rem;

  font-family: var(--ff-d);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;

  cursor: pointer;
}

.av-cta-primary {
  position: relative;
  overflow: hidden;

  border: none;
  background: var(--gold);
  color: var(--black);

  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.av-cta-primary:hover {
  background: var(--gold2);
  transform: translateY(-2px);
}

.av-cta-primary svg {
  transition: transform 0.3s var(--ease);
}

.av-cta-primary:hover svg {
  transform: translateX(4px);
}

.av-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 5, 9, 0.30);
  color: var(--white);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    border-color 0.3s,
    color 0.3s,
    background 0.3s,
    transform 0.3s var(--ease);
}

.av-cta-secondary:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.07);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Estadísticas laterales */
.av-hero__stats {
  position: absolute;
  z-index: 2;

  top: 50%;
  right: 0;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  gap: 1px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 6, 11, 0.46);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  opacity: 0;
  animation: avUp 0.8s var(--ease) 1.1s forwards;
}

.av-stat {
  min-width: 185px;
  padding: 1.6rem 2.2rem;

  border-left: 1px solid var(--border-g);
  background: rgba(255, 255, 255, 0.025);

  text-align: center;
}

.av-stat__n {
  display: block;

  font-family: var(--ff-d);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
}

.av-stat__l {
  display: block;

  margin-top: 0.2rem;

  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
}

/* Indicador de scroll */
.av-scroll-hint {
  position: absolute;
  z-index: 2;

  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  opacity: 0;
  animation: avUp 0.6s var(--ease) 1.4s forwards;
}

.av-scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.av-scroll-hint__line {
  width: 1px;
  height: 48px;

  background: linear-gradient(
    to bottom,
    var(--gold),
    transparent
  );

  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }

  50% {
    transform: scaleY(0.6);
    opacity: 1;
  }
}

/* Animación de entrada */
@keyframes avUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   TABLET
   ===================================================== */
@media (max-width: 900px) {
  .av-hero {
    min-height: auto;

    padding:
      120px
      6vw
      225px;

    background-position: 62% center;
  }

  .av-hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(5, 5, 9, 0.97) 0%,
        rgba(5, 5, 9, 0.89) 55%,
        rgba(5, 5, 9, 0.60) 100%
      );
  }

  .av-hero__inner::before {
    right: 5%;
  }

  .av-hero__stats {
    top: auto;
    right: 6vw;
    bottom: 58px;
    left: 6vw;

    transform: none;
    flex-direction: row;
  }

  .av-stat {
    flex: 1;
    min-width: 0;
    padding: 1.3rem 1rem;

    border-left: 0;
    border-top: 1px solid var(--border-g);
  }

  .av-stat + .av-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .av-scroll-hint {
    display: none;
  }
}

/* =====================================================
   MÓVIL
   ===================================================== */
@media (max-width: 640px) {
  .av-hero {
    padding:
      105px
      20px
      315px;

    background-position: 68% center;
  }

  .av-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(5, 5, 9, 0.96) 0%,
        rgba(5, 5, 9, 0.82) 50%,
        rgba(5, 5, 9, 0.97) 100%
      );
  }

  .av-hero::after {
    background:
      radial-gradient(
        circle at 50% 15%,
        rgba(124, 58, 237, 0.14),
        transparent 42%
      ),
      linear-gradient(
        to bottom,
        transparent 45%,
        rgba(4, 4, 8, 0.60) 100%
      );
  }

  .av-hero__inner::before {
    display: none;
  }

  .av-hero__title {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
    line-height: 0.92;
  }

  .av-hero__typerow {
    margin-top: 2rem;
  }

  .av-hero__desc {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .av-hero__ctas {
    flex-direction: column;
  }

  .av-cta-primary,
  .av-cta-secondary {
    width: 100%;
  }

  .av-hero__stats {
    right: 20px;
    bottom: 34px;
    left: 20px;

    flex-direction: column;
  }

  .av-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 18px;
    border-top: 0;
  }

  .av-stat + .av-stat {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .av-stat__n {
    font-size: 1.75rem;
  }

  .av-stat__l {
    max-width: 130px;
    margin-top: 0;
    text-align: right;
  }
}

    
    /* =====================================================
       SECCIÓN CURSOS — Filtros + grid de tarjetas
       ===================================================== */
    .av-courses {
      position: relative; z-index: 1;
      padding: 8vh 6vw;
      max-width: 1280px; margin: 0 auto;
    }

    /* Cabecera de sección */
    .av-section-head {
      display: flex; align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem;
    }
    .av-section-tag {
      font-family: var(--ff-d); font-size: 11px;
      letter-spacing: .28em; text-transform: uppercase;
      color: var(--violet2);
      display: flex; align-items: center; gap: 10px;
      margin-bottom: .8rem;
    }
    .av-section-tag::before {
      content: ''; width: 20px; height: 1px;
      background: var(--violet);
    }
    .av-section-title {
      font-family: var(--ff-d);
      font-size: clamp(1.8rem, 3.5vw, 3rem);
      font-weight: 800; line-height: 1;
    }

    /* Filtros de categoría */
    .av-filters {
      display: flex; flex-wrap: wrap; gap: 8px;
    }
    .av-filter {
      padding: .4rem 1.1rem;
      border: 1px solid var(--border);
      border-radius: 30px;
      font-size: .75rem; letter-spacing: .05em;
      color: var(--muted2); background: transparent;
      cursor: pointer;
      transition: all .25s var(--ease);
    }
    .av-filter:hover { border-color: var(--gold); color: var(--gold); }
    .av-filter.active {
      background: var(--gold); border-color: var(--gold);
      color: var(--black); font-weight: 600;
    }

    /* Grid de cursos — auto-fill responsivo */
    .av-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 28px;                     /* antes: 1px */
      background: transparent;       /* antes: rgba(255,255,255,.05) */
    }

    /* =====================================================
       TARJETA DE CURSO — Glassmorphism oscuro con hover 3D
       ===================================================== */
    .av-card {
      background: var(--black);
      padding: 2rem;
      position: relative; overflow: hidden;
      cursor: pointer;
      transition: background .3s var(--ease), transform .3s var(--ease);
      display: flex; flex-direction: column;
      opacity: 0; transform: translateY(20px);
      animation: cardReveal .5s var(--ease) forwards;
      border-radius: 14px;           /* antes no tenía radius, quedaban en bloque */
      background: #0C0C0C;           /* leve diferencia del negro puro de fondo, para que se separe visualmente */
      overflow: hidden;               /* para que el cover respete el radius */
    }
    .av-card:hover {
      background: #101010;
      border-color: rgba(201,168,76,.25);
      transform: translateY(-3px);
    }
    /* Línea superior de color — identifica modalidad */
    .av-card__bar {
      position: absolute; top: 0; left: 0; right: 0;
      height: 2px;
    }
.av-card__cover { border-radius: 14px 14px 0 0; }

.av-card__body {
  padding: 1.8rem 1.8rem 1.9rem;   /* antes: 1.6rem 2rem 2rem */
}

.av-card__code { margin-bottom: .35rem; display:block; }
.av-card__iso { margin-bottom: .7rem; }              /* antes .5rem */
.av-card__title { margin-bottom: 1.1rem; }            /* antes 1rem, separa más del docente */
.av-card__docente { margin-bottom: 1.1rem; }          /* antes .8rem */
.av-card__desc { margin-bottom: 1.7rem; }             /* antes 1.5rem */
.av-card__meta { margin-bottom: 1.3rem; row-gap: .5rem; }
.av-card__dates { margin-bottom: 1.4rem; }            /* antes 1.2rem */
.av-card__footer { padding-top: 1.4rem; }             /* antes 1.2rem */

    /* Badge de modalidad */
    .av-card__badge {
      display: inline-flex; align-items: center; gap: 6px;
      padding: .25rem .75rem;
      border-radius: 20px;
      font-size: .65rem; letter-spacing: .1em;
      text-transform: uppercase; font-weight: 600;
      margin-bottom: 1.4rem; align-self: flex-start;
    }
    .av-card__badge--live   { background: rgba(124,58,237,.15); color: var(--violet2); border: 1px solid rgba(124,58,237,.3); }
    .av-card__badge--online { background: rgba(14,165,233,.12); color: #38BDF8; border: 1px solid rgba(14,165,233,.25); }
    .av-card__badge--cert   { background: rgba(201,168,76,.12); color: var(--gold); border: 1px solid rgba(201,168,76,.25); }

    /* Punto parpadeante en badge LIVE */
    .av-live-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--violet2);
      animation: livePulse 1.4s ease-in-out infinite;
    }
    @keyframes livePulse {
      0%,100% { opacity: 1; transform: scale(1); }
      50% { opacity: .4; transform: scale(.7); }
    }

    /* Norma ISO — texto técnico pequeño */
    .av-card__iso {
      font-size: .68rem; letter-spacing: .14em;
      text-transform: uppercase; color: var(--muted);
      margin-bottom: .5rem;
    }

    /* Título del curso */
    .av-card__title {
      font-family: var(--ff-d);
      font-size: 1.1rem; font-weight: 700;
      line-height: 1.25; color: var(--white);
      margin-bottom: 1rem; flex: 1;
    }

    /* Descripción breve */
    .av-card__desc {
      font-size: .82rem; line-height: 1.6;
      color: var(--muted2); margin-bottom: 1.5rem;
    }

    /* Metadatos: duración, formato */
    .av-card__meta {
      display: flex; gap: 1rem; flex-wrap: wrap;
      margin-bottom: 1.5rem;
    }
    .av-card__meta-item {
      display: flex; align-items: center; gap: 5px;
      font-size: .72rem; color: var(--muted2);
    }
    .av-card__meta-item svg {
      width: 13px; height: 13px;
      stroke: var(--muted); fill: none; stroke-width: 1.8;
    }

    /* Precio + CTA inline */
    .av-card__footer {
      display: flex; align-items: center;
      justify-content: space-between;
      border-top: 1px solid var(--border); padding-top: 1.2rem;
    }
    .av-card__price {
      font-family: var(--ff-d);
      font-size: 1.2rem; font-weight: 800;
      color: var(--gold);
    }
    .av-card__price small {
      font-size: .7rem; font-weight: 400;
      color: var(--muted2); display: block; margin-top: 1px;
    }
    .av-card__cta {
      display: flex; align-items: center; gap: 6px;
      padding: .55rem 1.2rem;
      background: transparent; border: 1px solid rgba(201,168,76,.35);
      color: var(--gold); font-family: var(--ff-d);
      font-size: .72rem; font-weight: 700;
      letter-spacing: .08em; text-transform: uppercase;
      cursor: pointer;
      transition: background .25s, color .25s;
    }
    .av-card__cta:hover { background: var(--gold); color: var(--black); }
    .av-card__cta svg {
      width: 12px; height: 12px;
      stroke: currentColor; fill: none; stroke-width: 2.5;
      transition: transform .2s;
    }
    .av-card__cta:hover svg { transform: translateX(3px); }

    @keyframes cardReveal { to { opacity: 1; transform: translateY(0); } }

    /* =====================================================
       PANEL DE INSCRIPCIÓN — Drawer lateral deslizante
       ===================================================== */
    .av-overlay {
      position: fixed; inset: 0; z-index: 200;
      background: rgba(0,0,0,.75);
      backdrop-filter: blur(4px);
      opacity: 0; pointer-events: none;
      transition: opacity .35s var(--ease);
    }
    .av-overlay.open { opacity: 1; pointer-events: all; }

    .av-drawer {
      position: fixed; top: 0; right: 0; bottom: 0;
      width: min(480px, 100vw);
      background: #080808;
      border-left: 1px solid rgba(201,168,76,.15);
      z-index: 201;
      transform: translateX(100%);
      transition: transform .4s cubic-bezier(.4,0,.2,1);
      overflow: hidden;
      display: flex; flex-direction: column;
    }
    .av-drawer.open { transform: translateX(0); }

    /* Mantiene el contenido desplazable sin mover el overlay de envío. */
    .av-drawer__scroll {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
    }

    /* =====================================================
       FEEDBACK DE INSCRIPCIÓN — Enviando + éxito
       ===================================================== */
    .lot-overlay {
      position: absolute;
      inset: 0;
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      overflow: hidden;
      background: rgba(8, 8, 8, .97);
      text-align: center;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .35s ease, visibility 0s linear .35s;
    }

    .lot-overlay.lot-overlay--show {
      opacity: 1;
      visibility: visible;
      pointer-events: all;
      transition-delay: 0s;
    }

    .lot-overlay-state {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .lot-overlay--sending .lot-overlay-state--sending,
    .lot-overlay--success .lot-overlay-state--success {
      display: flex;
    }

    .lot-spinner {
      width: 52px;
      height: 52px;
      margin-bottom: 20px;
      border: 3px solid rgba(201, 168, 76, .2);
      border-top-color: var(--gold);
      border-radius: 50%;
      animation: lotSpin .8s linear infinite;
    }

    @keyframes lotSpin {
      to { transform: rotate(360deg); }
    }

    .lot-overlay-check {
      width: 72px;
      height: 72px;
      margin-bottom: 20px;
    }

    .lot-check-svg {
      width: 100%;
      height: 100%;
    }

    .lot-check-circle {
      stroke: var(--gold);
      stroke-width: 2;
      stroke-dasharray: 151;
      stroke-dashoffset: 151;
      animation: lotCircle .5s ease-out forwards;
    }

    .lot-check-mark {
      stroke: var(--gold);
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 40;
      stroke-dashoffset: 40;
      animation: lotCheck .35s .45s ease-out forwards;
    }

    @keyframes lotCircle {
      to { stroke-dashoffset: 0; }
    }

    @keyframes lotCheck {
      to { stroke-dashoffset: 0; }
    }

    .lot-overlay-text {
      max-width: 360px;
      margin: 0 0 6px;
      color: var(--white);
      font-family: var(--ff-d);
      font-size: 1.25rem;
      font-weight: 700;
      line-height: 1.25;
    }

    .lot-overlay-sub {
      max-width: 300px;
      margin: 0;
      color: #b8b8b8;
      font-size: .9rem;
      line-height: 1.5;
    }

    /* Bloquea y desenfoca el formulario mientras la petición está activa. */
    .lot-form-card--sending .av-drawer__scroll {
      filter: blur(1px);
      pointer-events: none;
      user-select: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .lot-spinner { animation-duration: 1.6s; }
      .lot-check-circle,
      .lot-check-mark {
        animation: none;
        stroke-dashoffset: 0;
      }
    }

    /* Cabecera del drawer */
    .av-drawer__head {
      padding: 2rem 2rem 1.5rem;
      border-bottom: 1px solid var(--border);
      position: sticky; top: 0;
      background: #080808; z-index: 1;
    }
    .av-drawer__close {
      position: absolute; top: 1.5rem; right: 1.5rem;
      width: 34px; height: 34px;
      background: rgba(255,255,255,.05);
      border: 1px solid var(--border);
      border-radius: 50%; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted2); transition: all .2s;
    }
    .av-drawer__close:hover { background: rgba(255,255,255,.1); color: var(--white); }
    .av-drawer__close svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
    .av-drawer__badge { margin-bottom: .8rem; }
    .av-drawer__course-title {
      font-family: var(--ff-d); font-size: 1.3rem;
      font-weight: 800; line-height: 1.2;
      color: var(--white); padding-right: 3rem;
    }
    .av-drawer__iso {
      font-size: .68rem; letter-spacing: .14em;
      text-transform: uppercase; color: var(--muted);
      margin-top: .4rem;
    }

    /* Cuerpo del drawer — formulario */
    .av-drawer__body { padding: 1.5rem 2rem; flex: 1; }

    /* Grupo de campo */
    .av-dfield {
      margin-bottom: 1.4rem;
    }
    .av-dfield__label {
      display: block;
      font-size: 9px; letter-spacing: .28em;
      text-transform: uppercase; color: var(--muted);
      margin-bottom: .6rem;
    }
    .av-dfield__input,
    .av-dfield__select,
    .av-dfield__textarea {
      width: 100%; background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.08);
      color: var(--white); font-family: var(--ff-b);
      font-size: .9rem; padding: .85rem 1rem;
      outline: none; transition: border-color .25s;
      border-radius: 0;
    }
    .av-dfield__input:focus,
    .av-dfield__select:focus,
    .av-dfield__textarea:focus {
      border-color: var(--gold);
    }
    .av-dfield__input::placeholder,
    .av-dfield__textarea::placeholder { color: #333; }
    .av-dfield__select { appearance: none; cursor: pointer; }
    .av-dfield__select option { background: #111; }
    .av-dfield__textarea { resize: vertical; min-height: 80px; }

    /* Fila de dos columnas */
    .av-drow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Resumen de precio en el drawer */
    .av-drawer__price-box {
      background: rgba(201,168,76,.06);
      border: 1px solid rgba(201,168,76,.18);
      padding: 1rem 1.2rem;
      display: flex; align-items: center;
      justify-content: space-between;
      margin-bottom: 1.5rem;
    }
    .av-drawer__price-label {
      font-size: .75rem; color: var(--muted2);
      letter-spacing: .06em; text-transform: uppercase;
    }
    .av-drawer__price-val {
      font-family: var(--ff-d); font-size: 1.5rem;
      font-weight: 800; color: var(--gold);
    }

    /* Botón de submit */
    .av-drawer__submit {
      width: 100%; padding: 1.1rem;
      background: var(--gold); color: var(--black);
      border: none; cursor: pointer;
      font-family: var(--ff-d); font-weight: 800;
      font-size: .9rem; letter-spacing: .12em;
      text-transform: uppercase;
      position: relative; overflow: hidden;
      transition: background .3s;
    }
    .av-drawer__submit:hover { background: var(--gold2); }

    /* Estado de éxito tras inscripción */
    .av-success {
      display: none; flex-direction: column;
      align-items: center; justify-content: center;
      text-align: center; padding: 3rem 2rem; flex: 1;
    }
    .av-success.show { display: flex; }
    .av-success__icon {
      width: 72px; height: 72px; border-radius: 50%;
      background: rgba(201,168,76,.12);
      border: 1px solid rgba(201,168,76,.3);
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 1.5rem;
    }
    .av-success__icon svg {
      width: 32px; height: 32px;
      stroke: var(--gold); fill: none; stroke-width: 2;
    }
    .av-success__title {
      font-family: var(--ff-d); font-size: 1.5rem;
      font-weight: 800; color: var(--white);
      margin-bottom: .75rem;
    }
    .av-success__msg {
      font-size: .88rem; color: var(--muted2); line-height: 1.7;
    }

    /* =====================================================
       SECCIÓN METODOLOGÍA — Pillars con línea conectora
       ===================================================== */
    .av-method {
      position: relative; z-index: 1;
      padding: 8vh 6vw;
      border-top: 1px solid var(--border);
    }
    .av-method__inner { max-width: 1100px; margin: 0 auto; }
    .av-method__steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0; margin-top: 3rem;
      position: relative;
    }
    .av-method__steps::before {
      content: ''; position: absolute;
      top: 26px; left: 12.5%; right: 12.5%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gold), var(--violet), transparent);
    }
    .av-mstep {
      display: flex; flex-direction: column;
      align-items: center; text-align: center;
      padding: 0 1rem;
    }
    .av-mstep__dot {
      width: 52px; height: 52px; border-radius: 50%;
      background: var(--black);
      border: 1px solid rgba(201,168,76,.3);
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 1.2rem; position: relative; z-index: 1;
      font-family: var(--ff-d); font-size: .75rem;
      font-weight: 700; color: var(--gold);
      transition: all .3s var(--ease);
    }
    .av-mstep:hover .av-mstep__dot {
      background: var(--gold); color: var(--black);
      border-color: var(--gold);
    }
    .av-mstep__title {
      font-family: var(--ff-d); font-size: .85rem;
      font-weight: 700; color: var(--white);
      margin-bottom: .5rem;
    }
    .av-mstep__desc {
      font-size: .75rem; line-height: 1.6; color: var(--muted2);
    }

    /* =====================================================
       CTA FINAL — Franja de conversión
       ===================================================== */
    .av-final-cta {
      position: relative; z-index: 1;
      padding: 10vh 6vw;
      text-align: center;
      border-top: 1px solid var(--border);
      overflow: hidden;
    }
    .av-final-cta::before {
      content: '';
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%,-50%);
      width: 700px; height: 700px;
      background: radial-gradient(ellipse, rgba(124,58,237,.09) 0%, transparent 65%);
      pointer-events: none;
    }
    .av-final-cta__title {
      font-family: var(--ff-d);
      font-size: clamp(2rem, 5vw, 5rem);
      font-weight: 800; line-height: .95;
      letter-spacing: -.02em;
      position: relative;
    }
    .av-final-cta__title em { font-style: normal; color: var(--gold); }
    .av-final-cta__sub {
      font-size: .9rem; color: var(--muted2);
      margin: 1.5rem auto 3rem;
      max-width: 420px; line-height: 1.7;
      position: relative;
    }

    /* =====================================================
       ANIMACIONES DE ENTRADA — Scroll reveal
       ===================================================== */
    .av-reveal {
      opacity: 0; transform: translateY(24px);
      transition: opacity .7s ease, transform .7s ease;
    }
    .av-reveal.visible { opacity: 1; transform: none; }

    @keyframes avUp {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }

    /* =====================================================
       RESPONSIVE — Ajustes móvil
       ===================================================== */
    @media (max-width: 900px) {
      .av-hero__stats { display: none; }
      .av-method__steps { grid-template-columns: repeat(2,1fr); gap: 2rem; }
      .av-method__steps::before { display: none; }
    }
    @media (max-width: 600px) {
      .av-drow { grid-template-columns: 1fr; }
      .av-hero__ctas { flex-direction: column; }
    }
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: var(--black); }
    ::-webkit-scrollbar-thumb { background: #1c1c1c; }
/* Estado del curso */
.av-card__top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.av-card__estado{ display:inline-flex; align-items:center; gap:6px; padding:.25rem .7rem; border-radius:20px; font-size:.62rem; letter-spacing:.08em; text-transform:uppercase; font-weight:600; }
.av-card__estado--green { background:rgba(34,197,94,.12); color:#4ADE80; border:1px solid rgba(34,197,94,.3); }
.av-card__estado--blue  { background:rgba(56,189,248,.12); color:#38BDF8; border:1px solid rgba(56,189,248,.3); }
.av-card__estado--violet{ background:rgba(124,58,237,.15); color:var(--violet2); border:1px solid rgba(124,58,237,.3); }
.av-card__estado--muted { background:rgba(255,255,255,.05); color:var(--muted2); border:1px solid var(--border); }
.av-live-dot--green { background:#4ADE80; }
.av-live-dot--blue   { background:#38BDF8; animation:none; }
.av-live-dot--violet { background:var(--violet2); animation:none; }
.av-live-dot--muted  { background:var(--muted2); animation:none; }

.av-card__code{ font-size:.62rem; letter-spacing:.1em; color:var(--muted); font-family:var(--ff-b); }

.av-card__docente{ display:flex; align-items:center; gap:6px; font-size:.75rem; color:var(--muted2); margin-bottom:.8rem; }
.av-card__docente svg{ width:13px; height:13px; stroke:var(--gold); fill:none; stroke-width:1.8; }

.av-card__meta-item--warn{ color:#F59E0B; }
.av-card__meta-item--warn svg{ stroke:#F59E0B; }

.av-card__dates{ font-size:.68rem; color:var(--muted); margin-bottom:1.2rem; }
.av-card__dates b{ color:var(--muted2); font-weight:600; }

.av-card--closed{ opacity:.5; }
.av-card__cta:disabled{ cursor:not-allowed; opacity:.5; }
.av-card__cta:disabled:hover{ background:transparent; color:var(--gold); }

/* Info grid en el drawer */
.av-drawer__info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:.9rem 1.2rem; margin-bottom:1.5rem; padding-bottom:1.5rem; border-bottom:1px solid var(--border); }
.av-info-item{ display:flex; flex-direction:column; gap:.3rem; }
.av-info-item span{ font-size:.62rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.av-info-item b{ font-size:.82rem; color:var(--white); font-weight:600; }

/* Validación */
.av-tax-select,
.av-country-select {
  position: relative;
  width: 100%;
  margin-bottom: .75rem;
}

.av-tax-current,
.av-country-current {
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 0 .8rem;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--white);
  font-family: var(--ff-d);
  cursor: pointer;
}

.av-tax-current:focus,
.av-country-current:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,.14);
}

.av-tax-label,
.av-country-code {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--white);
}

.av-tax-arrow,
.av-country-arrow {
  color: var(--muted2);
  font-size: .8rem;
}

.av-tax-current img,
.av-tax-option img,
.av-country-current img,
.av-country-option img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
}

.av-tax-dropdown,
.av-country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(280px, 100%);
  max-height: 260px;
  overflow-y: auto;
  background: #111;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 35px rgba(0,0,0,.35);
  z-index: 30;
  display: none;
  padding: 6px;
}

.av-tax-select.is-open .av-tax-dropdown,
.av-country-select.is-open .av-country-dropdown {
  display: block;
}

.av-tax-option,
.av-country-option {
  width: 100%;
  padding: 10px 9px;
  border: none;
  background: transparent;
  color: var(--white);
  font-family: var(--ff-d);
  font-size: .88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  border-radius: 3px;
  text-align: left;
}

.av-tax-option:hover,
.av-country-option:hover {
  background: rgba(201,168,76,.12);
}

.av-tax-option small,
.av-country-option small {
  color: rgba(255,255,255,.65);
  font-size: .76rem;
}

.av-tax-option span,
.av-country-option span {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 480px) {
  .av-tax-current,
  .av-country-current {
    padding: 0 .55rem;
  }

  .av-tax-dropdown,
  .av-country-dropdown {
    width: 100%;
  }
}

.av-dfield--error .av-tax-current,
.av-dfield--error .av-country-current {
  border-color: #F87171;
}

.av-dfield__error{ display:none; font-size:.72rem; color:#F87171; margin-top:.5rem; }
.av-dfield--error .av-dfield__input,
.av-dfield--error .av-dfield__select{ border-color:#F87171; }
.av-dfield--error .av-dfield__error{ display:block; }
/* La card ya no tiene padding general; el cover va a todo el ancho */
.av-card{ padding: 0; }

.av-card__cover{
  position: relative;
  height: 140px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.av-card__cover svg,
.av-card__cover-image{ width:100%; height:100%; display:block; }
.av-card__cover-image{ object-fit:cover; filter:saturate(.9) brightness(.82); transition:transform .4s var(--ease), filter .4s var(--ease); }
.av-card:hover .av-card__cover-image{ transform:scale(1.04); filter:saturate(1) brightness(.92); }

.av-card__cover-icon{
  position: absolute; bottom: 10px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.av-card__cover-icon svg{ width:16px; height:16px; }

/* El badge de estado ahora flota sobre el cover */
.av-card__cover .av-card__estado{
  position: absolute; top: 10px; left: 12px;
  backdrop-filter: blur(4px);
}

.av-card__body{ padding: 1.6rem 2rem 2rem; display: flex; flex-direction: column; flex: 1; }

.av-card__top{ display:none; } /* ya no se usa, el estado vive en el cover */
.av-courses { padding: 10vh 6vw; }         /* antes 8vh */
.av-section-head { margin-bottom: 3.5rem; } /* antes 3rem */
/* =====================================================
   REDISEÑO DE TARJETAS — "más claras y ordenadas"
   Se mantiene la paleta oscura + dorada del sitio, pero con
   más contraste de superficie, mejor jerarquía tipográfica
   y metadatos de duración/modalidad visibles en la tarjeta.
   ===================================================== */
.av-card{
  background: #101010;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
}
.av-card:hover{
  background: #141414;
  border-color: rgba(201,168,76,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.av-card__body{ padding: 1.5rem 1.7rem 1.8rem; gap: 0; }
.av-card__code{ color: var(--gold); opacity: .85; font-weight: 600; }
.av-card__iso{ color: rgba(255,255,255,.5); }
.av-card__title{
  font-size: 1.18rem;
  color: #FBF9F4;
}
.av-card__desc{
  color: rgba(255,255,255,.55);
  margin-bottom: 1.1rem;
}

/* Nueva fila de metadatos: duración y modalidad, siempre visibles */
.av-card__meta{
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.3rem;
}
.av-card__meta .av-card__meta-item{
  display: inline-flex; align-items: center; gap: 6px;
  padding: .3rem .7rem;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  font-size: .7rem; color: rgba(255,255,255,.68);
  letter-spacing: .02em;
}
.av-card__meta .av-card__meta-item svg{
  width: 13px; height: 13px;
  stroke: var(--gold); fill: none; stroke-width: 1.8;
}
.av-card__footer{ border-top: 1px solid rgba(255,255,255,.07); }

/* =====================================================
   DETALLE DEL CURSO DENTRO DEL FORMULARIO
   (detalle integrado en el formulario existente)
   ===================================================== */
.av-drawer__cover{
  position: relative;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #17140A, #0a0a0a);
  border-bottom: 1px solid rgba(201,168,76,.18);
}
.av-drawer__cover img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.9) brightness(.85);
}
.av-drawer__cover::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0) 40%, rgba(8,8,8,.92) 100%);
}

.av-drawer__detalle{
  padding: 0 2rem 1.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.6rem;
}
.av-drawer__detalle-block + .av-drawer__detalle-block{ margin-top: 1.3rem; }
.av-drawer__detalle-title{
  font-family: var(--ff-d);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.av-drawer__detalle-list{
  margin: 0; padding-left: 1.1rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.av-drawer__detalle-list li{
  font-size: .82rem; line-height: 1.55;
  color: rgba(255,255,255,.72);
}

@media (max-width: 640px){
  .av-drawer__cover{ height: 150px; }
  .av-drawer__detalle{ padding: 0 1.3rem 1.3rem; }
}

/* =====================================================
   TEMA CLARO — Fondo marfil + imagen local
   Mantiene el dorado institucional y la estructura existente;
   solo cambia superficies, contraste y tratamiento del fondo.
   ===================================================== */
.av-page {
  background: #f3f0e8;
  color: #28251f;
}

#av-canvas { opacity: .14; }

.av-hero {
  color: #28251f;
  background-color: #e8e3d7;
  background-image: url('/src/components/assets/images/academy/iqnet-ltd-academy/fondo-cursos.png');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center center;
}

.av-hero::before {
  background: linear-gradient(
    90deg,
    rgba(246,243,235,.96) 0%,
    rgba(246,243,235,.88) 35%,
    rgba(246,243,235,.68) 66%,
    rgba(246,243,235,.42) 100%
  );
}

.av-hero::after {
  background:
    radial-gradient(ellipse at 48% 8%, rgba(201,168,76,.18) 0%, transparent 48%),
    radial-gradient(circle at 84% 72%, rgba(124,58,237,.08) 0%, transparent 31%),
    linear-gradient(to bottom, transparent 52%, rgba(228,222,209,.42) 100%);
}

.av-hero__inner::before {
  background: linear-gradient(
    90deg,
    rgba(255,253,248,.72) 0%,
    rgba(255,253,248,.45) 72%,
    transparent 100%
  );
}

.av-hero__title .line-dim { color: rgba(40,37,31,.42); }
.av-hero__typerow span,
.av-hero__desc { color: #716c61; }
.av-pill {
  background: rgba(255,253,248,.62);
  border-color: rgba(151,118,39,.28);
  color: #514b3e;
}
.av-cta-secondary {
  background: rgba(255,253,248,.58);
  border-color: rgba(79,70,51,.28);
  color: #342f26;
}
.av-cta-secondary:hover { background: rgba(201,168,76,.13); }

.av-courses,
.av-method,
.av-final-cta { background: #f3f0e8; }
.av-section-title,
.av-method .av-section-title,
.av-final-cta__title { color: #28251f; }
.av-section-tag { color: #9b7925; }
.av-card {
  background: #fffdf8;
  border-color: rgba(67,58,39,.14);
  box-shadow: 0 10px 28px rgba(70,59,38,.08);
}
.av-card:hover {
  background: #fffefa;
  border-color: rgba(155,121,37,.46);
  box-shadow: 0 18px 40px rgba(70,59,38,.15);
}
.av-card__code { color: #9b7925; }
.av-card__iso { color: #756f63; }
.av-card__title { color: #2f2b23; }
.av-card__desc { color: #6c665b; }
.av-card__meta .av-card__meta-item {
  background: rgba(75,64,42,.055);
  border-color: rgba(75,64,42,.12);
  color: #5f594e;
}
.av-card__footer { border-top-color: rgba(75,64,42,.14); }

.av-drawer {
  background: #fffdf8;
  border-left-color: rgba(155,121,37,.28);
}
.av-drawer__head { background: #fffdf8; border-bottom-color: rgba(75,64,42,.14); }
.av-drawer__course-title,
.av-drawer__info-grid .av-info-item b,
.av-drawer__body { color: #2f2b23; }
.av-drawer__iso,
.av-dfield__label,
.av-info-item span { color: #787064; }
.av-drawer__close {
  background: rgba(75,64,42,.06);
  border-color: rgba(75,64,42,.14);
  color: #70685b;
}
.av-drawer__close:hover { background: rgba(75,64,42,.12); color: #28251f; }
.av-drawer__info-grid { border-bottom-color: rgba(75,64,42,.14); }
.av-dfield__input,
.av-dfield__select,
.av-dfield__textarea,
.av-tax-current,
.av-country-current {
  background: #f8f5ed;
  border-color: rgba(75,64,42,.16);
  color: #302c24;
}
.av-dfield__input::placeholder,
.av-dfield__textarea::placeholder { color: #9a9387; }
.av-tax-dropdown,
.av-country-dropdown { background: #fffdf8; border-color: rgba(75,64,42,.16); }
.av-tax-option,
.av-country-option { color: #302c24; }
.av-drawer__price-box { background: rgba(201,168,76,.10); }
.av-drawer__detalle { border-bottom-color: rgba(75,64,42,.14); }
.av-drawer__detalle-list li { color: #625c51; }
.av-drawer__detalle-title { color: #9b7925; }
.av-method { border-top-color: rgba(75,64,42,.14); }
.av-mstep__dot { background: #fffdf8; }
.av-mstep__title { color: #2f2b23; }
.av-mstep__desc { color: #756e63; }
.av-final-cta { border-top-color: rgba(75,64,42,.14); }