
/* ========================================================= */
/* PALETA                                                    */
/* ========================================================= */

:root {
  --cap-blue: #4E5BE6;
  --cap-green: #4EE679;
  --cap-red: #E64E4E;
  --cap-gold: #E6C54E;

  --cap-bg: #030406;
  --cap-bg-2: #070a10;
  --cap-bg-3: #0b1020;

  --cap-white: #f8fafc;
  --cap-soft: #cbd5e1;
  --cap-muted: #94a3b8;
  --cap-ink: #0b0f17;
  --cap-border: rgba(255, 255, 255, 0.08);
}

/* ========================================================= */
/* BASE GENERAL                                              */
/* ========================================================= */

body {
  background:
    radial-gradient(circle at 10% 12%, rgba(78, 91, 230, 0.10), transparent 20%),
    radial-gradient(circle at 85% 10%, rgba(78, 230, 121, 0.08), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(230, 197, 78, 0.08), transparent 18%),
    linear-gradient(180deg, var(--cap-bg) 0%, var(--cap-bg-2) 40%, var(--cap-bg) 100%);
  color: var(--cap-white);
}

.media-banner,
.stores-section,
.clientes-marquee,
.certifications,
.courses-section,
.soft-skills-section {
  position: relative;
  overflow: hidden;
}

.media-banner::before,
.stores-section::before,
.certifications::before,
.courses-section::before,
.soft-skills-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.15;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,0.25));
}

.media-banner > *,
.stores-section > *,
.clientes-marquee > *,
.certifications > *,
.courses-section > *,
.soft-skills-section > * {
  position: relative;
  z-index: 2;
}

/* Título de la sección */

.hero-title {
  width: 100%;
  height: 55vh;
  min-height: 380px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 6%;
  overflow: hidden;
}

.hero-content {
  position: relative;
  width: 100%;
}

.hero-bg {
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 700;
  color: #611232;
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 1;
  user-select: none;
}

.hero-front {
  position: absolute;
  left: 5%;
  bottom: 20%;
  transform: translateY(80px);
}

.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: #000;
}

.hero-line {
  width: 160px;
  height: 5px;
  background-color: #003366;
  margin-top: 18px;
}

/***********************************/
/******** DISEÑO RESPONSIVO ********/
/***********************************/

@media (max-width: 1023px) and (min-width: 768px) {
  .hero-title {
    height: 50vh;
    padding: 0 5%;
    margin-top: 20px;
  }

  .hero-bg {
    font-size: clamp(4.5rem, 16vw, 6.5rem);
  }

  .hero-front {
    left: 4%;
    bottom: 14%;
    transform: translateY(80px);
  }

  .hero-subtitle {
    letter-spacing: 0.3em;
  }

  .hero-line {
    width: 130px;
  }
}

@media (max-width: 767px) and (min-width: 481px) {
  .hero-title {
    height: 48vh;
    min-height: 340px;
    padding: 0 6%;
    margin-top: 10px;
  }

  .hero-bg {
    font-size: clamp(4rem, 18vw, 5.5rem);
  }

  .hero-front {
    left: 4%;
    bottom: 12%;
    transform: translateY(70px);
  }

  .hero-subtitle {
    font-size: 1.6rem;
    letter-spacing: 0.28em;
  }

  .hero-line {
    width: 110px;
  }
}

@media (max-width: 630px) {
  .hero-title {
    height: auto;
    min-height: 340px;
    padding: 90px 6% 48px;
  }

  .hero-bg {
    font-size: clamp(3.8rem, 14vw, 5rem);
    line-height: 1.05;
  }

  .hero-front {
    position: relative;
    left: 0;
    bottom: auto;
    transform: none;
    margin-top: 32px;
  }

  .hero-subtitle {
    font-size: 1.45rem;
    letter-spacing: 0.24em;
  }

  .hero-line {
    width: 100px;
    height: 4px;
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    height: auto;
    min-height: 320px;
    padding: 80px 6% 40px;
    margin-top: 10px;
  }

  .hero-bg {
    font-size: 3.8rem;
  }

  .hero-front {
    position: relative;
    left: 0;
    bottom: auto;
    transform: none;
    margin-top: 24px;
  }

  .hero-subtitle {
    font-size: 1.3rem;
    letter-spacing: 0.22em;
  }

  .hero-line {
    width: 90px;
    height: 4px;
    margin-top: 12px;
  }
}

@media (max-width: 436px) {
  .hero-title {
    min-height: 320px;
    padding: 80px 6% 36px;
  }

  .hero-bg {
    font-size: 3.2rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .hero-front {
    position: relative;
    left: 0;
    bottom: auto;
    transform: none;
    margin-top: 26px;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
  }

  .hero-line {
    width: 88px;
    height: 3.5px;
    margin-top: 12px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    min-height: 300px;
    padding: 70px 5% 32px;
    margin-top: 10px;
  }

  .hero-bg {
    font-size: 2.41em;
    letter-spacing: -0.03em;
  }

  .hero-front {
    margin-top: 20px;
  }

  .hero-subtitle {
    font-size: 1.15rem;
    letter-spacing: 0.18em;
  }

  .hero-line {
    width: 72px;
    height: 3px;
    margin-top: 10px;
  }
}

@media (max-width: 320px) {
  .hero-title {
    min-height: 280px;
    padding: 60px 4% 28px;
  }

  .hero-bg {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    letter-spacing: 0.16em;
  }

  .hero-line {
    width: 64px;
  }
}


/* ========================================================= */
/* BLOQUE INTRODUCCIÓN                                       */
/* ========================================================= */

/* ========================================================= */
/* BLOQUE INTRODUCCIÓN NUEVO                                 */
/* ========================================================= */

.stores-section {
  padding: 110px 6%;
  background:
    radial-gradient(circle at 14% 18%, rgba(78, 91, 230, 0.10), transparent 18%),
    linear-gradient(180deg, #05070c 0%, #090d15 100%);
}

.stores-wrapper {
  max-width: 1260px;
  margin: 0 auto;
}

.stores-heading {
  max-width: 860px;
  margin: 0 auto 46px;
  text-align: center;
}

.stores-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cap-blue);
}

.stores-heading h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.04;
  color: var(--cap-white);
  letter-spacing: -0.03em;
}

.stores-heading p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--cap-muted);
  line-height: 1.85;
  font-size: 1rem;
}

.stores-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  align-items: stretch;
  margin-bottom: 28px;
}

.stores-image-card,
.stores-text-card {
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17,17,17,0.86), rgba(10,10,10,0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 22px 60px rgba(0,0,0,0.30);
}

.stores-image-card {
  min-height: 520px;
}

.stores-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88);
}

.stores-text-card {
  padding: 40px 38px;
  position: relative;
}

.stores-text-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(
      circle,
      transparent 0 14px,
      rgba(255,255,255,0.06) 15px 16px
    );
}

.stores-text-card p {
  margin: 0 0 20px;
  color: var(--cap-soft);
  line-height: 1.95;
  font-size: 1rem;
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width: 768px) {
  .stores-text-card p {
    text-align: left;
  }
}

.stores-text-card p:last-child {
  margin-bottom: 0;
}

.stores-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px; /* 👈 ESTO ES LA CLAVE */
}

.stores-highlight-card {
  border-radius: 24px;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(14,17,24,0.96), rgba(8,10,15,0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 18px 42px rgba(0,0,0,0.26);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.stores-highlight-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 24px 52px rgba(0,0,0,0.32);
}

/* COLORES TARJETAS (AZUL, ROJO, AMARILLO) */

.stores-highlight-card:nth-child(1) {
  background: linear-gradient(180deg, #4E5BE6, #3d47c9);
  border: none;
}

.stores-highlight-card:nth-child(2) {
  background: linear-gradient(180deg, #E64E4E, #d13f3f);
  border: none;
}

.stores-highlight-card:nth-child(3) {
  background: linear-gradient(180deg, #E6C54E, #d4b03f);
  border: none;
}

.stores-highlight-card:nth-child(1) {
  box-shadow: 0 10px 30px rgba(78, 91, 230, 0.35);
}

.stores-highlight-card:nth-child(2) {
  box-shadow: 0 10px 30px rgba(230, 78, 78, 0.35);
}

.stores-highlight-card:nth-child(3) {
  box-shadow: 0 10px 30px rgba(230, 197, 78, 0.35);
}

/* TEXTO BLANCO EN TODAS LAS TARJETAS */
.stores-highlight-card h3,
.stores-highlight-card p,
.stores-highlight-card span {
  color: #ffffff !important;
  opacity: 0.8;
  font-weight: 700;
}

.stores-highlight-card span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.stores-highlight-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--cap-white);
}

.stores-highlight-card p {
  margin: 0;
  color: var(--cap-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .stores-layout {
    grid-template-columns: 1fr;
  }

  .stores-image-card {
    min-height: 360px;
  }

  .stores-highlights {
    grid-template-columns: 1fr;
  }

  .stores-text-card {
    padding: 32px 26px;
  }
}

@media (max-width: 480px) {
  .stores-section {
    padding: 80px 5%;
  }

  .stores-heading h2 {
    font-size: 2rem;
  }

  .stores-heading p,
  .stores-text-card p,
  .stores-highlight-card p {
    font-size: 0.95rem;
  }

  .stores-image-card,
  .stores-text-card,
  .stores-highlight-card {
    border-radius: 22px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  }

  .stores-image-card {
    min-height: 280px;
  }
}

/* ========================================================= */
/* CLIENTES MARQUEE                                          */
/* ========================================================= */

.clientes-marquee {
  margin-top: 0;
  background: var(--cap-bg);
  padding: 0;
  overflow: hidden;
  border-top: 1px solid 0b0f17;
  border-bottom: 1px solid 0b0f17;
}

.marquee-row {
  overflow: hidden;
  white-space: nowrap;
  margin: 18px 0;
  background: transparent;
}

.marquee-content {
  display: inline-flex;
  gap: 60px;
  width: max-content;
  animation: scrollLeft linear infinite;
}

.marquee-content span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d7defd;
  white-space: nowrap;
  transition: all 0.3s ease;
  opacity: 0.95;
}

.marquee-row:nth-child(2) .marquee-content span {
  color: #dff8e6;
}

.marquee-row:nth-child(3) .marquee-content span {
  color: #f9e8b0;
}

.marquee-content span:hover {
  color: #ffffff;
  transform: scale(1.08);
}

/* Velocidades */
.slow {
  animation-duration: 50s;
}

.medium {
  animation-duration: 35s;
}

.fast {
  animation-duration: 25s;
}

/* Dirección inversa */
.reverse {
  animation-direction: reverse;
}

/* Pausar al pasar mouse */
.clientes-marquee:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ========================================================= */
/* CERTIFICACIONES                                           */
/* ========================================================= */

.certifications {
  padding: 110px 6% 90px;
  background:
    radial-gradient(circle at 88% 20%, rgba(78, 91, 230, 0.08), transparent 16%),
    linear-gradient(180deg, #05070c 0%, #0a0f19 100%);
}

.certifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  gap: 20px;
}

.certifications-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--cap-white);
  letter-spacing: -0.03em;
  margin: 0;
}

/* Flechas */
.certifications-controls {
  display: flex;
  gap: 12px;
}

.arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--cap-white);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.arrow:hover {
  background: linear-gradient(90deg, var(--cap-blue), var(--cap-red));
  color: #ffffff;
  transform: translateY(-2px);
}

/* Carrusel */
.certifications-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 18px;
}

.certifications-track::-webkit-scrollbar {
  height: 6px;
}

.certifications-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #4E5BE6, #E64E4E, #E6C54E);
  border-radius: 999px;
}

/* Card */
/* Card */
.cert-card {
  min-width: 340px;
  height: 440px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  flex-shrink: 0;
  isolation: isolate;

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 18px 44px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.04);

  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Glow interno visible */
.cert-card::after {
  content: "";
  position: absolute;
  inset: auto 12% -18% 12%;
  height: 110px;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Colores por tarjeta */
.cert-card:nth-child(1)::after {
  background: rgba(78, 91, 230, 0.65);
}

.cert-card:nth-child(2)::after {
  background: rgba(230, 78, 78, 0.65);
}

.cert-card:nth-child(3)::after {
  background: rgba(230, 197, 78, 0.65);
}

.cert-card:nth-child(4)::after {
  background: rgba(78, 230, 121, 0.60);
}

.cert-card:nth-child(5)::after {
  background: rgba(78, 91, 230, 0.60);
}

/* Brillo superior */
.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
}

/* IMAGEN */
.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.86);
}

/* HOVER */
.cert-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 28px 60px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.cert-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.92);
}

.cert-card:hover::after {
  opacity: 0.95;
  transform: scale(1.08);
}

/* Etiqueta */
.cert-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  background: rgba(12, 16, 28, 0.55);
  border: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 3;
}

/* ========================================================= */
/* CAPACITACIONES                                            */
/* ========================================================= */

.courses-section {
  position: relative;
  padding: 100px 4vw 90px;
  background:
    radial-gradient(circle at 16% 12%, rgba(78, 230, 121, 0.08), transparent 16%),
    radial-gradient(circle at 84% 18%, rgba(230, 197, 78, 0.08), transparent 16%),
    linear-gradient(180deg, #04070d 0%, #09101a 100%);
  overflow: hidden;
}

.courses-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle, rgba(78, 91, 230, 0.55) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(230, 78, 78, 0.45) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(230, 197, 78, 0.42) 1.5px, transparent 1.5px);
  background-size: 180px 180px, 240px 240px, 220px 220px;
  background-position: 0 0, 60px 80px, 120px 40px;
  animation: courseParticles 24s linear infinite;
}

.courses-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 22%, rgba(78, 91, 230, 0.12), transparent 14%),
    radial-gradient(circle at 78% 24%, rgba(230, 78, 78, 0.10), transparent 14%),
    radial-gradient(circle at 64% 78%, rgba(230, 197, 78, 0.10), transparent 14%);
  filter: blur(12px);
}

.courses-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 38px;
  color: var(--cap-white);
  letter-spacing: -0.03em;
}

/* GRID PRINCIPAL */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 22px;
}

/* TARJETA BASE */
.course-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  opacity: 0;
  transform: translateY(50px);
  transition:
    transform 0.7s ease,
    opacity 0.7s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
  isolation: isolate;
}

.course-card.show {
  opacity: 1;
  transform: translateY(0);
}

.course-card::before {
  content: "";
  position: absolute;
  inset: auto 10% -18% 10%;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.56));
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s ease;
}

/* GLOWS POR COLOR */
.course-card:nth-child(3n + 1)::before {
  background: rgba(78, 91, 230, 0.70);
}

.course-card:nth-child(3n + 2)::before {
  background: rgba(230, 78, 78, 0.65);
}

.course-card:nth-child(3n + 3)::before {
  background: rgba(230, 197, 78, 0.68);
}

.course-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 28px 60px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.course-card:hover::before {
  opacity: 0.9;
  transform: scale(1.08);
}

.course-card:hover::after {
  opacity: 0.92;
}

/* IMAGEN */
.course-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.6s ease, filter 0.35s ease;
}

.course-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.82);
}

.course-info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 24px;
  width: 100%;
  color: #fff;
  z-index: 2;
}

.course-info h3 {
  font-size: 1.34rem;
  margin-bottom: 8px;
  line-height: 1.12;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.course-info p {
  font-size: 0.95rem;
  max-width: 92%;
  line-height: 1.55;
  color: rgba(255,255,255,0.90);
  text-shadow: 0 2px 10px rgba(0,0,0,0.30);
}

.course-card.large {
  grid-column: span 6;
  grid-row: span 2;
}

.course-card.large2 {
  grid-column: span 6;
  grid-row: span 3;
}

.course-card.medium {
  grid-column: span 6;
  grid-row: span 2;
}

.course-card.full {
  grid-column: span 12;
  grid-row: span 2;
}

/* ========================================================= */
/* HABILIDADES BLANDAS                                       */
/* ========================================================= */

.soft-skills-section {
  padding: 100px 20px 90px;
  background:
    radial-gradient(circle at 86% 16%, rgba(230, 78, 78, 0.08), transparent 14%),
    linear-gradient(180deg, #05070c 0%, #0b1020 100%);
}

.soft-skills-container {
  max-width: 1240px;
  margin: auto;
}

.soft-skills-header {
  text-align: center;
  margin-bottom: 50px;
}

.soft-skills-header h2 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--cap-white);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.soft-skills-header p {
  font-size: 1rem;
  color: var(--cap-muted);
  line-height: 1.75;
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.skill-card {
  background:
    linear-gradient(180deg, rgba(17,17,17,0.90), rgba(9,11,15,0.98));
  padding: 28px 24px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cap-white);
  transition: all 0.35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 28px rgba(0,0,0,0.22);
}

.skill-card:nth-child(4n + 1) {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 28px rgba(78, 91, 230, 0.14);
}

.skill-card:nth-child(4n + 2) {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 28px rgba(78, 230, 121, 0.14);
}

.skill-card:nth-child(4n + 3) {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 28px rgba(230, 78, 78, 0.14);
}

.skill-card:nth-child(4n + 4) {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 28px rgba(230, 197, 78, 0.14);
}

.skill-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  opacity: 0.95;
}

.skill-card:nth-child(4n + 1)::before {
  background: linear-gradient(90deg, transparent, var(--cap-blue), transparent);
}

.skill-card:nth-child(4n + 2)::before {
  background: linear-gradient(90deg, transparent, var(--cap-green), transparent);
}

.skill-card:nth-child(4n + 3)::before {
  background: linear-gradient(90deg, transparent, var(--cap-red), transparent);
}

.skill-card:nth-child(4n + 4)::before {
  background: linear-gradient(90deg, transparent, var(--cap-gold), transparent);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

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

@media (max-width: 992px) {
  .stores-card {
    padding: 40px;
  }

  .stores-image {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
  }

  .stores-image img {
    width: 260px;
    height: 260px;
  }

  .certifications-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 22px;
    grid-auto-flow: dense;
  }

  .course-card.large {
    grid-column: span 6;
    grid-row: span 2;
  }

  .course-card.full {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .media-banner {
    min-height: 500px;
  }

  .media-overlay {
    width: min(92%, 92%);
    padding: 28px 20px;
    border-radius: 24px;
  }

  .stores-section,
  .certifications,
  .courses-section,
  .soft-skills-section {
    padding-left: 5%;
    padding-right: 5%;
  }

  .cert-card {
    min-width: 300px;
    height: 400px;
  }

  .soft-skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  .courses-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .course-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

@media (max-width: 480px) {
  .media-banner {
    min-height: 460px;
  }

  .media-overlay p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .stores-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .stores-card h2 {
    font-size: 1.65rem;
  }

  .stores-card p,
  .soft-skills-header p,
  .course-info p,
  .cert-overlay p {
    font-size: 0.95rem;
  }

  .cert-card {
    min-width: 280px;
    height: 370px;
    border-radius: 18px;
  }

  .courses-title,
  .soft-skills-header h2,
  .certifications-header h2 {
    font-size: 2rem;
  }

  .course-info {
    padding: 18px;
  }

  .course-info h3 {
    font-size: 1.15rem;
  }

  .skill-card {
    padding: 22px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
  }
}