/* =======================================
   VARIABLES
======================================= */
:root {
  --primary: #F65A5B;
  --dark: #204056;
  --light: #ffffff;
  --gray: #f4f4f4;
  --text: #333;
}

/* =======================================
   RESET
======================================= */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--light);
}

/* =======================================
   HEADER
======================================= */
header {
  background: var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo img {
  height: 50px;
  object-fit: contain;
}

header nav a {
  margin-left: 25px;
  text-decoration: none;
  color: var(--dark);
  font-weight: bold;
}

/* =======================================
   HERO
======================================= */
.hero {
  position: relative;
  padding: 40px 50px;
  min-height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* necesario para el video */
}

/* VIDEO COMO FONDO */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* TEXTO ENCIMA DEL VIDEO */
.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 10;
  max-width: 500px;
  margin-left: auto;
  text-align: right;
}

.hero-title {
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--dark), var(--primary), var(--dark));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineMove 6s ease-in-out infinite;
  display: inline-block;
}

.hero-title span {
  display: block; 
}

.hero-title .light {
  font-weight: 300;
  font-size: 53px; /* tamaño más pequeño */
  letter-spacing: 2px;
}

.hero-title .bold {
  font-weight: 900;
  font-size: 100px; /* tamaño mucho más grande */
}

@keyframes shineMove {
  0% { background-position: 0%; }
  50% { background-position: 100%; }
  100% { background-position: 0%; }
}

.hero-text p {
  font-size: 18px;
  color: var(--dark);
}

/* BOTÓN INSCRÍBETE — MEJORADO Y LLAMATIVO */
.start-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 15px 28px;
  margin-top: 18px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 14px;
  text-decoration: none;
  letter-spacing: .5px;

  /* efectos */
  box-shadow: 0 6px 18px rgba(246, 90, 91, 0.35);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Brillo suave animado */
.start-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0) 100%
  );
  transition: .6s;
}

/* Hover */
.start-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 26px rgba(246, 90, 91, 0.45);
}

/* Mueve el brillo cuando pasas el mouse */
.start-btn:hover::after {
  left: 100%;
}
/* =======================================
   TITULOS GENERALES
======================================= */
.section-title {
  text-align: center;
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.section-title img {
  height: 40px;
}

/* =======================================
   GRID UNIVERSAL
======================================= */
.grid {
  display: grid;
  gap: 25px;
}

.grid-250 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-content: center;
}

.grid-280 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* =======================================
   CURSOS POPULARES
======================================= */
.courses {
  padding: 60px 50px;
}

.course {
  background: white;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: 0.3s;
}

.course:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.course h3 {
  color: var(--primary);
  margin-top: 0;
}

/* =======================================
   CATEGORÍAS
======================================= */
.categories {
  padding: 60px 50px;
  background: #fff;
}

.category-card {
  background: var(--gray);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #ddd;
}


.cat-btn {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* SLIDER */
.course-slider {
  display: none;
  background: white;
  margin-top: 15px;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.slider-page {
  min-height: 140px;
}

.slider-arrows {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.arrow-btn {
  padding: 8px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Bullets */
.bullet-nav {
  text-align: center;
  margin-top: 10px;
}

.bullet {
  width: 10px;
  height: 10px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 4px;
  cursor: pointer;
  transition: .3s;
}

.bullet.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* =======================================
   HABILIDADES DE PODER
======================================= */
.power-skills {
  padding: 60px 50px;
  background: #e9ecef;
}

.power-item {
  background: var(--gray);
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  color: var(--dark);
  border: 1px solid #ddd;
  transition: 0.25s;
}

.power-item:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* =======================================
   TESTIMONIOS
======================================= */
.testimonials {
  padding: 60px 50px;
  background: var(--gray);
}

.testimonial {
  background: white;
  padding: 25px;
  border-left: 5px solid var(--primary);
  border-radius: 6px;
  font-style: italic;
}

.testimonial-list {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* =======================================
   FOOTER
======================================= */
footer {
  background: var(--dark);
  color: white;
  padding: 40px;
  text-align: center;
}
/* Animación al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 3.5s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Capa blanca suave fija */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0); /* invisible en desktop */
  backdrop-filter: blur(6px); /* suaviza sin verse raro */
  opacity: 0;
  transition: opacity 0.6s ease, background 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

/* Móviles: blanco suave sin oscurecer */
@media (max-width: 768px) {
  .hero::after {
    background: rgba(255, 255, 255, 0.28); /* blanco transparente real */
    opacity: 1;
  }
}

/* --- Header responsivo --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px;
  }

  header nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  header nav a {
    margin: 0;
    font-size: 18px;
  }
}
/* Hover suave para tarjetas de categorías */
.category-card {
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* ==========================================
   ESTILO PARA ENLACES DE CURSOS
========================================== */

.curso-link {
  display: block;
  padding: 10px 15px;
  margin: 6px 0;
  background: #f5f5f5;
  color: #204056;
  text-decoration: none;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.25s ease;
  border-left: 4px solid transparent;
}

/* Al pasar el mouse */
.curso-link:hover {
  background: #e8eef3;
  border-left: 4px solid #0077b6;
  transform: translateX(4px);
}

/* El puntito se verá más bonito */
.curso-link::before {
  content: "• ";
  color: #0077b6;
  font-weight: bold;
}
.info-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: .25s ease;
}

.info-btn:hover {
  background: #d94d4e;
  transform: translateX(4px);
}

/* ================================
   HERO RESPONSIVO PARA CELULARES
================================ */
@media (max-width: 768px) {

  /* Centrar todo el texto */
  .hero-text {
    text-align: center;
    margin: 0 auto;
  }

  /* Reducir tamaño del título */
  .hero-title .light {
    font-size: 32px;   /* antes 53px */
  }

  .hero-title .bold {
    font-size: 60px;   /* antes 100px */
  }

  /* Ajustar párrafo */
  .hero-text p {
    font-size: 15px;
    margin-top: 10px;
  }

  /* Centrar el botón */
  .start-btn {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================
   BOTÓN "ACCEDER ✱" — ESTILO DIFERENTE AL DE INSCRÍBETE
========================================================== */

/* Estilo base de enlaces */
header nav a {
  padding: 10px 18px;
  border-radius: 30px; /* estilo pill, diferente al de Inscríbete */
  transition: 0.25s ease;
  font-weight: bold;
}

/* Botón destacado */
header nav a:last-child {
  background: var(--dark); /* el color del footer */
  color: white;
  border: 2px solid white;  /* borde fino elegante */
  letter-spacing: 0.5px;
  box-shadow: 0 0 0 rgba(0,0,0,0); /* limpio */
}

/* Hover */
header nav a:last-child:hover {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
}

/* Hover del otro enlace para que combine */
header nav a:first-child:hover {
  color: var(--primary);
}

/* ==========================================================
   ACCEDER ✱ — VERSIÓN MÓVIL FULL WIDTH
========================================================== */
@media (max-width: 768px) {

  /* Contenedor del menú centrado */
  header nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Los enlaces ocuparán todo el ancho */
  header nav a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
  }

  /* Botón Acceder ✱ — versión rectangular */
  header nav a:last-child {
    border-radius: 12px;   /* ya no pill, ahora rectángulo suave */
    border: none;          /* limpio */
    background: var(--dark);
    color: white;
    font-size: 18px;
  }

  /* Hover en móvil (sutil) */
  header nav a:last-child:hover {
    opacity: 0.85;
    transform: none;
  }
}

@media (max-width: 768px) {
  .header-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-acceder {
    width: 100%;
    display: block;
    padding: 14px;
    border-radius: 8px;
    background: #004e4f;
    color: white;
    text-align: center;
    box-shadow: none;
  }

  .btn-acceder:focus,
  .btn-acceder:focus-visible {
    outline: none;
  }
}
/* MODAL BASE */
.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;   /* solo horizontal */
  align-items: flex-start;   /* ya NO centra vertical */
  padding-top: 10vh;         /* punto fijo desde arriba */
  z-index: 9999;
}

.info-modal.active {
  display: flex;
}

/* CAJA */
.info-content {
  background: #f5f7f8;
  max-width: 900px;
  width: 90%;
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

/* TITULOS */
.info-title {
  text-align: center;
  font-size: 2rem;
  color: #f65a5b;
  margin-bottom: 0.5rem;
}

.info-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 2rem;
}

/* GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ITEM */
.info-item {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.info-item h3 {
  margin: 1rem 0 0.5rem;
  color: #204056;
}

.info-item p {
  font-size: 0.95rem;
  color: #444;
}

/* CERRAR */
.info-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-content {
    padding: 1.5rem;
  }
}

/* =======================================
   ICONOS PNG EN MODAL INFO
======================================= */

.info-icon-img {
  width: 70px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

/* Ajuste en móviles */
@media (max-width: 768px) {
  .info-icon-img {
    width: 55px;
  }
}

/* ================================
   MODAL DE CURSOS – ESTILO CLARO
================================ */


.info-modal.show {
  display: flex;
}

.info-content {
  background: #ffffff;
  color: #204056;
  padding: 32px;
  border-radius: 16px;
  max-width: 620px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Botón cerrar */
.info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #204056;
}

/* ================================
   MODAL INSCRIPCIÓN
================================ */

.hidden {
  display: none;
}

.volver {
  cursor: pointer;
  color: #0a6cff;
  margin-bottom: 1rem;
  font-weight: 500;
}

.volver:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}



/* ================================
   TABS OBJETIVO / TEMARIO
================================ */

.modal-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  border-bottom: 1px solid #e5e7eb;
  margin: 1.5rem 0 1.8rem;
}

.modal-tabs button {
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  position: relative;
}

.modal-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.25s ease;
}

.modal-tabs button.active {
  color: #204056;
  font-weight: 600;
}

.modal-tabs button.active::after {
  background-color: #204056;
}



/* ================================
   CONTENIDO
================================ */

#cursoObjetivo,
#cursoTemario {
  line-height: 1.7;
  font-size: 1rem;
}

/* Utilidad */
.hidden {
  display: none;
}

/* ================================
   RESPONSIVE (CELULARES)
================================ */

@media (max-width: 480px) {

  .info-content {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .modal-tabs {
    gap: 12px;
  }

  .modal-tabs button {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

}

/* =======================================
   BOTONES DE CURSOS – PREMIUM
======================================= */

.curso-btn {
  width: 100%;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e1e7ee;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;

  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* Hover */
.curso-btn:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 18px 36px rgba(246, 90, 91, 0.28);
  background: linear-gradient(180deg, #ffffff, #fff4f4);
}

/* Contenido */
.curso-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Título */
.curso-titulo {
  font-size: 15.5px;
  font-weight: 700;
  color: #204056;
  line-height: 1.35;
}

/* Footer */
.curso-footer {
  display: flex;
  justify-content: flex-end;
}

/* Chip */
.curso-chip {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(246, 90, 91, 0.12);
  transition: all 0.25s ease;
}

/* Hover interno */
.curso-btn:hover .curso-chip {
  background: var(--primary);
  color: white;
}

/* Active */
.curso-btn:active {
  transform: scale(0.97);
}

/* =======================================
   CORRECCIÓN DE ALINEACIÓN DE CURSOS
======================================= */

.curso-btn {
  text-align: left;          /* 👈 fuerza izquierda */
}

.curso-content {
  align-items: flex-start;   /* 👈 evita centrado por flex */
}

.curso-titulo {
  text-align: left;          /* 👈 lectura natural */
}

/* Footer mantiene CTA a la derecha */
.curso-footer {
  width: 100%;
  justify-content: flex-end;
}

/* =======================================
   CATEGORÍA ACTIVA
======================================= */

.cat-btn {
  transition: all 0.25s ease;
}

/* ==================================================
   CATEGORÍAS ACTIVAS — SOLO ESCRITORIO
================================================== */

@media (min-width: 769px) {

  /* Categorías no activas (solo visual) */
  section.has-active .category-card:not(.active) {
    transform: scale(0.88);
    opacity: 0.45;
    filter: blur(0.2px);
    transition: all 0.35s ease;
  }

  /* Tarjeta activa */
  .category-card.active {
    grid-column: 1 / -1;
    order: -1;

    transform: scale(1);
    opacity: 1;
    filter: none;

    background: #ffffff;
    z-index: 50;
    overflow: visible;
  }

  /* Mostrar cursos SOLO en la activa */
  .category-card.active .course-slider {
    display: block;
  }

}

/* ==================================================
   MÓVIL: comportamiento acordeón
================================================== */

@media (max-width: 768px) {

  .course-slider {
    display: none;
  }

  .category-card.active .course-slider {
    display: block;
  }

}

/* ==================================================
   HOVER PREVIEW EN PC (CATEGORÍAS NO ACTIVAS)
================================================== */

@media (min-width: 769px) {

  /* Hover sobre tarjetas no activas */
  section.has-active .category-card:not(.active):hover {
    opacity: 0.9;
    filter: none;
    transform: scale(0.92);
    z-index: 5;
  }

}
/* =======================================
   BUSCADOR DE CURSOS
======================================= */

.course-search {
  max-width: 520px;
  margin: 0 auto 35px;
  position: relative;
}

.course-search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
  transition: 0.25s ease;
}

.course-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(246, 90, 91, 0.15);
}

/* Icono lupa */
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.6;
}

/* Resultados */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  overflow: hidden;
  display: none;
  z-index: 100;
}

.search-results.active {
  display: block;
}

.search-item {
  padding: 14px 18px;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #f5f7f9;
  color: var(--primary);
}


/* =========================================
   COLORES SERIOS E INSTITUCIONALES
========================================= */

.cat-da .cat-btn {
  background: #4A63D8;
}

.cat-dpm .cat-btn {
  background: #3FAEC7;
}

.cat-dpes .cat-btn {
  background: #4CB7A5;
}

.cat-dir .cat-btn {
  background: #f07f38; ;
}

.cat-dj .cat-btn {
  background: #9932b2;
}

.cat-df .cat-btn {
  background: #58d26e;
}

.cat-didt .cat-btn {
  background: #da4d96;
}

.cat-doe .cat-btn {
  background: #E6A23C;
}

.cat-bg .cat-btn {
  background: #5F8FE3;
}

.cat-ss .cat-btn {
  background: #5F8FE3;
}

.cat-sm .cat-btn {
  background: #5F8FE3;
}

/* Texto botones */
.category-card .cat-btn {
  color: #fff;
  font-weight: 600;
}

/* Bordes por categoría */
.category-card {
  border-left: 5px solid transparent;
}

.cat-da   { border-left-color: #4A63D8; }
.cat-dpm  { border-left-color: #3FAEC7; }
.cat-dpes { border-left-color: #4CB7A5; }
.cat-dir  { border-left-color: #f07f38; }
.cat-dj   { border-left-color: #9932b2; }
.cat-df   { border-left-color: #58d26e; }
.cat-didt { border-left-color: #da4d96; }
.cat-doe  { border-left-color: #E6A23C; }
.cat-bg,.cat-ss,.cat-sm  { border-left-color: #5F8FE3; }
/* =========================================
   FIX BUSCADOR CORTADO – SOLO MÓVIL
========================================= */

@media (max-width: 767px) {

  /* Asegurar que nada lo recorte */
  .categories,
  .categories * {
    overflow: visible;
  }

  /* Sacar el buscador del grid visualmente */
  .course-search {
    width: calc(100% - 24px);
    margin: 16px auto 24px;
    display: block;
  }

  .course-search input {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  /* Resultados no se cortan */
  .search-results {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
  }

}

/* =======================================
   MODAL DE CURSOS – ESTILO INSTITUCIONAL
======================================= */

/* TÍTULO */
#cursoModal .info-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: #204056;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

/* Descripción */
.curso-descripcion {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 18px;
}

/* Meta info del curso */
.curso-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #374151;

  padding-left: 14px;
  border-left: 3px solid #e5e7eb;
  margin-bottom: 22px;
}

.curso-meta strong {
  color: #204056;
  font-weight: 600;
}

/* Botón Inscribirme — alineado a la izquierda */
#cursoModal .start-btn {
  margin-left: 0;
}

/* En móvil sigue viéndose bien */
@media (max-width: 480px) {
  .curso-meta {
    font-size: 13.5px;
  }
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}
.course-count {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}

/* BOTÓN FLOTANTE CONCLUIR */
.btn-concluir {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: var(--dark);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  transition: transform .2s ease, opacity .2s ease;
}

.btn-concluir:hover {
  transform: translateY(-2px);
}

.btn-concluir.hidden {
  display: none;
}

/* -- */

/* Link de carrito en header */
.cart-link {
  background: rgba(32, 64, 86, 0.08);
  border: 1px solid rgba(32, 64, 86, 0.18);
  color: var(--dark);
}

.cart-link:hover {
  background: rgba(246, 90, 91, 0.10);
  border-color: rgba(246, 90, 91, 0.35);
  color: var(--primary);
}

/* Lista carrito */
.cart-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.cart-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cart-item .title {
  font-weight: 700;
  color: #204056;
  font-size: 14.5px;
  line-height: 1.3;
}

.cart-item .code {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.cart-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: #9ca3af;
}

.cart-remove:hover {
  color: var(--primary);
}

/* Bootstrap navbar toggler icon visible (si te sale invisible en algunos fondos) */
.navbar-toggler { border: 1px solid rgba(0,0,0,.15); }
.navbar-toggler-icon { filter: none; }

/* Evitar que tu selector "header nav a" pise demasiado a Bootstrap */
header .nav-link { padding: 10px 18px; }

/* Bootstrap layout: cuando una categoría se activa, que ocupe todo el ancho */
.category-col-active {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Activa: ancho completo */
.category-col-active{
  flex: 0 0 100%;
  max-width: 100%;
}

/* Activa: mover al inicio del row */
.category-col-top{
  order: -1;
}

/* (opcional) transiciones suaves */
.category-col-active,
.category-col-top{
  transition: all .25s ease;
}

.category-col-active{
  flex: 0 0 100%;
  max-width: 100%;
}

.category-col-top{
  order: -1;
}

.category-card.active{
  animation: cardPop .18s ease-out;
}

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

/* ==========================================================
   MODALES – BASE (aplica a todos)
========================================================== */
.info-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;                /* cerrado por defecto */
  justify-content: center;
  align-items: flex-start;
  padding: 8vh 16px 16px;       /* espacio arriba + padding lateral */
  z-index: 9999;
}

.info-modal.active,
.info-modal.show{
  display: flex;
}

/* contenido base */
.info-modal .info-content{
  width: 100%;
  background: #fff;
  border-radius: 20px;
  position: relative;
  overflow: hidden;             /* evita “desbordes” */
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}

/* botón cerrar base */
.info-modal .info-close{
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(255,255,255,.85);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 22px;
  cursor: pointer;
  color: #204056;
  display: grid;
  place-items: center;
}

/* ==========================================================
   INFO MODAL (el grande) – SOLO #infoModal
========================================================== */
#infoModal{
  align-items: center;          /* este sí puede ir centrado */
  padding: 6vh 16px 16px;
}

#infoModal .info-content{
  max-width: 980px;             /* grande */
  max-height: 86vh;
  overflow: auto;
  padding: 32px;
  background: #f5f7f8;
}

#infoModal .info-title{
  text-align: center;
  font-size: 2rem;
  color: #f65a5b;
  margin: 0 0 .5rem;
}

#infoModal .info-subtitle{
  text-align: center;
  color: #555;
  margin: 0 0 1.6rem;
}

#infoModal .info-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

#infoModal .info-item{
  background: #fff;
  padding: 1.25rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

#infoModal .info-icon-img{
  width: 70px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

@media (max-width: 768px){
  #infoModal{
    align-items: flex-start;    /* móvil: mejor arriba para que no “brinque” */
    padding-top: 10vh;
  }

  #infoModal .info-content{
    padding: 20px;
    border-radius: 16px;
  }

  #infoModal .info-grid{
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #infoModal .info-icon-img{
    width: 55px;
  }
}

/* ==========================================================
   CURSO + CARRITO (angostos) – SOLO #cursoModal y #cartModal
========================================================== */
#cursoModal .info-content,
#cartModal  .info-content{
  max-width: 720px;
  max-height: 85vh;
  overflow: auto;
  padding: 28px;
  background: #fff;
}

/* en móvil un poquito más compacto */
@media (max-width: 480px){
  #cursoModal .info-content,
  #cartModal  .info-content{
    padding: 22px 18px;
    border-radius: 14px;
  }
}

/* Espaciado dentro de la card de categoría */
.category-card p{
  margin-top: 12px;   /* separa del botón/título */
  margin-bottom: 10px;
  line-height: 1.45;
}

/* (opcional) si quieres aún más aire */
.category-card .cat-btn{
  margin-bottom: 6px;
}

.popular-course { cursor: pointer; }
.popular-course:hover { transform: translateY(-2px); transition: .2s; }

/*===================
ETIQUETA CURSO
=====================*/

/* Badge */
.curso-cat-wrap{
  display: flex;
  justify-content: center;
  margin: -6px 0 10px;
}

.curso-cat-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .2px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.04);
  color: #204056;
}

/* Borde “identificador” en el modal */
#cursoModal .info-content{
  border-top: 6px solid transparent; /* por defecto */
}

/* Colores (usa los mismos que ya definiste para categorías) */
#cursoModal .info-content.cat-da   { border-top-color:#4A63D8; }
#cursoModal .info-content.cat-dpm  { border-top-color:#3FAEC7; }
#cursoModal .info-content.cat-dpes { border-top-color:#4CB7A5; }
#cursoModal .info-content.cat-dir  { border-top-color:#f07f38; }
#cursoModal .info-content.cat-dj   { border-top-color:#9932b2; }
#cursoModal .info-content.cat-df   { border-top-color:#58d26e; }
#cursoModal .info-content.cat-didt { border-top-color:#da4d96; }
#cursoModal .info-content.cat-doe  { border-top-color:#E6A23C; }
#cursoModal .info-content.cat-bg   { border-top-color:#5F8FE3; }
#cursoModal .info-content.cat-fo,
#cursoModal .info-content.cat-fg,
#cursoModal .info-content.cat-ea,
#cursoModal .info-content.cat-fad{
  border-top-color: var(--primary);
}
#cursoModal .info-content.cat-ss,
#cursoModal .info-content.cat-sm{
  border-top-color:#5F8FE3;
}


/* Badge con el mismo color (solo la “rayita”) */
.curso-cat-badge::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  opacity: .7;
}

/* Ajuste del color del badge según categoría */
.curso-cat-badge.cat-da   { color:#4A63D8; background: rgba(74,99,216,.10); }
.curso-cat-badge.cat-dpm  { color:#3FAEC7; background: rgba(63,174,199,.10); }
.curso-cat-badge.cat-dpes { color:#4CB7A5; background: rgba(76,183,165,.10); }
.curso-cat-badge.cat-dir  { color:#f07f38; background: rgba(240,127,56,.10); }
.curso-cat-badge.cat-dj   { color:#9932b2; background: rgba(153,50,178,.10); }
.curso-cat-badge.cat-df   { color:#58d26e; background: rgba(88,210,110,.10); }
.curso-cat-badge.cat-didt { color:#da4d96; background: rgba(218,77,150,.10); }
.curso-cat-badge.cat-doe  { color:#E6A23C; background: rgba(230,162,60,.12); }
.curso-cat-badge.cat-bg,.curso-cat-badge.cat-ss,.curso-cat-badge.cat-sm   { color:#5F8FE3; background: rgba(95,143,227,.10); }
.curso-cat-badge.cat-fo,
.curso-cat-badge.cat-fg,
.curso-cat-badge.cat-ea,
.curso-cat-badge.cat-fad{
  color: var(--primary);
  background: rgba(246, 90, 91, .10);
}



/* Manita en el link de volver */
.volver-link{
  cursor: pointer;
  user-select: none;
}
.volver-link:hover{
  text-decoration: underline;
}

/* Botón deshabilitado (cuando el curso ya está agregado) */
.start-btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Espaciado vertical estándar entre secciones */
.courses,
.categories,
.power-skills,
.testimonials{
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Si quieres un extra específico entre Cursos Populares y Categorías */
.courses{
  padding-bottom: 30px; /* reduce o aumenta */
}
.categories{
  padding-top: 20px;    /* aumenta o reduce */
}
.testimonials{
  padding-top: 20px;    /* aumenta o reduce */
}

/* Modal de ayuda */
.insc-help { max-width: 720px; }

.insc-steps{
  margin: 0;
  padding-left: 1.2rem;
  color: #374151;
  line-height: 1.7;
  font-size: 1rem;
}

.insc-steps li{
  margin: .65rem 0;
}

/* Acciones en confirmación */
#cursoConfirmacion .modal-actions{
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap; /* si no cabe, baja */
  margin-top: 18px;
}

/* En móvil: apilados y full width */
@media (max-width: 576px){
  #cursoConfirmacion .modal-actions{
    flex-direction: column;
    align-items: stretch;
  }
  #cursoConfirmacion .modal-actions .start-btn{
    width: 100%;
    text-align: center;
  }
}

/* Botón secundario (menos “protagónico”) */
.start-btn.btn-secondary{
  background: rgba(32, 64, 86, 0.10);
  color: var(--dark);
  box-shadow: none;
}

.start-btn.btn-secondary:hover{
  background: rgba(32, 64, 86, 0.16);
  transform: translateY(-2px);
}


.toast-msg{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(32, 64, 86, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
  font-weight: 700;
  font-size: 14.5px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100% - 24px);
  text-align: center;
}

.toast-msg.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-periodo{
  text-align: center;
  margin: -8px 0 14px;
  font-weight: 700;
  color: var(--dark);
  opacity: .9;
}

/*---*/

.cart-ident{
  margin: 14px 0 18px;
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: grid;
  gap: 10px;
}

.cart-ident .form-label{
  margin: 0;
  font-weight: 700;
  color: #204056;
}

.cart-ident .form-control{
  width: 100%;
  border-radius: 10px;
  padding: 12px 12px;
  border: 1px solid #cfd6de;
}

.cart-ident .start-btn{
  width: 100%;
  margin-top: 2px;
}

.mini-msg{
  font-size: 13px;
  color: #6b7280;
  margin-top: -4px;
}

.mini-msg.ok{ color: #0f766e; }
.mini-msg.err{ color: #b91c1c; }

.volver-link { cursor: pointer; }

.mini-msg{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  background: rgba(246, 90, 91, .10);
  border: 1px solid rgba(246, 90, 91, .25);
}

.secondary-btn{
  background: transparent !important;
  border: 1px solid rgba(0,0,0,.15) !important;
  color: inherit !important;
}

.secondary-btn:hover{
  border-color: rgba(0,0,0,.28) !important;
}

.volver-link{ cursor:pointer; }
.hidden{ display:none !important; }

/* ===== Modal inscripción: bloques ===== */
#cursoInscripcion .insc-block{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

#cursoInscripcion .insc-block-primary{
  border-left: 5px solid var(--primary, #5F8FE3);
  background: rgba(95,143,227,.06);
}

#cursoInscripcion .insc-title{
  margin: 0 0 12px 0;
  font-weight: 700;
  line-height: 1.35;
}

/* ===== fila búsqueda: input + botón ===== */
#cursoInscripcion .insc-search-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}

#cursoInscripcion label{
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}

#cursoInscripcion input{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  outline: none;
}

#cursoInscripcion input:focus{
  border-color: var(--primary, #5F8FE3);
  box-shadow: 0 0 0 3px rgba(95,143,227,.18);
}

#cursoInscripcion .mini-msg{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(246, 90, 91, .10);
  border: 1px solid rgba(246, 90, 91, .25);
  color: #a61c1c;
  font-weight: 600;
  line-height: 1.35;
}

/* Botón de atrás con "manita" */
#cursoInscripcion .volver-link{
  cursor: pointer;
}

/* Botón secondary (si no lo tienes) */
.secondary-btn{
  background: transparent;
  border: 1px solid rgba(0,0,0,.15);
  color: #111;
}

/* Utilidad simple */
.w-100{ width: 100%; }

/* Responsive: en móvil el botón Buscar baja */
@media (max-width: 520px){
  #cursoInscripcion .insc-search-row{
    grid-template-columns: 1fr;
  }
  #cursoInscripcion .insc-search-row .start-btn{
    width: 100%;
  }
}

/* ===== Fila de búsqueda: input + botón ===== */
#cursoInscripcion .insc-search-row{
  display: flex;
  gap: 12px;
  align-items: stretch;          /* mismo alto */
  margin-top: 10px;
  flex-wrap: wrap;               /* evita desbordes */
}

#cursoInscripcion .insc-search-row .form-group{
  flex: 1 1 260px;               /* crece, pero puede bajar en móvil */
  min-width: 0;                  /* MUY importante para que no se salga */
}

#cursoInscripcion .insc-search-row label{
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

/* input consistente */
#cursoInscripcion .insc-search-row input{
  width: 100%;
  height: 44px;                  /* mismo alto que botón */
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;        /* evita que se salga por padding */
}

/* botón consistente (SIN cambiar tu .start-btn global) */
#cursoInscripcion .insc-search-row .start-btn{
  height: 44px;                  /* igual al input */
  padding: 0 18px;               /* menos alto, más controlado */
  white-space: nowrap;
  flex: 0 0 auto;
  align-self: flex-end;          /* alinea con el input debajo del label */
}


@media (max-width: 520px){
  #cursoInscripcion .insc-search-row .start-btn{ margin-top: 0 !important; }
}

.field-error{
  margin-top: 6px;
  font-size: 13px;
  color: #b42318; /* rojo suave */
}

.input-error{
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.insc-search-row{
  display: flex;
  gap: 12px;
  align-items: flex-end; /* botón alineado al input */
}

.insc-search-row .form-group{
  flex: 1;
  min-width: 0;
}

.field-error{
  margin-top: 6px;
  font-size: 13px;
  color: #b42318;
  min-height: 16px; /* ✅ reserva espacio siempre */
}

.vis-hidden{
  visibility: hidden; /* ✅ ocupa espacio pero no se ve */
}

.insc-fechas{
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 10px 0 16px;
}

.insc-fechas p{
  margin: 0;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  background: rgba(188,149,92,.12);
  border: 1px solid rgba(188,149,92,.35);
  color: #204056;
  width: fit-content;
}

/* ================================
   FOOTER LINK (Aviso de privacidad)
================================ */
.footer-inner{
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer-link{
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  opacity: .95;
}

.footer-link:hover{
  opacity: 1;
}

/* ================================
   MODAL AVISO DE PRIVACIDAD
================================ */
.privacy-content{
  max-width: 820px;              /* más ancho que curso/carrito */
  padding: 28px;
}

.privacy-body{
  margin-top: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 16px 16px;

  /* aquí está la clave del scroll interno */
  max-height: 52vh;              /* desktop */
  overflow: auto;

  line-height: 1.65;
  color: #374151;
  font-size: 15.5px;
}

.privacy-body p{
  margin: 0 0 12px 0;
}

/* Mejor experiencia en móviles */
@media (max-width: 576px){
  #privacyModal{
    padding-top: 10vh;           /* como tus modales, pero estable */
  }

  .privacy-content{
    padding: 20px 16px;
    border-radius: 14px;
  }

  .privacy-body{
    max-height: 56vh;            /* más alto en móvil */
    font-size: 15px;
    padding: 14px;
    -webkit-overflow-scrolling: touch; /* scroll suave iOS */
  }
}

/* Footer: copy a la izquierda y aviso a la derecha */
.footer-split{
  width: 100%;
  max-width: 1100px;           /* opcional: “contenedor” visual */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Un poco más pegado a la derecha */
.footer-link-right{
  margin-left: auto;
  padding-left: 18px;
}

/* En móvil mejor centrado y en columna */
@media (max-width: 576px){
  .footer-split{
    flex-direction: column;
    gap: 10px;
  }
  .footer-link-right{
    margin-left: 0;
    padding-left: 0;
  }
}

/* Aviso privacidad: tipografía y jerarquía */
.privacy-heading{
  text-align: center;
  margin: 0 0 10px;
}

.privacy-h3{
  margin: 14px 0 8px;
  font-size: 16px;
  color: #204056;
}

.privacy-list{
  margin: 8px 0 12px 18px;
  padding: 0;
  line-height: 1.65;
}

.privacy-list li{
  margin: 6px 0;
}

/* -----------------*/


/* ================================
   HABILIDADES DE PODER
================================ */

.power-skills {
  position: relative;
  padding: 80px 50px;
  overflow: hidden;
  color: white;
}

/* Video fondo */
.power-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Overlay */



/* Título */
.power-title {
  position: relative;
  z-index: 3;
  color: white;
}

/* GRID FORZADO */
.power-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 28px;
  grid-auto-flow: row;
}

/* TARJETAS BASE */
.power-item {
  background: linear-gradient(160deg, #ffffff, #f3f6f9);
  border-radius: 18px;
  padding: 28px 22px;
  font-weight: 700;
  font-size: 18px;
  color: #204056;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}

/* HOVER */
.power-item:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ===== TRANSVERSAL ===== */
.power-item.formacion-transversal {
  grid-column: 1 / -1;
  grid-row: 1;
  background: linear-gradient(135deg, #f65a5b, #d94d4e);
  color: white;
  font-size: 22px;
  padding: 40px 32px;
  box-shadow: 0 25px 55px rgba(246,90,91,0.55);
}

/* ===== LAS OTRAS 3 ABAJO ===== */
.power-item:not(.formacion-transversal) {
  grid-row: 2;
}

/* BOTÓN */
.power-item .start-btn {
  background: linear-gradient(135deg, #204056, #0f2533);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  font-size: 16px;
  border-radius: 12px;
}

.power-item .start-btn:hover {
  background: linear-gradient(135deg, #f65a5b, #d94d4e);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .power-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
  }

  .power-item:not(.formacion-transversal) {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .power-grid {
    grid-template-columns: 1fr;
  }

  .power-skills {
    padding: 60px 20px;
  }
}


#powerSkillsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

#powerSkillsGrid .formacion-transversal {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  #powerSkillsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  #powerSkillsGrid .formacion-transversal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  #powerSkillsGrid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   FIX DEFINITIVO OVERLAP
================================ */

#powerSkillsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}

/* Todas las tarjetas */
#powerSkillsGrid .category-card {
  position: relative;
  z-index: 1;
  transition: transform .35s ease, box-shadow .35s ease;
  transform: translateY(0); /* BLOQUEO */
}

/* Hover SOLO SCALE */
#powerSkillsGrid .category-card:hover {
  transform: scale(1.03);
  z-index: 2;
}

/* Transversal */
#powerSkillsGrid .formacion-transversal {
  grid-column: 1 / -1;
  z-index: 5;
}

/* Transversal hover más leve */
#powerSkillsGrid .formacion-transversal:hover {
  transform: scale(1.01);
}

/* Responsive */
@media (max-width: 1024px) {
  #powerSkillsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  #powerSkillsGrid .formacion-transversal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  #powerSkillsGrid {
    grid-template-columns: 1fr;
  }
}


/* ================================
   TARJETAS GENERALES
================================ */

#powerSkillsGrid .category-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 28px 22px;
  color: #111;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  transition: box-shadow .3s ease;
}

#powerSkillsGrid .category-card p,
#powerSkillsGrid .category-card span {
  color: #111;
}

/* Hover sin movimiento */
#powerSkillsGrid .category-card:hover {
  box-shadow: 0 18px 38px rgba(0,0,0,0.25);
}

/* ================================
   FORMACION TRANSVERSAL
================================ */

#powerSkillsGrid .formacion-transversal {
  grid-column: 1 / -1;
  border: 1px solid rgba(0,0,0,0.08);
}

/* ================================
   BOTON TRANSVERSAL (DESTACADO)
================================ */

#powerSkillsGrid .formacion-transversal .cat-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    120deg,
    #6e4bc8,
    #6e4bc8,
    #6e4bc8
  );
  background-size: 300% 300%;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 26px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(246,90,91,0.45);
  transition: box-shadow .3s ease;
  animation: transversalShift 8s ease-in-out infinite;
}

/* Cambio de color suave */
@keyframes transversalShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Brillo sutil */
#powerSkillsGrid .formacion-transversal .cat-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.45),
    transparent
  );
  animation: shineSoft 8s ease-in-out infinite;
}

@keyframes shineSoft {
  0% {
    left: -120%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  25% {
    left: 120%;
    opacity: 0;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

/* Hover SIN elevar */
#powerSkillsGrid .formacion-transversal .cat-btn:hover {
  box-shadow: 0 14px 34px rgba(246,90,91,0.6);
  transform: none;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  #powerSkillsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  #powerSkillsGrid .formacion-transversal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  #powerSkillsGrid {
    grid-template-columns: 1fr;
  }
}


.power-video {
  position: absolute;
  inset: 0;
  width: 101%;
  height: 101%;
  left: -0.5%;
  top: -0.5%;

  object-fit: cover;
  display: block;           /* 🔑 CLAVE */
  background-color: black;  /* fallback */
}
.power-skills .power-title {
  color: #204056;
}


.power-skills {
  position: relative;
}

/* Líneas superior e inferior */
.power-skills::before,
.power-skills::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #204056,
    transparent
  );
  opacity: 0.35;       /* suavidad */
  z-index: 4;
  pointer-events: none;
}

/* Línea superior */
.power-skills::before {
  top: 0;
}

/* Línea inferior */
.power-skills::after {
  bottom: 0;
}


.power-skills #powerSkillsGrid .curso-chip {
  color: #f65a5b;          /* naranja fuerte */
  font-weight: 700;
  transition: color .25s ease;
}


.power-skills #powerSkillsGrid .curso-btn:hover .curso-chip {
  color: #ffffff;
}


/* -----------------*/

.externos-section{
  padding: 60px 50px;
  background: transparent; 
  color: var(--text);
}

.curso-logo-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px 0 10px;
}

.curso-logo{
  width: 120px;         
  max-width: 45%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.18));
}

/* En pantallas pequeñas */
@media (max-width: 768px){
  .curso-logo{ width: 100px; }
}

.externo-logo-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 12px 0 10px;
}

.externo-logo{
  width: 120px;
  max-width: 70%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.18));
}

@media (max-width: 768px){
  .externo-logo{ width: 100px; }
}
.externo-logo-bg{
  width: 190px;     /* ajusta a tu gusto */
  max-width: 90%;
}

/* Loader dentro del botón */
.start-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.start-btn .btn-loader{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: rgba(255,255,255,1);
  display: none; /* oculto por defecto */
  animation: btnSpin .8s linear infinite;
}

.start-btn.is-loading .btn-loader{
  display: inline-block; /* visible cuando carga */
}

.start-btn.is-loading{
  pointer-events: none;
  opacity: .9;
}

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