/* ==========================================================================
   TEMA CAPACITACIÓN & LIDERAZGO FEMENINO - ESTILOS ULTRA-OPTIMIZADOS (MAGIC UI)
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Plus Jakarta Sans', Georgia, serif;

  /* AAC Grupo Empresarial Institutional Tokens */
  --color-primary: #0F2C59;          /* Azul Profundo / AAC Orden */
  --color-primary-dark: #0A1E3D;     /* Navy Oscuro */
  --color-primary-light: #1A4280;    /* Navy Claro */
  --color-secondary: #841A2B;        /* Rojo Vino / AAC Desarrollo & Competencias */
  --color-secondary-dark: #66101E;   /* Vino Oscuro */
  --color-secondary-light: #A3263B;  /* Vino Claro */
  --color-vino: #841A2B;
  --color-accent: #C59B27;           /* Dorado Institucional */
  --color-gold: #C59B27;
  --color-gold-light: #DFBA53;
  --color-marfil: #F9F7F2;           /* Fondo Marfil / Beige Suave */
  --color-marfil-card: #FAF8F5;
  --color-marfil-alt: #F4EFE6;
  --color-border: #E8E2D5;
  --color-plomo: #2C3539;            /* Texto Plomo / Gris Pizarra (No negro puro) */
  --color-plomo-light: #485358;
  --color-plomo-muted: #64748B;
  --color-text-main: #2C3539;
  --color-text-muted: #64748B;
  --glass-bg: rgba(250, 248, 245, 0.88);
  --glass-border: rgba(232, 226, 213, 0.85);

  /* Aliases para retrocompatibilidad */
  --color-rose-gold: #C59B27;
  --color-rose-light: #FAF8F5;
  --color-rose-accent: #DFBA53;
  --color-dark-bg: #0A1E3D;
  --color-dark-card: #0F2C59;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.theme-tema_capacitacion,
.fem-landing {
  font-family: var(--font-sans);
  background-color: #F9F7F2;
  color: var(--color-text-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ocultar avisos de depuración en la portada pública */
.fem-landing .notifytiny,
.fem-landing .debuggingmessage {
  display: none !important;
}

/* Accesibilidad limpia para enlaces skip-to-content de Moodle */
.fem-landing .sr-only,
.fem-landing a[href="#maincontent"],
.fem-landing a[href*="main-content"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fem-landing a[href="#maincontent"]:focus,
.fem-landing a[href*="main-content"]:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  background: #0F2C59;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* Reset de listas */
.fem-landing ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* NAVBAR FLOTANTE GLASSMORPHISM */
.fem-navbar {
  position: fixed;
  top: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1260px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: 9999px;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(15, 44, 89, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fem-navbar:hover {
  box-shadow: 0 14px 40px rgba(15, 44, 89, 0.14);
  border-color: rgba(197, 155, 39, 0.55);
}

.fem-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 2.25rem;
}

.fem-brand-text strong {
  color: #841A2B;
  font-weight: 800;
}

.fem-brand-badge {
  background: linear-gradient(135deg, #1A4280, #C59B27);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.4);
  flex-shrink: 0;
}

.fem-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.fem-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.3vw, 1.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

@media (max-width: 980px) {
  .fem-nav-container,
  .fem-nav-links {
    display: none;
  }
}

.fem-nav-links li {
  flex-shrink: 0;
}

.fem-nav-links a {
  text-decoration: none;
  color: #4B5563;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
}

.fem-nav-links a:hover {
  color: var(--color-primary);
  background: rgba(197, 155, 39, 0.08);
}

.fem-nav-link-highlight {
  color: #841A2B !important;
  font-weight: 700 !important;
  background: rgba(132, 26, 43, 0.12) !important;
  border: 1px solid rgba(197, 155, 39, 0.3);
}

.fem-nav-link-highlight:hover {
  background: rgba(132, 26, 43, 0.22) !important;
}

.fem-nav-icon-svg {
  color: #841A2B;
  flex-shrink: 0;
}

.fem-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 2.25rem;
}

.fem-btn-login {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.fem-btn-login:hover {
  background: rgba(15, 44, 89, 0.08);
  color: var(--color-primary-dark);
}

.fem-btn-cta {
  background: linear-gradient(135deg, #0F2C59, #1A4280 60%, #C59B27);
  color: white !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 44, 89, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.fem-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 155, 39, 0.45);
}

/* HERO SECTION CON GRADIENTE Y LAZO ROSA ANIMADO */
.fem-hero-split-section {
  position: relative;
  padding: 8.5rem 1.5rem 5rem;
  background: radial-gradient(circle at 20% 20%, rgba(132, 26, 43, 0.12) 0%, rgba(197, 155, 39, 0.04) 35%, transparent 70%),
              radial-gradient(circle at 80% 25%, rgba(26, 66, 128, 0.08) 0%, transparent 50%),
              #F9F7F2;
  overflow: hidden;
  z-index: 1;
}

/* LAZO ROSA ANIMADO (HERO FLOATING SILK RIBBON - BACKGROUND LAYER) */
.fem-hero-ribbon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.fem-ribbon-svg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 112%;
  height: 115%;
  will-change: transform;
}

.fem-ribbon-path-1 {
  transform-origin: 45% 45%;
  animation: femRibbonWave1 14s ease-in-out infinite alternate;
}

.fem-ribbon-stroke-1 {
  transform-origin: 45% 45%;
  animation: femRibbonWave1 14s ease-in-out infinite alternate;
}

.fem-ribbon-path-2 {
  transform-origin: 55% 55%;
  animation: femRibbonWave2 18s ease-in-out infinite alternate;
}

@keyframes femRibbonWave1 {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
  35% {
    transform: scale(1.05, 0.97) translate(22px, -16px) rotate(1.8deg);
  }
  70% {
    transform: scale(0.97, 1.04) translate(-18px, 14px) rotate(-1.5deg);
  }
  100% {
    transform: scale(1.03, 1.02) translate(26px, -10px) rotate(2.2deg);
  }
}

@keyframes femRibbonWave2 {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
  40% {
    transform: scale(1.04, 1.02) translate(-24px, 18px) rotate(-2deg);
  }
  80% {
    transform: scale(0.96, 0.98) translate(18px, -20px) rotate(1.6deg);
  }
  100% {
    transform: scale(1.03, 1.05) translate(-15px, 12px) rotate(-1.2deg);
  }
}

.fem-hero-split-container {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .fem-hero-split-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.fem-hero-content-col {
  text-align: left;
}

.fem-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(253, 242, 248, 0.95);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(197, 155, 39, 0.15);
}

.fem-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #2C3539;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.fem-hero-title span.fem-gradient-text {
  background: linear-gradient(135deg, #0F2C59 0%, #1A4280 50%, #C59B27 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fem-hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: #4B5563;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.fem-hero-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.fem-btn-primary-large {
  background: linear-gradient(135deg, #0F2C59, #1A4280 50%, #C59B27);
  color: white !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 2.2rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 44, 89, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.fem-btn-primary-large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(197, 155, 39, 0.45);
}

.fem-btn-secondary-large {
  background: white;
  color: var(--color-primary-dark) !important;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fem-btn-secondary-large:hover {
  border-color: rgba(197, 155, 39, 0.5);
  background: #FAF8F5;
  transform: translateY(-2px);
}

.fem-hero-trust {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.fem-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 600;
}

.fem-trust-svg {
  flex-shrink: 0;
}

/* COMPOSICIÓN VISUAL DERECHA HERO CON FOTOGRAFÍA EDITORIAL */
.fem-hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.fem-hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.fem-hero-ambient-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.35) 0%, rgba(26, 66, 128, 0.25) 100%);
  filter: blur(40px);
  border-radius: 40px;
  z-index: 1;
}

.fem-hero-main-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 44, 89, 0.2);
  border: 4px solid #FFFFFF;
  z-index: 2;
  background: #FFFFFF;
}

.fem-hero-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fem-hero-main-card:hover .fem-hero-photo {
  transform: scale(1.03);
}

/* BADGES FLOTANTES GLASSMORPHISM */
.fem-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 12px 32px rgba(15, 44, 89, 0.18);
  z-index: 3;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.fem-float-top-right {
  top: 1.5rem;
  right: -1rem;
}

.fem-float-bottom-left {
  bottom: 2rem;
  left: -1rem;
  animation-delay: 2s;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.fem-float-star {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.fem-float-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F2C59, #1A4280);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.3);
}

.fem-float-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #2C3539;
  line-height: 1.2;
}

.fem-float-sub {
  font-size: 0.76rem;
  color: #0F2C59;
  font-weight: 700;
}

/* MARQUEE INFINITO */
.fem-marquee-section {
  padding: 2.5rem 0;
  background: white;
  border-top: 1px solid #F3F4F6;
  border-bottom: 1px solid #F3F4F6;
  overflow: hidden;
}

.fem-marquee-title {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9CA3AF;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.fem-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  gap: 4rem;
}

.fem-marquee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #6B7280;
  white-space: nowrap;
  opacity: 0.85;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* BENTO GRID */
.fem-section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.fem-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.fem-tag {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.fem-section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #2C3539;
  margin-bottom: 1rem;
}

.fem-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.fem-bento-card {
  background: white;
  border-radius: 24px;
  padding: 2.2rem;
  border: 1px solid rgba(197, 155, 39, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fem-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 44, 89, 0.09);
  border-color: rgba(197, 155, 39, 0.5);
}

.fem-bento-col-8 { grid-column: span 8; }
.fem-bento-col-4 { grid-column: span 4; }

@media (max-width: 900px) {
  .fem-bento-col-8,
  .fem-bento-col-4 {
    grid-column: span 12;
  }
}

.fem-bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #FAF8F5;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.fem-bento-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2C3539;
  margin-bottom: 0.75rem;
}

.fem-bento-card p {
  color: #6B7280;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* BENTO CARDS CON FOTOGRAFÍA EDITORIAL */
.fem-bento-card-photo {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.fem-bento-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 25%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 25%, black 100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.fem-bento-card-photo:hover .fem-bento-bg-img {
  transform: scale(1.06);
}

.fem-bento-card-photo .fem-bento-content {
  position: relative;
  z-index: 2;
  max-width: 58%;
}

@media (max-width: 768px) {
  .fem-bento-bg-img {
    position: relative;
    width: 100%;
    height: 180px;
    mask-image: none;
    -webkit-mask-image: none;
    border-radius: 16px;
    margin-bottom: 1rem;
  }
  .fem-bento-card-photo .fem-bento-content {
    max-width: 100%;
  }
}

/* GRADUATION & COMMUNITY SHOWCASE */
.fem-grad-showcase-section {
  padding: 5rem 1.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.fem-grad-banner {
  background: linear-gradient(135deg, #0A1E3D 0%, #0F2C59 60%, #66101E 100%);
  border-radius: 36px;
  overflow: hidden;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  box-shadow: 0 24px 60px rgba(15, 44, 89, 0.25);
  position: relative;
}

@media (max-width: 992px) {
  .fem-grad-banner {
    grid-template-columns: 1fr;
  }
}

.fem-grad-text-col {
  padding: 4rem 3.5rem;
  z-index: 2;
}

@media (max-width: 768px) {
  .fem-grad-text-col {
    padding: 2.5rem 2rem;
  }
}

.fem-grad-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #F4EFE6;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.fem-grad-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF !important;
  margin-bottom: 1.25rem;
}

.fem-grad-desc {
  font-size: 1.05rem;
  color: #F4EFE6;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.fem-grad-img-col {
  height: 100%;
  min-height: 420px;
  position: relative;
}

.fem-grad-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* CURSOS DESTACADOS */
.fem-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.fem-course-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fem-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 44, 89, 0.12);
  border-color: rgba(197, 155, 39, 0.4);
}

.fem-course-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 44, 89, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}

.fem-course-header {
  height: 170px;
  background: linear-gradient(135deg, #0A1E3D, #0F2C59 60%, #C59B27);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.8rem;
}

.fem-course-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fem-course-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2C3539;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.fem-course-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6B7280;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.fem-course-footer {
  padding-top: 1rem;
  border-top: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* FOOTER */
.fem-footer {
  background: #0B0813;
  color: #E5E7EB;
  padding: 5rem 1.5rem 2.5rem;
}

.fem-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 800px) {
  .fem-footer-grid {
    grid-template-columns: 1fr;
  }
}

.fem-footer-col h5 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.fem-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fem-footer-col ul li {
  margin-bottom: 0.75rem;
}

.fem-footer-col ul a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.fem-footer-col ul a:hover {
  color: var(--color-rose-gold);
}

.fem-footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  text-align: center;
  color: #6B7280;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   PANTALLA DE LOGIN SPLIT-SCREEN (@FRONTEND & MAGIC UI)
   -------------------------------------------------------------------------- */
.fem-login-page {
  background: #FFFFFF;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.fem-login-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.fem-login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: #FFFFFF;
}

.fem-login-box {
  width: 100%;
  max-width: 440px;
}

.fem-login-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #2C3539;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.fem-login-subtitle {
  color: #6B7280;
  font-size: 0.95rem;
  margin: 0 0 2rem;
  line-height: 1.5;
}

.fem-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fem-input-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.fem-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.fem-input-icon {
  position: absolute;
  left: 1rem;
  color: #9CA3AF;
  font-size: 1.1rem;
  pointer-events: none;
}

.fem-input-control {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  color: #1F2937;
  transition: all 0.2s ease;
  outline: none;
}

.fem-input-control:focus {
  background: #FFFFFF;
  border-color: #0F2C59;
  box-shadow: 0 0 0 4px rgba(197, 155, 39, 0.2);
}

.fem-pwd-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.35rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.1s;
}

.fem-pwd-toggle:hover {
  opacity: 1;
}

.fem-pwd-toggle:active {
  transform: translateY(-50%) scale(0.9);
}

.fem-forgot-link {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.fem-forgot-link:hover {
  text-decoration: underline;
}

.fem-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.25rem 0;
}

.fem-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #4B5563;
  cursor: pointer;
}

.fem-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0F2C59;
  cursor: pointer;
  border-radius: 4px;
}

.fem-btn-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #0F2C59 0%, #1A4280 60%, #C59B27 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.95rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 44, 89, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.fem-btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 155, 39, 0.4);
}

.fem-btn-auth-submit:active {
  transform: scale(0.98);
}

.fem-login-mobile-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(226, 232, 240, 0.9);
}

.fem-trust-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  background: #F8FAFC;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fem-login-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6B7280;
}

.fem-signup-link {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.fem-signup-link:hover {
  text-decoration: underline;
}

.fem-back-home {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.fem-back-home:hover {
  color: var(--color-primary);
}

/* LADO DERECHO EDITORIAL HERO */
.fem-login-hero-side {
  flex: 1.1;
  background: radial-gradient(circle at 20% 20%, rgba(132, 26, 43, 0.35) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(26, 66, 128, 0.35) 0%, transparent 50%),
              linear-gradient(135deg, #0A1E3D 0%, #0F2C59 50%, #151026 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  color: white;
}

.fem-login-hero-content {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.fem-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FAF8F5;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.fem-editorial-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.fem-editorial-author {
  font-size: 0.95rem;
  color: #E8E2D5;
  font-weight: 600;
  margin-bottom: 3rem;
}

.fem-login-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.fem-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.fem-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #C59B27;
  margin-bottom: 0.25rem;
}

.fem-stat-lbl {
  font-size: 0.75rem;
  color: #E5E7EB;
  font-weight: 500;
}

/* Accesibilidad limpia para enlaces skip-to-content de Moodle en login */
.fem-login-page .sr-only,
.fem-login-page a[href="#maincontent"],
.fem-login-page a[href*="main-content"],
.fem-login-page a[href*="#region-main"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ocultar formulario estándar duplicado y títulos nativos de Moodle solo en vista de login */
.fem-login-page:not(.fem-signup-page) .fem-moodle-raw-content:not(.fem-signup-form-container) .loginform,
.fem-login-page:not(.fem-signup-page) .fem-moodle-raw-content:not(.fem-signup-form-container) .login-heading,
.fem-login-page:not(.fem-signup-page) .fem-moodle-raw-content:not(.fem-signup-form-container) form#login,
.fem-login-page:not(.fem-signup-page) .fem-moodle-raw-content:not(.fem-signup-form-container) > h1,
.fem-login-page:not(.fem-signup-page) .fem-moodle-raw-content:not(.fem-signup-form-container) > h2,
.fem-login-page:not(.fem-signup-page) .fem-moodle-raw-content:not(.fem-signup-form-container) > h3 {
  display: none !important;
}

/* Mantener visibles solo alertas de credenciales incorrectas */
.fem-moodle-raw-content .alert,
.fem-moodle-raw-content .alert-danger {
  display: block !important;
  margin-top: 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .fem-login-hero-side {
    display: none;
  }
  .fem-login-form-side {
    padding: 2rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   DASHBOARD Y NAVEGACIÓN GLOBAL INTERNA (@FRONTEND & MAGIC UI)
   -------------------------------------------------------------------------- */
body.fem-internal-app {
  background-color: #F8F9FD;
  font-family: var(--font-sans);
  color: #2C3539;
  margin: 0;
  padding: 0;
}

/* Topbar Global Interno */
.fem-internal-topbar {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(197, 155, 39, 0.2);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.fem-topbar-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.fem-internal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fem-nav-tab {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4B5563;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.fem-nav-tab:hover {
  color: var(--color-primary);
  background: #FAF8F5;
}

.fem-nav-tab.active {
  color: #FFFFFF;
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.2);
}

.fem-admin-tab {
  color: #0F2C59;
  background: #FAF8F5;
  border: 1px solid rgba(197, 155, 39, 0.3);
}

.fem-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.fem-edit-toggle {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
  transition: all 0.2s;
}

.fem-edit-toggle.active {
  background: #DC2626;
  color: white;
  border-color: #DC2626;
}

.fem-user-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
}

.fem-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #FAF8F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.fem-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fem-user-info {
  display: flex;
  flex-direction: column;
}

.fem-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.2;
}

.fem-user-role {
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 600;
}

.fem-btn-logout-icon {
  text-decoration: none;
  font-size: 1.1rem;
  margin-left: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.fem-btn-logout-icon:hover {
  opacity: 1;
}

/* Wrapper y Banner de Bienvenida */
.fem-internal-wrapper {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.fem-dash-welcome {
  background: linear-gradient(135deg, #0A1E3D 0%, #0F2C59 60%, #C59B27 100%);
  border-radius: 28px;
  padding: 2.75rem 3rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 16px 40px rgba(15, 44, 89, 0.18);
  position: relative;
  overflow: hidden;
}

.fem-dash-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #FFFFFF;
}

.fem-dash-desc {
  font-size: 1rem;
  color: #FAF8F5;
  max-width: 620px;
  margin: 0;
  line-height: 1.5;
  opacity: 0.95;
}

.fem-dash-quick-stats {
  display: flex;
  gap: 1rem;
}

.fem-stat-mini-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 180px;
}

.fem-stat-icon {
  font-size: 1.8rem;
}

.fem-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.fem-stat-sub {
  font-size: 0.75rem;
  color: #E8E2D5;
  font-weight: 500;
}

/* ==========================================================================
   HERO BANNER DE ALTA FORMACIÓN DIRECTIVA (VISTA DE CURSO)
   ========================================================================== */
.fem-course-hero {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-radius: 28px !important;
  padding: 3.25rem 3.5rem !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2.5rem !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 20px 50px rgba(10, 30, 61, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(197, 155, 39, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}

.fem-course-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 85% 25%, rgba(197, 155, 39, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.fem-course-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 800px;
}

.fem-hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.fem-hero-pill-gold {
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.35), rgba(223, 186, 83, 0.22));
  border: 1px solid rgba(197, 155, 39, 0.6);
  color: #DFBA53;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fem-hero-pill-category {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #F9F7F2;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fem-hero-pill-stps {
  background: rgba(132, 26, 43, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fem-hero-pill-editmode {
  background: linear-gradient(135deg, #DFBA53, #C59B27);
  color: #0A1E3D;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.4);
}

.fem-course-hero-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 0.85rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.fem-course-hero-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #FAF8F5;
  opacity: 0.95;
  margin: 0;
  max-width: 680px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.fem-course-hero-progress-wrapper {
  margin-top: 1.5rem;
  max-width: 480px;
}

.fem-course-hero-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #E8E2D5;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.fem-course-hero-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.fem-course-hero-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C59B27, #DFBA53);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(223, 186, 83, 0.6);
}

.fem-course-hero-side {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.fem-course-meta-glass-card {
  background: rgba(10, 30, 61, 0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 155, 39, 0.32);
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 250px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.fem-meta-glass-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.fem-meta-glass-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.fem-meta-glass-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
}

.fem-meta-glass-sub {
  font-size: 0.78rem;
  color: #DFBA53;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fem-meta-glass-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  width: 100%;
}

.fem-btn-course-hero-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #841A2B 0%, #A3263B 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(132, 26, 43, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fem-btn-course-hero-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(132, 26, 43, 0.5);
  background: linear-gradient(135deg, #A3263B 0%, #841A2B 100%);
  color: #FFFFFF !important;
}

.fem-btn-course-hero-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #0F2C59 0%, #1A4280 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 44, 89, 0.35);
  border: 1px solid rgba(197, 155, 39, 0.45);
}

.fem-btn-course-hero-settings:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 155, 39, 0.45);
  background: linear-gradient(135deg, #1A4280 0%, #0F2C59 100%);
  color: #FFFFFF !important;
}

/* Layout de 2 Columnas para Moodle Content & Sidebar */
.fem-dash-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.fem-dash-layout.has-sidebar {
  grid-template-columns: 1fr 340px;
}

@media (max-width: 990px) {
  .fem-dash-welcome {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }
  .fem-course-hero {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 2rem 1.5rem !important;
    gap: 1.5rem !important;
  }
  .fem-course-hero-title {
    font-size: 2.1rem !important;
  }
  .fem-course-hero-side {
    width: 100% !important;
  }
  .fem-course-meta-glass-card {
    min-width: 100% !important;
  }
  .fem-dash-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Ocultar visualmente skip links y accesibilidad en el dashboard */
.fem-internal-app .sr-only,
.fem-internal-app a[href="#maincontent"],
.fem-internal-app a[href*="main-content"],
.fem-internal-app .skip-block,
.fem-internal-app .skip-block-to,
.fem-internal-app a.sr-only-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fem-internal-app a[href="#maincontent"]:focus,
.fem-internal-app a[href*="main-content"]:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  background: #0F2C59;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

/* Ocultar encabezado redundante de bloques Moodle si no hay edición */
.fem-internal-app .block_myoverview .card-title,
.fem-internal-app #region-main > h2:first-child {
  color: #2C3539;
  font-weight: 800;
}

/* Estilos de Bloques y Tarjetas Nativas de Moodle */
.fem-internal-app .block,
.fem-internal-app .card,
.fem-internal-app .dashboard-card {
  background: #FFFFFF !important;
  border-radius: 20px !important;
  border: 1px solid rgba(197, 155, 39, 0.18) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  transition: all 0.25s ease;
}

.fem-internal-app .block:hover,
.fem-internal-app .card:hover {
  box-shadow: 0 10px 30px rgba(15, 44, 89, 0.07) !important;
  border-color: rgba(197, 155, 39, 0.4) !important;
}

.fem-internal-app .block .card-title,
.fem-internal-app h2,
.fem-internal-app h3,
.fem-internal-app h4 {
  font-family: var(--font-serif);
  color: #2C3539;
  font-weight: 700;
}

.fem-internal-app .btn-primary {
  background: linear-gradient(135deg, #0F2C59 0%, #1A4280 60%, #C59B27 100%) !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.6rem 1.4rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(15, 44, 89, 0.25) !important;
}

.fem-internal-app .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 155, 39, 0.4) !important;
}

/* Pestañas de Navegación Secundaria (Curso, Configuración, Participantes, Calificaciones, Reportes) */
.fem-secondary-nav-container {
  margin-bottom: 1.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(197, 155, 39, 0.24);
  box-shadow: 0 4px 20px rgba(15, 44, 89, 0.05);
  display: block !important;
  height: auto !important;
  min-height: auto !important;
  position: relative !important;
  z-index: 100 !important;
  overflow: visible !important;
}

.fem-secondary-nav-container:empty {
  display: none !important;
}

.fem-secondary-nav-container .secondary-navigation {
  width: 100%;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}

.fem-secondary-nav-container .navigation {
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.fem-secondary-nav-container .secondary-navigation .moremenu,
.fem-secondary-nav-container .moremenu {
  width: 100%;
  height: auto !important;
  min-height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.fem-secondary-nav-container .nav-tabs,
.fem-secondary-nav-container .more-nav {
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
  gap: 0.35rem !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: 48px !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.fem-secondary-nav-container .nav-tabs::-webkit-scrollbar,
.fem-secondary-nav-container .more-nav::-webkit-scrollbar {
  display: none !important;
}

.fem-secondary-nav-container .nav-tabs .nav-item,
.fem-secondary-nav-container .more-nav .nav-item {
  flex-shrink: 0 !important;
  height: auto !important;
}

.fem-secondary-nav-container .nav-tabs .nav-link,
.fem-secondary-nav-container .more-nav .nav-link {
  border: 1px solid transparent !important;
  color: #485358 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 1.15rem !important;
  height: 40px !important;
  line-height: 1 !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
}

.fem-secondary-nav-container .nav-tabs .nav-link:hover,
.fem-secondary-nav-container .more-nav .nav-link:hover {
  background: #FAF8F5 !important;
  color: #0F2C59 !important;
  border-color: rgba(197, 155, 39, 0.25) !important;
}

.fem-secondary-nav-container .nav-tabs .nav-link.active,
.fem-secondary-nav-container .more-nav .nav-link.active {
  background: linear-gradient(135deg, #0F2C59 0%, #1A4280 100%) !important;
  color: #FFFFFF !important;
  border-color: #C59B27 !important;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.22) !important;
}

.fem-secondary-nav-container .dropdownmoremenu {
  position: relative !important;
}

.fem-secondary-nav-container .dropdownmoremenu .dropdown-toggle {
  background: #FAF8F5 !important;
  border: 1px solid rgba(197, 155, 39, 0.3) !important;
  color: #0F2C59 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

.fem-secondary-nav-container .dropdownmoremenu .dropdown-toggle:hover {
  background: #FFFFFF !important;
  border-color: #C59B27 !important;
  color: #841A2B !important;
}

.fem-secondary-nav-container .dropdownmoremenu .dropdown-toggle.active {
  background: linear-gradient(135deg, #0F2C59 0%, #1A4280 100%) !important;
  color: #FFFFFF !important;
}

.fem-secondary-nav-container .dropdown-menu {
  background: #FFFFFF !important;
  border-radius: 14px !important;
  border: 1px solid rgba(197, 155, 39, 0.25) !important;
  box-shadow: 0 16px 40px rgba(15, 44, 89, 0.16) !important;
  padding: 0.6rem !important;
  min-width: 270px !important;
  max-height: 72vh !important;
  overflow-y: auto !important;
  z-index: 1060 !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  top: 100% !important;
  margin-top: 0.5rem !important;
}

.fem-secondary-nav-container .dropdown-item {
  border-radius: 8px !important;
  padding: 0.6rem 1rem !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  color: #2C3539 !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.15s ease !important;
}

.fem-secondary-nav-container .dropdown-item:hover,
.fem-secondary-nav-container .dropdown-item:focus {
  background: #FAF8F5 !important;
  color: #0F2C59 !important;
  transform: translateX(3px) !important;
}

/* Breadcrumbs y Encabezado de Curso */
.fem-course-header-area .breadcrumb {
  background: transparent !important;
  padding: 0 0 1rem 0 !important;
  margin: 0 !important;
}

.fem-course-header-area .breadcrumb-item a {
  color: #0F2C59 !important;
  font-weight: 600;
  text-decoration: none;
}

.fem-course-header-area .breadcrumb-item.active {
  color: #6B7280 !important;
}

/* Ocultar el título duplicado de Moodle en la vista de curso, manteniendo breadcrumbs y acciones */
.path-course-view .fem-course-header-area .page-header-headings,
.path-course-view .fem-course-header-area #page-header h1 {
  display: none !important;
}

.path-course-view .fem-course-header-area .header-actions-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.fem-settings-menu-box {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

/* Dropdowns de 3 puntos en Tarjetas de Cursos y Tablero */
.fem-internal-app .dashboard-card .dropdown,
.fem-internal-app .course-info-container .dropdown {
  position: relative;
  z-index: 20;
}

.fem-internal-app .dropdown-menu {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  border: 1px solid rgba(197, 155, 39, 0.25) !important;
  box-shadow: 0 10px 30px rgba(15, 44, 89, 0.12) !important;
  padding: 0.5rem !important;
  z-index: 1050 !important;
}

.fem-internal-app .dropdown-item {
  border-radius: 10px !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.9rem !important;
  color: #374151 !important;
  transition: all 0.2s ease !important;
}

.fem-internal-app .dropdown-item:hover,
.fem-internal-app .dropdown-item:focus {
  background: #FAF8F5 !important;
  color: #0F2C59 !important;
}

/* Acordeones Colapsables de Formularios Moodle (Formato de curso, Apariencia, etc.) */
.fem-internal-app .mform fieldset.collapsible legend a.fheader {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #2C3539 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  padding: 0.75rem 0;
  cursor: pointer !important;
}

.fem-internal-app .mform fieldset.collapsible legend a.fheader:hover {
  color: #0F2C59 !important;
}

.fem-internal-app .collapsible-actions a {
  color: #0F2C59 !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.fem-internal-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #9CA3AF;
  font-size: 0.85rem;
  border-top: 1px solid #E5E7EB;
  margin-top: 3rem;
}

/* Pestañas OneTopic (Navegación de Módulos) */
.format-onetopic .onetopic,
.onetopic {
  border: none !important;
  margin-bottom: 2rem !important;
}

.format-onetopic .onetopic .nav-tabs,
.onetopic .nav-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  border-bottom: 2px solid #F3E8FF !important;
  padding-bottom: 0.75rem !important;
}

.format-onetopic .onetopic .nav-tabs .nav-link,
.onetopic .nav-tabs .nav-link {
  border: 1px solid #F4EFE6 !important;
  background: #FFFFFF !important;
  color: #0F2C59 !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 0.6rem 1.3rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.format-onetopic .onetopic .nav-tabs .nav-link:hover,
.onetopic .nav-tabs .nav-link:hover {
  background: #FAF8F5 !important;
  color: #66101E !important;
  border-color: #DFBA53 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.2) !important;
}

.format-onetopic .onetopic .nav-tabs .nav-link.active,
.onetopic .nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #0F2C59 0%, #66101E 60%, #C59B27 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(15, 44, 89, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* Formato Grid (Mosaico de Sesiones Grabadas) */
.format-grid .grid_section,
.format-grid #gridshadebox {
  border-radius: 1.25rem !important;
}

.format-grid .grid_section {
  background: #FFFFFF !important;
  border: 1px solid rgba(197, 155, 39, 0.25) !important;
  border-radius: 1.25rem !important;
  padding: 1.25rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}

.format-grid .grid_section:hover {
  transform: translateY(-4px) !important;
  border-color: #DFBA53 !important;
  box-shadow: 0 12px 30px rgba(197, 155, 39, 0.25) !important;
}

.format-grid .image_holder {
  border-radius: 1rem !important;
  overflow: hidden !important;
}

/* Tarjetas de Actividades & Grabaciones de Clase */
.fem-internal-app .activity-item,
.fem-internal-app .course-section .activity {
  background: #FFFFFF !important;
  border: 1px solid #F3E8FF !important;
  border-radius: 1rem !important;
  padding: 1.2rem 1.5rem !important;
  margin-bottom: 1rem !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.fem-internal-app .activity-item:hover,
.fem-internal-app .course-section .activity:hover {
  border-color: #DFBA53 !important;
  box-shadow: 0 8px 22px rgba(15, 44, 89, 0.08) !important;
  transform: translateX(4px) !important;
}

.fem-internal-app .activity-item .activity-name {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  color: #2C3539 !important;
  font-size: 1.05rem !important;
}

/* Reproductores de Video & VideoJS Estilo Streaming */
.fem-internal-app .mediaplugin_videojs,
.fem-internal-app .video-js,
.fem-internal-app iframe[src*="youtube"],
.fem-internal-app iframe[src*="vimeo"] {
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.2) !important;
  border: 2px solid rgba(197, 155, 39, 0.3) !important;
  max-width: 100% !important;
}

.video-js .vjs-big-play-button {
  background: linear-gradient(135deg, #0F2C59 0%, #C59B27 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-radius: 50% !important;
  width: 70px !important;
  height: 70px !important;
  line-height: 66px !important;
  margin-top: -35px !important;
  margin-left: -35px !important;
  box-shadow: 0 8px 25px rgba(197, 155, 39, 0.6) !important;
  transition: transform 0.2s ease !important;
}

.video-js .vjs-big-play-button:hover {
  transform: scale(1.1) !important;
}

/* Contenedor H5P Interactivo */
.fem-internal-app .h5p-iframe-wrapper,
.fem-internal-app .h5p-container {
  border-radius: 1.25rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(197, 155, 39, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

/* Botón flotante para Creator Studio / Grabación de Ponentes */
.fem-btn-recorder-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #DC2626 0%, #E11D48 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  transition: all 0.2s ease;
  animation: pulse-recording 2s infinite;
}

.fem-btn-recorder-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
  color: #FFFFFF !important;
}

@keyframes pulse-recording {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
}

/* ==========================================================================
   DIRECTORIO DE TALENTO, NETWORKING & INSIGNIAS STPS/SEP
   ========================================================================== */
.fem-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.fem-member-card {
  background: #FFFFFF;
  border: 1px solid rgba(197, 155, 39, 0.22);
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.fem-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0F2C59 0%, #C59B27 50%, #F59E0B 100%);
  opacity: 0.8;
}

.fem-member-card:hover {
  transform: translateY(-6px);
  border-color: #DFBA53;
  box-shadow: 0 16px 36px rgba(15, 44, 89, 0.12);
}

.fem-member-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.fem-member-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.fem-member-avatar-box img,
.fem-member-avatar-box .userpicture {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #F4EFE6;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.15);
}

.fem-member-avatar-fallback {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 44, 89, 0.2);
  border: 2px solid #FFFFFF;
}

.fem-verified-star {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: linear-gradient(135deg, #841A2B, #0F2C59);
  color: #FFFFFF;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.fem-member-meta {
  flex: 1;
}

.fem-member-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #2C3539;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.fem-member-role {
  font-size: 0.85rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

/* Badge Highlight Box */
.fem-member-badge-highlight {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.fem-badge-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.fem-badge-val {
  font-weight: 800;
  font-size: 0.92rem;
  color: #92400E;
}

.fem-badge-sub {
  font-size: 0.76rem;
  color: #B45309;
  font-weight: 600;
}

/* Mini Insignias */
.fem-mini-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.fem-mini-badge-pill {
  background: #FAF8F5;
  border: 1px solid #F4EFE6;
  color: #0F2C59;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Skills Tags */
.fem-member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
}

.fem-skill-tag {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

/* Botones de Networking */
.fem-member-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}

.fem-btn-cv {
  flex: 1;
  background: linear-gradient(135deg, #0F2C59 0%, #66101E 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.6rem 0.8rem;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.2);
  transition: all 0.2s ease;
}

.fem-btn-cv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 44, 89, 0.35);
  color: #FFFFFF !important;
}

.fem-btn-linkedin {
  background: #0A66C2;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.2);
}

.fem-btn-linkedin:hover {
  background: #004182;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35);
  color: #FFFFFF !important;
}

/* ==========================================================================
   BOTÓN FLOTANTE OFICIAL DE WHATSAPP (LANDING PAGE)
   ========================================================================== */
.fem-whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fem-whatsapp-floating:hover {
  transform: scale(1.08) translateY(-4px);
  text-decoration: none !important;
}

/* Radar pulse wave effect */
.fem-whatsapp-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  animation: fem-wa-pulse-wave 2.2s infinite cubic-bezier(0.25, 0, 0, 1);
  z-index: -1;
  pointer-events: none;
}

@keyframes fem-wa-pulse-wave {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Botón principal circular WhatsApp */
.fem-whatsapp-btn {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.fem-whatsapp-floating:hover .fem-whatsapp-btn {
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55), 0 6px 14px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #2ae06d 0%, #0e7b6e 100%);
}

.fem-whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: #FFFFFF !important;
  color: #FFFFFF !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Tooltip lateral premium informativo */
.fem-whatsapp-tooltip {
  position: absolute;
  right: 74px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 0.65rem 1.1rem;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(12px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fem-whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fem-whatsapp-floating:hover .fem-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.fem-whatsapp-tooltip-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #34D399;
  letter-spacing: 0.02em;
}

.fem-whatsapp-tooltip-sub {
  font-size: 0.78rem;
  color: #E2E8F0;
  font-weight: 500;
}

@media (max-width: 640px) {
  .fem-whatsapp-floating {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  
  .fem-whatsapp-btn {
    width: 56px;
    height: 56px;
  }
  
  .fem-whatsapp-icon {
    width: 28px;
    height: 28px;
  }
  
  .fem-whatsapp-pulse {
    width: 54px;
    height: 54px;
  }
  
  .fem-whatsapp-tooltip {
    display: none;
  }
}

/* ==========================================================================
   HERO SOCIAL PROOF & BUSCADOR RÁPIDO
   ========================================================================== */
.fem-hero-search-box {
  display: flex;
  align-items: center;
  background: white;
  padding: 0.4rem 0.5rem 0.4rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(197, 155, 39, 0.35);
  box-shadow: 0 10px 25px rgba(15, 44, 89, 0.08);
  margin-bottom: 2rem;
  max-width: 540px;
  transition: all 0.3s ease;
}

.fem-hero-search-box:focus-within {
  border-color: #0F2C59;
  box-shadow: 0 12px 30px rgba(15, 44, 89, 0.18);
  transform: translateY(-2px);
}

.fem-hero-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: #841A2B;
  opacity: 0.85;
}

.fem-hero-search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
  color: #2C3539;
  background: transparent;
  font-family: var(--font-sans);
}

.fem-hero-search-btn {
  background: linear-gradient(135deg, #0F2C59 0%, #841A2B 100%);
  color: white;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fem-hero-search-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.3);
}

.fem-hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(197, 155, 39, 0.2);
}

.fem-avatar-cluster {
  display: flex;
  align-items: center;
}

.fem-cluster-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -10px;
  box-shadow: 0 2px 8px rgba(15, 44, 89, 0.15);
  overflow: hidden;
}

.fem-cluster-avatar svg {
  display: block;
}

.fem-cluster-avatar:first-child {
  margin-left: 0;
}

.fem-cluster-more {
  background: #2C3539;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
}

.fem-proof-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fem-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fem-stars-svg-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.fem-star-svg {
  display: inline-block;
  color: #F59E0B;
}

.fem-rating-score {
  color: #2C3539;
  font-weight: 800;
  font-size: 0.95rem;
  margin-left: 0.2rem;
}

.fem-proof-sub {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
}

/* ==========================================================================
   PÍLDORAS DE FILTRADO Y TARJETAS DE CURSOS
   ========================================================================== */
.fem-filter-pills-container {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.fem-filter-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fem-filter-pill:hover {
  background: #FAF8F5;
  border-color: #DFBA53;
  color: #0F2C59;
}

.fem-filter-pill.active {
  background: linear-gradient(135deg, #0F2C59 0%, #841A2B 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(15, 44, 89, 0.25);
}

.fem-course-badge-special {
  background: rgba(236, 72, 153, 0.2);
  color: #FAF8F5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.fem-course-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  gap: 0.5rem;
}

.fem-btn-outline-syllabus {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fem-btn-outline-syllabus:hover {
  border-color: #0F2C59;
  color: #0F2C59;
  background: #FAF8F5;
}

/* ==========================================================================
   SIMULADOR DE CERTIFICADO STPS & MOCKUP
   ========================================================================== */
.fem-cert-simulator-wrapper {
  background: linear-gradient(135deg, #FAF5FF 0%, #FAF8F5 50%, #FFF1F2 100%);
  border-radius: 32px;
  padding: 4rem 3rem;
  border: 1px solid rgba(197, 155, 39, 0.3);
  box-shadow: 0 20px 50px rgba(15, 44, 89, 0.05);
}

.fem-cert-simulator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .fem-cert-simulator-grid {
    grid-template-columns: 1fr;
  }
}

.fem-cert-checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fem-cert-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #334155;
  font-size: 0.95rem;
}

.fem-check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #D1FAE5;
  color: #0F2C59;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.fem-diploma-mockup-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 6px double #E8E2D5;
  position: relative;
  overflow: hidden;
}

.fem-diploma-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.fem-diploma-logo {
  font-family: var(--font-serif);
  font-weight: 800;
  color: #0F2C59;
  font-size: 1.1rem;
}

.fem-diploma-tag {
  font-size: 0.75rem;
  background: #F1F5F9;
  color: #475569;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
}

.fem-diploma-body {
  text-align: center;
  margin-bottom: 1.5rem;
}

.fem-diploma-sub {
  font-size: 0.82rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.fem-diploma-title {
  font-family: var(--font-serif);
  color: #2C3539;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.fem-diploma-recipient {
  font-family: var(--font-serif);
  color: #0F2C59;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.fem-diploma-course {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

.fem-diploma-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 1.25rem;
}

.fem-diploma-seal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fem-diploma-seal span {
  font-size: 2rem;
}

.fem-diploma-seal div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.fem-diploma-seal strong {
  color: #2C3539;
  font-size: 0.85rem;
}

.fem-diploma-seal small {
  color: #64748B;
  font-size: 0.75rem;
}

.fem-diploma-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #475569;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.fem-faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fem-faq-item {
  background: white;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  transition: all 0.25s ease;
}

.fem-faq-item.active {
  border-color: #DFBA53;
  box-shadow: 0 10px 25px rgba(15, 44, 89, 0.06);
}

.fem-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.35rem 1.6rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #2C3539;
  cursor: pointer;
  font-family: var(--font-sans);
}

.fem-faq-chevron {
  font-size: 1.2rem;
  color: #0F2C59;
  transition: transform 0.3s ease;
}

.fem-faq-item.active .fem-faq-chevron {
  transform: rotate(180deg);
}

.fem-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.6rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.fem-faq-item.active .fem-faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
  transition: max-height 0.35s ease-in-out;
}

/* ==========================================================================
   MODAL DE SYLLABUS / TEMARIO RÁPIDO
   ========================================================================== */
.fem-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.fem-modal-card {
  background: white;
  border-radius: 24px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fem-modal-backdrop.active .fem-modal-card {
  transform: translateY(0) scale(1);
}

.fem-modal-header {
  padding: 1.75rem 2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #F1F5F9;
}

.fem-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #2C3539;
  font-weight: 800;
}

.fem-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
}

.fem-modal-close:hover {
  color: #2C3539;
}

.fem-modal-body {
  padding: 1.5rem 2rem;
}

.fem-modal-meta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.fem-modal-meta-row span {
  background: #FAF8F5;
  color: #0F2C59;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.fem-syllabus-modules {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fem-syllabus-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #F8FAFC;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  font-size: 0.92rem;
  color: #334155;
  font-weight: 600;
}

.fem-syllabus-num {
  width: 24px;
  height: 24px;
  background: #0F2C59;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  font-weight: 800;
}

.fem-modal-footer {
  padding: 1.25rem 2rem;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  border-radius: 0 0 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   DASHBOARD WIDGETS (SMART RESUME & LIVE SESSION)
   ========================================================================== */
.fem-dash-action-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .fem-dash-action-grid {
    grid-template-columns: 1fr;
  }
}

.fem-resume-card {
  background: white;
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(197, 155, 39, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.fem-resume-badge {
  color: #0F2C59;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.fem-resume-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #2C3539;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fem-resume-subtitle {
  color: #64748B;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.fem-resume-progress-bar {
  width: 100%;
  height: 8px;
  background: #F1F5F9;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.fem-resume-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0F2C59 0%, #841A2B 100%);
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.fem-resume-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.fem-btn-resume-cta {
  background: linear-gradient(135deg, #0F2C59 0%, #841A2B 100%);
  color: white !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.25);
  transition: all 0.2s ease;
}

.fem-btn-resume-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 44, 89, 0.35);
}

.fem-live-card {
  background: linear-gradient(135deg, #2C3539 0%, #0A1E3D 100%);
  border-radius: 20px;
  padding: 1.8rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(30, 27, 75, 0.15);
}

.fem-live-pulse-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.fem-live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  animation: fem-pulse-dot 1.5s infinite;
}

@keyframes fem-pulse-dot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.fem-live-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}

.fem-live-meta {
  color: #CBD5E1;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.fem-btn-live-join {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  text-decoration: none !important;
  text-align: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.fem-btn-live-join:hover {
  background: white;
  color: #2C3539 !important;
}

/* ==========================================================================
   AULA VIRTUAL, QUIZZES & ACTIVIDADES MOODLE
   ========================================================================== */
.path-mod-quiz .que {
  background: white;
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.5rem;
}

.path-mod-quiz .que .info {
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.path-mod-quiz .que .content .answer div {
  padding: 0.6rem 1rem;
  margin-bottom: 0.4rem;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.path-mod-quiz .que .content .answer div:hover {
  background: #FAF8F5;
  border-color: #DFBA53;
}

/* Anillo de enfoque accesible global */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #0F2C59 !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   PERFECCIÓN RESPONSIVE MOBILE & TABLET (TOUCH & VIEWPORT OPTIMIZATION)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Global Anti-Horizontal Overflow */
  html, body, .fem-landing {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  /* 2. Navbar Flotante Compacto */
  .fem-navbar {
    top: 0.6rem !important;
    width: 94% !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 9999px !important;
  }
  .fem-brand {
    font-size: 1.05rem !important;
    gap: 0.4rem !important;
  }
  .fem-brand-badge {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
  }
  .fem-nav-actions {
    gap: 0.35rem !important;
  }
  .fem-btn-login {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.78rem !important;
  }
  .fem-btn-cta {
    padding: 0.42rem 0.8rem !important;
    font-size: 0.78rem !important;
  }

  /* 3. Hero Section Split */
  .fem-hero-split-section {
    padding: 5.2rem 1rem 2.5rem !important;
  }
  .fem-hero-split-container {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
  }
  .fem-hero-badge {
    font-size: 0.76rem !important;
    padding: 0.35rem 0.8rem !important;
    margin-bottom: 1rem !important;
  }
  .fem-hero-title {
    font-size: 1.95rem !important;
    line-height: 1.18 !important;
    margin-bottom: 1rem !important;
  }
  .fem-hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
  }
  .fem-hero-search-box {
    width: 100% !important;
    padding: 0.3rem 0.4rem 0.3rem 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }
  .fem-hero-search-input {
    font-size: 0.85rem !important;
    min-width: 0 !important;
  }
  .fem-hero-search-btn {
    padding: 0.55rem 0.95rem !important;
    font-size: 0.8rem !important;
  }
  .fem-hero-btns {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-bottom: 1.75rem !important;
  }
  .fem-btn-primary-large,
  .fem-btn-secondary-large {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
    text-align: center !important;
  }
  .fem-hero-social-proof {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
  }
  .fem-hero-trust {
    gap: 0.6rem 1rem !important;
    justify-content: flex-start !important;
    padding-top: 1rem !important;
  }
  .fem-trust-item {
    font-size: 0.8rem !important;
  }

  /* 4. Hero Visual Column & Anti-Overflow Floating Badges */
  .fem-hero-image-wrapper {
    max-width: 100% !important;
  }
  .fem-hero-main-card {
    border-radius: 24px !important;
    border-width: 3px !important;
  }
  .fem-hero-photo {
    height: 340px !important;
    object-position: center 15% !important;
  }
  .fem-floating-card {
    position: absolute !important;
    padding: 0.5rem 0.8rem !important;
    border-radius: 14px !important;
    gap: 0.6rem !important;
  }
  .fem-float-top-right {
    top: 0.75rem !important;
    right: 0.75rem !important;
  }
  .fem-float-bottom-left {
    bottom: 0.75rem !important;
    left: 0.75rem !important;
  }
  .fem-float-star,
  .fem-float-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.95rem !important;
    border-radius: 8px !important;
  }
  .fem-float-title {
    font-size: 0.82rem !important;
  }
  .fem-float-sub {
    font-size: 0.68rem !important;
  }

  /* 5. Secciones & Bento Grid */
  .fem-section {
    padding: 3.5rem 1rem !important;
  }
  .fem-section-header {
    margin-bottom: 2.25rem !important;
  }
  .fem-section-title {
    font-size: 1.7rem !important;
  }
  .fem-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .fem-bento-card {
    padding: 1.4rem !important;
    border-radius: 20px !important;
  }
  .fem-bento-card h3 {
    font-size: 1.2rem !important;
  }

  /* 6. Píldoras de Filtro Cursos con Scroll Horizontal Táctil */
  .fem-filter-pills-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    padding: 0.25rem 0.25rem 0.75rem !important;
    gap: 0.5rem !important;
    scrollbar-width: none;
  }
  .fem-filter-pills-container::-webkit-scrollbar {
    display: none;
  }
  .fem-filter-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.82rem !important;
    padding: 0.45rem 0.95rem !important;
  }

  /* 7. Catálogo de Cursos */
  .fem-courses-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .fem-course-card {
    border-radius: 18px !important;
  }
  .fem-course-body {
    padding: 1.25rem !important;
  }
  .fem-course-actions-row {
    flex-direction: column !important;
    gap: 0.6rem !important;
  }
  .fem-btn-outline-syllabus,
  .fem-course-actions-row .fem-btn-cta {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.6rem 1rem !important;
  }

  /* 8. Simulador STPS & Diploma */
  .fem-cert-simulator-wrapper {
    padding: 2rem 1.15rem !important;
    border-radius: 20px !important;
  }
  .fem-cert-simulator-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .fem-diploma-mockup-card {
    padding: 1.4rem 0.9rem !important;
    border-radius: 16px !important;
    border-width: 3px !important;
  }
  .fem-diploma-title {
    font-size: 1.05rem !important;
  }
  .fem-diploma-recipient {
    font-size: 1.2rem !important;
  }
  .fem-diploma-footer {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  /* 9. Directorio de Miembros / Red de Talento */
  .fem-members-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .fem-member-card {
    padding: 1.35rem !important;
    border-radius: 20px !important;
  }
  .fem-member-actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .fem-btn-cv,
  .fem-btn-linkedin {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* 10. Showcase Banner de Graduadas */
  .fem-grad-showcase-section {
    padding: 3rem 1rem !important;
  }
  .fem-grad-banner {
    border-radius: 24px !important;
    grid-template-columns: 1fr !important;
  }
  .fem-grad-text-col {
    padding: 2rem 1.25rem !important;
  }
  .fem-grad-title {
    font-size: 1.65rem !important;
  }
  .fem-grad-img-col {
    min-height: 240px !important;
    height: 250px !important;
  }

  /* 11. FAQ & Modal */
  .fem-faq-question {
    padding: 1rem 1.15rem !important;
    font-size: 0.92rem !important;
  }
  .fem-faq-answer {
    padding: 0 1.15rem !important;
  }
  .fem-faq-item.active .fem-faq-answer {
    padding-bottom: 1.15rem !important;
  }
  .fem-modal-card {
    border-radius: 20px !important;
    margin: 1rem !important;
    max-height: 85vh !important;
  }
  .fem-modal-header {
    padding: 1.25rem 1.25rem 1rem !important;
  }
  .fem-modal-title {
    font-size: 1.15rem !important;
  }
  .fem-modal-body {
    padding: 1rem 1.25rem !important;
  }
  .fem-modal-footer {
    padding: 1rem 1.25rem !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .fem-modal-footer button,
  .fem-modal-footer a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* 12. Footer */
  .fem-footer {
    padding: 3rem 1.25rem 2rem !important;
  }
  .fem-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .fem-footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }
  .fem-footer-legal {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  /* 14. Optimización Máxima Login en iOS / Móviles (iPhone 15 & Touch-first) */
  .fem-login-page {
    background: radial-gradient(circle at 50% 0%, rgba(197, 155, 39, 0.22) 0%, transparent 55%),
                radial-gradient(circle at 50% 100%, rgba(15, 44, 89, 0.12) 0%, transparent 50%),
                #F9F7F2 !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: hidden !important;
  }
  .fem-login-container {
    min-height: 100dvh !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)) !important;
  }
  .fem-login-form-side {
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    max-width: 430px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .fem-login-box {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1.5px solid rgba(197, 155, 39, 0.35) !important;
    border-radius: 28px !important;
    padding: 2.2rem 1.4rem !important;
    box-shadow: 0 20px 50px rgba(15, 44, 89, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
  }
  .fem-login-title {
    font-size: 1.85rem !important;
  }
  .fem-login-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }
  /* Prevenir zoom automático forzado en iOS Safari al enfocar */
  .fem-input-control {
    font-size: 16px !important;
    min-height: 52px !important;
    border-radius: 14px !important;
    padding: 0.8rem 2.8rem 0.8rem 2.85rem !important;
  }
  .fem-input-group label {
    font-size: 0.85rem !important;
  }
  .fem-checkbox-label {
    font-size: 0.82rem !important;
  }
  .fem-btn-auth-submit {
    min-height: 52px !important;
    font-size: 1.05rem !important;
    border-radius: 14px !important;
  }
  .fem-login-hero-side {
    display: none !important;
  }

  /* 15. Topbar Interno Compacto & Ocultamiento de Textos Largos */
  .fem-internal-topbar {
    padding: 0.65rem 1rem !important;
    padding-top: max(0.65rem, env(safe-area-inset-top)) !important;
  }
  .fem-topbar-left {
    gap: 0.5rem !important;
  }
  .fem-internal-nav {
    display: none !important;
  }
  .fem-user-info {
    display: none !important;
  }
  .fem-user-pill {
    padding: 0.25rem 0.5rem !important;
    background: transparent !important;
    border: none !important;
    gap: 0.4rem !important;
  }
  .fem-topbar-right {
    gap: 0.5rem !important;
  }
  .fem-edit-toggle {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  /* 16. Tabbar Móvil Inferior Fijo (Estilo App Nativa iOS / Android) */
  .fem-mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(197, 155, 39, 0.25) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0.45rem 0.5rem !important;
    padding-bottom: max(0.45rem, env(safe-area-inset-bottom)) !important;
    z-index: 99999 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
  }
  .fem-mobile-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.2rem !important;
    text-decoration: none !important;
    color: #64748B !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    flex: 1 !important;
    text-align: center !important;
    padding: 0.25rem 0 !important;
    transition: color 0.2s ease !important;
  }
  .fem-mobile-tab.active {
    color: #0F2C59 !important;
    font-weight: 800 !important;
  }
  .fem-mobile-tab-icon {
    font-size: 1.25rem !important;
    line-height: 1 !important;
  }

  /* Margen inferior para que el Tabbar móvil nunca tape el contenido */
  body.fem-internal-app #page-wrapper {
    padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
  }

  /* 17. Dashboard Banner & Mini Stats */
  .fem-dash-welcome {
    padding: 1.75rem 1.25rem !important;
    border-radius: 20px !important;
    margin-bottom: 1.5rem !important;
  }
  .fem-dash-title {
    font-size: 1.85rem !important;
  }
  .fem-dash-quick-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
  }
  .fem-stat-mini-card {
    min-width: 0 !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: 14px !important;
    gap: 0.6rem !important;
  }
  .fem-stat-icon {
    font-size: 1.35rem !important;
  }
  .fem-stat-val {
    font-size: 0.95rem !important;
  }
  .fem-stat-sub {
    font-size: 0.7rem !important;
  }

  /* 18. Formatos de Curso Moodle & Pestañas OneTopic */
  .onetopic .nav-tabs,
  .format-onetopic .onetopic .nav-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0.4rem !important;
    border-bottom: 2px solid #FAF8F5 !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .onetopic .nav-tabs::-webkit-scrollbar,
  .format-onetopic .onetopic .nav-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .onetopic .nav-link,
  .format-onetopic .onetopic .nav-link {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: 9999px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
  }
  .onetopic .nav-link.active,
  .format-onetopic .onetopic .nav-link.active {
    background: #0F2C59 !important;
    color: #FFFFFF !important;
    border-color: #0F2C59 !important;
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.25) !important;
  }

  /* 19. Navegación Secundaria de Moodle 4.x */
  .fem-secondary-nav-container {
    overflow: visible !important;
  }
  .fem-secondary-nav-container .more-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    gap: 0.4rem !important;
  }
  .fem-secondary-nav-container .nav-link {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.85rem !important;
  }

  /* 20. Quizzes & Cuestionarios Táctiles */
  .path-mod-quiz .que {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }
  .path-mod-quiz .que .content .answer div {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    gap: 0.5rem !important;
  }
  .path-mod-quiz .submitbtns {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .path-mod-quiz .submitbtns .btn {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 0.95rem !important;
  }
}

/* Ocultar barra inferior en pantallas de escritorio */
@media (min-width: 769px) {
  .fem-mobile-bottom-nav {
    display: none !important;
  }
}


/* ==========================================================================
   AAC GRUPO EMPRESARIAL - FULLSCREEN RESPONSIVE SLIDER & LUXURY GLASSMORPHISM
   Awwwards Grade · 100dvh Fullscreen Responsive Engine
   ========================================================================== */

/* Bloquear scroll en la portada para experiencia 100% fullscreen */
html.aac-frontpage-active,
body.aac-frontpage-active {
  overflow: hidden !important;
  height: 100% !important;
  height: 100dvh !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: fixed !important;
}

/* NAVBAR FLOTANTE GLASSMORPHISM INSTITUCIONAL */
.aac-floating-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1320px;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(232, 226, 213, 0.85);
  box-shadow: 0 20px 50px -10px rgba(15, 44, 89, 0.15), 0 0 1px 1px rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aac-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.aac-brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.aac-nav-brand:hover .aac-brand-logo-wrap {
  transform: scale(1.05);
}

.aac-brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aac-brand-text-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.aac-brand-main-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #0F2C59;
  line-height: 1.15;
}

.aac-brand-main-title span {
  color: #841A2B;
}

.aac-brand-sub-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Links de Navegación */
.aac-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .aac-nav-menu {
    display: none;
  }
}

.aac-nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #2C3539;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
}

.aac-nav-link:hover {
  color: #0F2C59;
  background: rgba(15, 44, 89, 0.06);
}

.aac-nav-link-catalog {
  background: rgba(197, 155, 39, 0.12);
  color: #0F2C59 !important;
  font-weight: 700;
  border: 1px solid rgba(197, 155, 39, 0.35);
}

.aac-nav-link-catalog:hover {
  background: rgba(197, 155, 39, 0.22);
}

/* Acciones en Navbar */
.aac-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.aac-btn-login {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0F2C59;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  background: transparent;
}

.aac-btn-login:hover {
  background: rgba(15, 44, 89, 0.08);
  color: #0A1E3D;
}

.aac-btn-cta {
  background: linear-gradient(135deg, #0F2C59, #1A4280 60%, #841A2B);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(15, 44, 89, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.aac-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(15, 44, 89, 0.4);
}

/* Botón menú móvil */
.aac-mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #0F2C59;
  font-size: 1.4rem;
  padding: 0.35rem;
  cursor: pointer;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .aac-mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   FULLSCREEN SLIDER STAGE
   ========================================================================== */
.aac-slider-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0A1E3D;
  z-index: 10;
}

.aac-slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
}

.aac-slide-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
}

/* Fondo con Ken Burns */
.aac-slide-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.aac-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 9s cubic-bezier(0.25, 1, 0.5, 1);
}

.aac-slide-item.active .aac-slide-img {
  transform: scale(1.08);
}

/* Overlays institucionales de lujo */
.aac-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 30, 61, 0.95) 0%,
    rgba(15, 44, 89, 0.85) 42%,
    rgba(10, 30, 61, 0.58) 75%,
    rgba(10, 30, 61, 0.38) 100%
  );
  z-index: 2;
}

.aac-slide-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(10, 30, 61, 0.65) 100%),
              linear-gradient(180deg, rgba(10, 30, 61, 0.55) 0%, transparent 40%, rgba(10, 30, 61, 0.8) 100%);
  pointer-events: none;
}

.aac-slide-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20viewBox%3D%220%200%20200%20200%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22noise%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.65%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23noise)%22%20opacity%3D%220.035%22%2F%3E%3C%2Fsvg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

/* CONTENEDOR DE CONTENIDO CON ANIMACIÓN COREOGRAFIADA */
.aac-slide-container {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  z-index: 10;
  box-sizing: border-box;
}

.aac-slide-card {
  max-width: 780px;
  background: rgba(10, 30, 61, 0.76);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(197, 155, 39, 0.42);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s, opacity 0.45s ease 0.08s;
}

.aac-slide-item.active .aac-slide-card {
  transform: translateY(0);
  opacity: 1;
}

.aac-slide-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.32) 0%, transparent 70%);
  pointer-events: none;
}

.aac-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 155, 39, 0.14);
  border: 1px solid rgba(197, 155, 39, 0.45);
  color: #DFBA53;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(197, 155, 39, 0.15);
}

.aac-slide-title {
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0 0 1.15rem;
  text-wrap: balance;
}

.aac-slide-title .gold-accent {
  background: linear-gradient(135deg, #FFFFFF 30%, #DFBA53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aac-slide-desc {
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  line-height: 1.6;
  color: #E2E8F0;
  margin: 0 0 1.65rem;
  font-weight: 400;
  max-width: 680px;
}

.aac-slide-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.aac-cred-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: #FAF8F5;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.aac-slide-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.aac-slide-btn-primary {
  background: linear-gradient(135deg, #C59B27 0%, #DFBA53 50%, #C59B27 100%);
  color: #0A1E3D !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 25px rgba(197, 155, 39, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.aac-slide-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(197, 155, 39, 0.5);
  color: #050E1D !important;
}

.aac-slide-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.aac-slide-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   FLECHAS DE NAVEGACIÓN LATERALES
   ========================================================================== */
.aac-slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 44, 89, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.aac-slider-nav-btn:hover {
  background: rgba(197, 155, 39, 0.85);
  color: #0A1E3D;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 14px 30px rgba(197, 155, 39, 0.4);
}

.aac-slider-prev {
  left: 2rem;
}

.aac-slider-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .aac-slider-nav-btn {
    display: none;
  }
}

/* ==========================================================================
   BARRA INFERIOR DE CONTROL Y PAGINACIÓN
   ========================================================================== */
.aac-slider-bottom-bar {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 30;
  box-sizing: border-box;
}

.aac-slide-counter {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  background: rgba(15, 44, 89, 0.55);
  backdrop-filter: blur(14px);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.aac-slide-counter .current {
  color: #DFBA53;
  font-size: 1.25rem;
}

.aac-slider-indicators {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.aac-indicator-pill {
  width: 32px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.4s ease, background 0.3s ease;
}

.aac-indicator-pill:hover {
  background: rgba(255, 255, 255, 0.5);
}

.aac-indicator-pill.active {
  width: 58px;
  background: rgba(255, 255, 255, 0.3);
}

.aac-indicator-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #C59B27, #DFBA53);
  border-radius: 9999px;
}

.aac-indicator-pill.active .aac-indicator-progress {
  width: 100%;
  transition: width 6s linear;
}

.aac-bottom-corp-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(15, 44, 89, 0.55);
  backdrop-filter: blur(14px);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .aac-bottom-corp-badge {
    display: none;
  }
}

/* ==========================================================================
   DRAWER / MODAL DEL CATÁLOGO DE CURSOS (GLASSMORPHISM)
   ========================================================================== */
.aac-catalog-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 30, 61, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.aac-catalog-drawer.active {
  opacity: 1;
  visibility: visible;
}

.aac-drawer-panel {
  width: 100%;
  max-width: 680px;
  height: 100%;
  background: #F9F7F2;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.aac-catalog-drawer.active .aac-drawer-panel {
  transform: translateX(0);
}

.aac-drawer-header {
  padding: 1.5rem 2rem;
  background: #FAF8F5;
  border-bottom: 1px solid #E8E2D5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.aac-drawer-title-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F2C59;
  margin: 0;
}

.aac-drawer-title-group p {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0.2rem 0 0;
}

.aac-drawer-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  color: #2C3539;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aac-drawer-close-btn:hover {
  background: #841A2B;
  color: #FFFFFF;
  border-color: #841A2B;
}

.aac-drawer-search-wrap {
  padding: 1rem 2rem;
  background: #FAF8F5;
  border-bottom: 1px solid #E8E2D5;
}

.aac-drawer-search-input {
  width: 100%;
  padding: 0.7rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid #E8E2D5;
  background: #FFFFFF;
  font-size: 0.9rem;
  font-family: inherit;
  color: #2C3539;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.aac-drawer-search-input:focus {
  border-color: #0F2C59;
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.12);
}

.aac-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.aac-drawer-course-card {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(15, 44, 89, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.aac-drawer-course-card:hover {
  transform: translateY(-2px);
  border-color: #0F2C59;
  box-shadow: 0 10px 25px rgba(15, 44, 89, 0.08);
}

.aac-course-cat-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0F2C59;
  background: rgba(15, 44, 89, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.aac-course-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F2C59;
  margin: 0;
  line-height: 1.3;
}

.aac-course-card-desc {
  font-size: 0.85rem;
  color: #485358;
  line-height: 1.5;
  margin: 0;
}

.aac-course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #F4EFE6;
}

.aac-course-card-meta {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 600;
}

.aac-course-card-btn {
  background: linear-gradient(135deg, #0F2C59, #1A4280);
  color: #FFFFFF !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.aac-course-card-btn:hover {
  background: linear-gradient(135deg, #841A2B, #A3263B);
  transform: translateY(-1px);
}

.aac-drawer-footer {
  padding: 1.25rem 2rem;
  background: #FAF8F5;
  border-top: 1px solid #E8E2D5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================================================
   ADAPTATIVIDAD PARA CUALQUIER DISPOSITIVO (RESPONSIVE RULES)
   ========================================================================== */
@media (max-width: 768px) {
  .aac-floating-nav {
    top: 0.65rem;
    width: calc(100% - 1.25rem);
    padding: 0.45rem 0.85rem;
    gap: 0.5rem;
  }

  .aac-brand-logo-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    padding: 1px;
  }

  .aac-brand-main-title {
    font-size: 0.95rem;
  }

  .aac-brand-sub-title {
    display: none;
  }

  .aac-nav-actions {
    gap: 0.4rem;
  }

  .aac-btn-login {
    display: none;
  }

  .aac-btn-cta {
    padding: 0.42rem 0.95rem;
    font-size: 0.8rem;
  }

  .aac-mobile-menu-btn {
    display: flex;
    flex-shrink: 0;
    padding: 0.25rem;
  }

  .aac-slide-container {
    padding: 5rem 1rem 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .aac-slide-card {
    padding: 1.25rem 1.15rem;
    border-radius: 20px;
    background: rgba(10, 30, 61, 0.85);
    backdrop-filter: blur(28px);
    max-width: 100%;
    margin: 0 auto;
  }

  .aac-slide-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .aac-slide-title {
    font-size: 1.55rem;
    line-height: 1.18;
    margin-bottom: 0.65rem;
  }

  .aac-slide-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }

  .aac-slide-credentials {
    gap: 0.35rem;
    margin-bottom: 1.25rem;
  }

  .aac-cred-pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
  }

  .aac-slide-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .aac-slide-btn-primary,
  .aac-slide-btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .aac-slider-bottom-bar {
    bottom: 0.85rem;
    width: calc(100% - 1.5rem);
  }

  .aac-slide-counter {
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
  }

  .aac-indicator-pill {
    width: 22px;
    height: 5px;
  }

  .aac-indicator-pill.active {
    width: 40px;
  }

  .aac-drawer-panel {
    max-width: 100%;
  }

  .aac-drawer-header,
  .aac-drawer-search-wrap,
  .aac-drawer-body,
  .aac-drawer-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 380px) {
  .aac-slide-title {
    font-size: 1.35rem;
  }
  .aac-slide-actions {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   ESTILOS DEL FORMULARIO DE REGISTRO (SIGNUP) Y RECUPERACIÓN
   -------------------------------------------------------------------------- */
.fem-signup-page .fem-login-box {
  max-width: 580px;
}

.fem-signup-page .fem-login-form-side {
  overflow-y: auto;
  max-height: 100vh;
}

.fem-signup-form-container .mform fieldset {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: #FFFFFF;
}

.fem-signup-form-container .mform legend {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F2C59;
  padding: 0 0.5rem;
  width: auto;
}

.fem-signup-form-container .mform .fitem {
  margin-bottom: 1rem;
}

.fem-signup-form-container .mform .col-form-label {
  font-weight: 600;
  color: #1E293B;
  font-size: 0.9rem;
}

.fem-signup-form-container .mform .form-control,
.fem-signup-form-container .mform select {
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
  color: #1E293B;
  transition: all 0.2s ease;
}

.fem-signup-form-container .mform .form-control:focus,
.fem-signup-form-container .mform select:focus {
  border-color: #0F2C59;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.15);
  outline: none;
}

.fem-signup-form-container .mform #id_submitbutton,
.fem-signup-form-container .mform input[type="submit"].btn-primary {
  background: linear-gradient(135deg, #0F2C59, #1A4280) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  border: none;
  box-shadow: 0 4px 12px rgba(15, 44, 89, 0.25);
  transition: all 0.2s ease;
}

.fem-signup-form-container .mform #id_submitbutton:hover,
.fem-signup-form-container .mform input[type="submit"].btn-primary:hover {
  background: linear-gradient(135deg, #841A2B, #9E1F34) !important;
  transform: translateY(-1px);
}

.fem-signup-form-container .mform #id_cancel,
.fem-signup-form-container .mform input[type="submit"].btn-secondary {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  border: 1px solid #CBD5E1;
}
