/* ==================================================
   TOKENS DE MARCA — FUNDACIÓN HUMANAS
   ================================================== */

:root {
  /* Paleta oficial */
  --orange: #d0491a;
  --orange-dark: #a8390f;
  --orange-light: #f3925a;
  --ink: #1c140f;
  --ink-rgb: 28, 20, 15;
  --orange-rgb: 208, 73, 26;
  --cream: #fbf1e7;
  --cream-deep: #f3ddc6;
  --paper: #ffffff;

  /* Derivados */
  --line: rgba(28, 20, 15, 0.12);
  --line-soft: rgba(28, 20, 15, 0.07);
  --ink-soft: rgba(28, 20, 15, 0.7);
  --ink-faint: rgba(28, 20, 15, 0.52);

  /* Tipografía */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radios */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  /* Sombras (con tinte cálido, nunca planas) */
  --shadow-sm: 0 2px 12px rgba(var(--ink-rgb), 0.06);
  --shadow-md: 0 16px 32px -14px rgba(var(--ink-rgb), 0.18),
    0 4px 10px rgba(var(--ink-rgb), 0.06);
  --shadow-lg: 0 34px 64px -18px rgba(var(--ink-rgb), 0.24),
    0 10px 22px rgba(var(--ink-rgb), 0.08);
  --shadow-orange: 0 14px 28px -8px rgba(var(--orange-rgb), 0.45);

  /* Textura de ruido sutil */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==================================================
   RESET & BASE
   ================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
  position: relative;
}

section {
  padding: var(--space-2xl) 0;
}

section h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: var(--space-md);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================================================
   UTILIDADES
   ================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.tag-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Revelado al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--orange);
  color: var(--paper);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--orange-dark);
  box-shadow: 0 18px 34px -8px rgba(168, 57, 15, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  background-color: rgba(var(--ink-rgb), 0.05);
  border-color: rgba(var(--ink-rgb), 0.3);
}

.btn-ghost {
  background-color: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--paper);
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background-color: rgba(var(--ink-rgb), 0.09);
  color: var(--ink);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease, border-color 0.25s ease;
}

.btn-card:hover {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange-dark);
  text-decoration: none;
  position: relative;
}

.btn-link::after {
  content: "→";
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

.btn-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn-link:hover::before {
  transform: scaleX(1);
}

/* ==================================================
   HEADER / NAV
   ================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(251, 241, 231, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

header.scrolled {
  background-color: rgba(28, 20, 15, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: clamp(140px, 15vw, 190px);
  height: auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-mark .logo-light {
  display: block;
}

.brand-mark .logo-dark {
  display: none;
}

header.scrolled .brand-mark .logo-light {
  display: none;
}

header.scrolled .brand-mark .logo-dark {
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
  transition: color 0.3s ease;
}

header.scrolled nav a {
  color: var(--paper);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  background-color: var(--orange);
  color: var(--paper) !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-orange);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background-color: var(--orange-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.3s ease;
}

header.scrolled .menu-toggle {
  color: var(--paper);
}

/* ==================================================
   HEROES SECUNDARIOS (Nosotros / Contacto / Cursos)
   ================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 90px;
  text-align: center;
  background: radial-gradient(
      ellipse 65% 60% at 50% 0%,
      rgba(var(--orange-rgb), 0.16),
      transparent 60%
    ),
    linear-gradient(160deg, var(--cream), var(--cream-deep));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.04;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.page-hero .eyebrow {
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  max-width: 780px;
  margin: 0 auto var(--space-sm);
}

.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ==================================================
   HERO — INICIO
   ================================================== */

#inicio {
  position: relative;
  overflow: hidden;
  padding: 150px 0 110px;
  background-image:
    radial-gradient(circle 480px at 50% 50%, rgba(var(--orange-rgb), 0.28), transparent 70%),
    radial-gradient(circle 380px at 50% 50%, rgba(var(--orange-rgb), 0.22), transparent 70%),
    radial-gradient(circle 320px at 50% 50%, rgba(var(--orange-rgb), 0.2), transparent 70%),
    radial-gradient(circle 260px at 50% 50%, rgba(var(--orange-rgb), 0.18), transparent 70%),
    linear-gradient(160deg, var(--cream), var(--cream-deep));
  background-repeat: no-repeat;
  background-size: 160% 160%, 160% 160%, 160% 160%, 160% 160%, 100% 100%;
  background-position: 88% 8%, 8% 30%, 60% 85%, 30% 60%, 0 0;
  animation: hero-drift 12s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  0% {
    background-position: 88% 8%, 8% 30%, 60% 85%, 30% 60%, 0 0;
  }
  50% {
    background-position: 70% 22%, 22% 10%, 42% 65%, 45% 40%, 0 0;
  }
  100% {
    background-position: 92% 28%, 14% 46%, 66% 74%, 20% 78%, 0 0;
  }
}

#inicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.04;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

#inicio h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  margin: var(--space-md) 0;
}

#inicio h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-content > p {
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: var(--space-lg);
  color: var(--ink-soft);
}

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

/* ==================================================
   ESTADÍSTICAS
   ================================================== */

#estadisticas {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  padding: var(--space-xl) 0;
}

#estadisticas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  text-align: center;
}

.stat {
  padding: 0 56px;
}

.stat + .stat {
  border-left: 1px solid rgba(243, 146, 90, 0.25);
}

.stat span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.1rem);
  font-weight: 700;
  color: var(--orange-light);
  line-height: 1;
  margin-bottom: 10px;
}

.stat p {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.counter::before {
  content: "+";
}

/* ==================================================
   CATEGORÍAS / CURSOS — GRILLA DE TARJETAS
   ================================================== */

#categorias,
#cursos-grid-section {
  background: var(--cream);
}

/* Franja vertical recta que conecta #categorias con #certificacion */
#categorias,
#porque,
#certificacion {
  position: relative;
  z-index: 0;
}

#categorias::before,
#porque::before,
#certificacion::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    transparent calc(50% - 220px),
    rgba(var(--orange-rgb), 0.12) 50%,
    transparent calc(50% + 220px)
  );
  pointer-events: none;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .eyebrow {
  justify-content: center;
  margin-bottom: var(--space-xs);
}

.section-header h2 span {
  color: var(--orange);
}

.section-header p {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  contain: layout style;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(var(--orange-rgb), 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease, border-color 0.4s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}

.course-card-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.course-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-card-figure img {
  transform: scale(1.05);
}

.course-card-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 20, 15, 0.5), transparent 55%);
  mix-blend-mode: multiply;
}

.course-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: var(--paper);
  color: var(--orange-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.course-card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.course-card-body h3 {
  font-size: 1.2rem;
  overflow-wrap: break-word;
}

.course-card-body h3.h3-tight {
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  hyphens: auto;
}

.course-card-body p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  flex-grow: 1;
}

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-card-meta span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
  background: var(--cream);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.course-card-body .btn-card {
  align-self: flex-start;
  margin-top: 4px;
}

/* ==================================================
   POR QUÉ ESTUDIAR — LISTA DE FEATURES
   ================================================== */

#porque {
  position: relative;
  background: linear-gradient(180deg, var(--cream), var(--paper) 50%, var(--cream));
}

#porque .intro {
  max-width: 780px;
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: var(--space-xl);
}

.feature-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 760px;
  background: linear-gradient(90deg, rgba(var(--orange-rgb), 0.14), rgba(var(--orange-rgb), 0.05) 50%, rgba(var(--orange-rgb), 0.14));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-item:nth-child(even) {
  align-self: flex-end;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--orange-rgb), 0.3);
}

.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(var(--orange-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-dark);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #000;
}

.feature-item p {
  line-height: 1.8;
  color: #000;
  font-size: 1.01rem;
}

/* ==================================================
   CERTIFICADO
   ================================================== */

#certificacion {
  background: var(--cream);
}

.cert-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cert-text p {
  margin-bottom: var(--space-md);
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.85;
}

.cert-mock-wrap {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.cert-mock {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  transform: rotate(-3.5deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--line);
}

.cert-mock-wrap:hover .cert-mock {
  transform: rotate(0deg) scale(1.03);
}

.cert-mock-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 14px);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cert-mock-badge {
  position: absolute;
  top: -16px;
  left: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-orange);
  transform: rotate(-2deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.cert-mock-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cert-mock-wrap:hover .cert-mock-badge {
  transform: rotate(0deg) translateY(-2px);
}

/* ==================================================
   TESTIMONIOS
   ================================================== */

#testimonios {
  background: linear-gradient(160deg, var(--cream-deep), var(--cream));
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.testimonio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonio-quote {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.7;
}

.testimonio-quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--orange);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testimonio-autor img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonio-autor strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.testimonio-autor span {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ==================================================
   CTA BANNER
   ================================================== */

#cta-banner {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

#cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 70% at 50% 0%,
    rgba(var(--orange-rgb), 0.35),
    transparent 65%
  );
  pointer-events: none;
}

#cta-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

#cta-banner h2 {
  color: var(--paper);
  max-width: 640px;
  margin: 0 auto var(--space-sm);
}

#cta-banner p {
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

#cta-banner .hero-actions {
  justify-content: center;
}

/* ==================================================
   FOOTER
   ================================================== */

footer {
  position: relative;
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-mark {
  width: 170px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

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

.footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: var(--space-md);
  font-size: 0.85rem;
}

/* ==================================================
   NOSOTROS — PRESENTACIÓN + VALORES
   ================================================== */

#nosotros-presentacion {
  background: var(--paper);
}

.nosotros-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-texto p {
  margin-bottom: var(--space-sm);
  line-height: 1.85;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.nosotros-imagen img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}

#valores {
  background: var(--cream);
}

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

.valor-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.valor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.valor-card .feature-icon {
  margin-bottom: 18px;
}

.valor-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.valor-card p {
  color: var(--ink-soft);
}

/* ==================================================
   CURSOS — FILTROS
   ================================================== */

.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-xl);
}

.filtro-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filtro-btn:hover {
  border-color: rgba(var(--orange-rgb), 0.4);
  color: var(--ink);
}

.filtro-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--paper);
}

.course-card[hidden] {
  display: none;
}

/* ==================================================
   CONTACTO
   ================================================== */

.contacto-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.contacto-card {
  flex: 1;
  min-width: 340px;
  max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 38px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.contacto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contacto-card .feature-icon {
  margin-bottom: 18px;
}

.contacto-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.contacto-card p {
  margin-bottom: 18px;
  color: var(--ink-soft);
}

#horario {
  background: var(--cream);
  text-align: center;
}

#horario .container {
  max-width: 640px;
}

#horario h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
}

#horario p {
  color: var(--ink-soft);
}

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

@media (max-width: 900px) {
  .nosotros-layout,
  .cert-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cert-layout {
    text-align: center;
  }

  .feature-item:nth-child(even) {
    align-self: stretch;
  }

  .stat {
    padding: 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  nav {
    position: relative;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 28px 0;
    background: var(--ink);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--paper) !important;
  }

  .nav-links .nav-cta {
    display: inline-flex;
  }

  #inicio,
  .page-hero {
    padding: 120px 0 70px;
  }

  .feature-item {
    flex-direction: column;
  }

  .stats-grid {
    gap: 32px 0;
  }

  .stat {
    width: 50%;
    padding: 0;
  }

  .stat + .stat {
    border-left: none;
  }

  .contacto-card {
    min-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .brand-mark {
    margin: 0 auto 16px;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ==================================================
   PÁGINA DE CURSO INDIVIDUAL
   ================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--ink-faint);
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--orange-dark);
}

.breadcrumb a::after {
  display: none;
}

.breadcrumb .sep {
  opacity: 0.5;
}

.breadcrumb .actual {
  color: var(--ink);
}

/* Hero del curso */

#curso-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 var(--space-xl);
  background:
    radial-gradient(ellipse 60% 55% at 85% 0%, rgba(var(--orange-rgb), 0.22), transparent 60%),
    linear-gradient(160deg, var(--cream), var(--cream-deep));
}

#curso-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.04;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.curso-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
}

.curso-hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.curso-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.curso-hero-info .eyebrow {
  margin-bottom: var(--space-sm);
}

.curso-hero-info h1 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-bottom: var(--space-sm);
}

.curso-hero-info > p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 560px;
}

/* Datos rápidos */

.curso-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: var(--space-xl);
}

.curso-fact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.curso-fact .feature-icon {
  display: flex;
  width: 44px;
  height: 44px;
}

.curso-fact .feature-icon svg {
  width: 22px;
  height: 22px;
}

.curso-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
}

.curso-fact span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* Layout principal + sidebar */

#curso-contenido {
  background: var(--paper);
}

.curso-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.curso-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  min-width: 0;
}

.curso-block h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: var(--space-sm);
}

.curso-block .eyebrow {
  margin-bottom: var(--space-xs);
}

.curso-block > p {
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.85;
}

.curso-block > p + p {
  margin-top: var(--space-sm);
}

.curso-block > .valores-grid,
.curso-block > .check-list,
.curso-block > .accordion,
.curso-block > .docentes-grid,
.curso-block > .pasos-grid,
.curso-block > .cert-mock-wrap {
  margin-top: var(--space-md);
}

/* Sidebar */

.curso-sidebar {
  position: sticky;
  top: 104px;
}

.curso-sidebar-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
}

.curso-sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.curso-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px dashed var(--line);
  list-style: none;
}

.curso-sidebar-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.curso-sidebar-list li span:first-child {
  color: var(--ink-faint);
}

.curso-sidebar-list li span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.curso-sidebar-card .btn {
  width: 100%;
  justify-content: center;
}

.curso-sidebar-card .btn-outline {
  margin-top: 12px;
}

/* Checklist (objetivos, destinatarios, metodología) */

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: rgba(var(--orange-rgb), 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0491a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* Acordeones (temario / preguntas frecuentes) */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c140f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item[open] summary::after {
  transform: rotate(180deg);
}

.accordion-item .accordion-body {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

.accordion-item .accordion-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item .accordion-body li {
  padding-left: 20px;
  position: relative;
}

.accordion-item .accordion-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.temario-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-faint);
  font-family: var(--font-display);
}

.temario-meta + .accordion {
  margin-top: var(--space-sm);
}

/* Docentes */

.docentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.docente-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.docente-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.docente-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.docente-card span {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Cómo inscribirte */

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.paso-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.paso-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
}

.paso-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.paso-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

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

  .curso-sidebar {
    position: static;
    order: -1;
  }

  .curso-hero-layout {
    grid-template-columns: 1fr;
  }

  .curso-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .pasos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .curso-facts {
    grid-template-columns: 1fr;
  }
}
