:root {
  --primary: #2F5468;            /* Azul del logo */
  --primary-dark: #203A47;       /* Azul más profundo */
  --accent: #E83837;             /* Rojo del logo */
  --accent-light: #ff6d6b;       /* Variación clara para detalles */
  --bg: #f4f5fb;
  --card-bg: #ffffff;
  --border: #dde1f0;
  --text: #111827;
  --muted: #6b7280;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------------- HEADER ---------------- */

header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 60px; /* AJUSTA EL TAMAÑO DEL LOGO */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--primary);
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Botón principal */
.btn-header {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

/* ---------------- HERO ---------------- */

.hero {
  position: relative;
  padding: 56px 0 44px;
  overflow: hidden;

  /* NUEVO degradado basado en colores del logo */
  background: linear-gradient(
    120deg,
    #2F5468 0%,
    #4A7C8B 40%,
    #ffffff 90%
  );
  color: #0b1727;
}

/* Imagen de fondo visible a la derecha */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,0) 20%, rgba(255,255,255,0.4)),
    url("/assets/img/hero-virtual5.jpg") right center / 550px auto no-repeat;
  opacity: 0.55;       /* AJUSTA ENTRE 0.4–0.7 PARA VER MÁS LA FOTO */
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 12px;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 15px;
  color: #eefbff;
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  color: white;
}

.tag strong {
  color: #ffffff;
}

/* Botones hero */
.btn-primary {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  color: white;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  border: 1px solid white;
  cursor: pointer;
}

.hero-note {
  font-size: 12px;
  color: #e4f8ff;
  margin-top: 4px;
}

/* Tarjeta del impacto */
.hero-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #cfd6e4;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.hero-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-card-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  padding: 10px;
  border-radius: 12px;
  background: #f9fafc;
  border: 1px dashed var(--border);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
}

.stat-foot {
  font-size: 11px;
  color: var(--accent);
  margin-top: 2px;
}

/* ---------------- SECCIONES GENERALES ---------------- */

section {
  padding: 32px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  color: var(--primary-dark);
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
}

.section-link {
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
}

/* GRID */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Tarjetas genéricas */

.card {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px;
  font-size: 14px;
}

.card-header-line {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}

.card-text {
  font-size: 14px;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4f8;
  color: var(--primary-dark);
}

/* Testimonios */

.testimonial-quote {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.testimonial-role {
  font-size: 12px;
  color: var(--muted);
}

/* CTA Final */

.cta-final {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 20px;
  padding: 22px 20px;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  align-items: center;
}

.cta-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.cta-text {
  font-size: 14px;
  margin-bottom: 8px;
  color: #e2f4ff;
}

.cta-btn-main {
  background: #ffffff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 9px 16px;
  border: none;
  cursor: pointer;
}

.cta-btn-outline {
  background: transparent;
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 16px;
  border: 1px solid white;
  cursor: pointer;
}

.cta-locations {
  font-size: 12px;
  line-height: 1.5;
  color: #d4ecff;
}

/* FOOTER */

footer {
  padding: 16px 0 22px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

footer span {
  color: var(--primary);
  font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-card {
    order: -1;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .cta-final {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .btn-header {
    display: none;
  }
}

/* ---------------- SOLUCIONES ---------------- */

#soluciones {
  background: #eef2f7;
}

#soluciones .section-header {
  margin-bottom: 24px;
}

#soluciones .grid-2 {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.15);
  border: 1px solid #d3d9e6;
}

#soluciones .card {
  border: none;
  box-shadow: none;
}

#soluciones .section-link {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: #ffffff;
  font-weight: 500;
}

#soluciones .section-link:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ---------------- ÁREAS DE GESTIÓN ---------------- */

#areas-gestion .grid-3 {
  position: relative;
  margin-top: 10px;
  row-gap: 20px;
}

/* línea tenue que conecta las áreas en desktop */
#areas-gestion .grid-3::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: rgba(47, 84, 104, 0.12);
  z-index: 0;
}

#areas-gestion .card {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border-radius: 16px;
}

/* elevación ligera al hover */
#areas-gestion .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.15);
  border-color: var(--primary);
}

/* chip "01 · Organizaciones" etc. más protagónico */
#areas-gestion .badge-small {
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 56, 55, 0.3);
  margin-bottom: 8px;
}

/* puntito sobre la línea, tipo roadmap */
#areas-gestion .badge-small::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  left: 8px;
  top: -16px;
  box-shadow: 0 0 0 5px rgba(232, 56, 55, 0.15);
}

#areas-gestion {
  position: relative;
  overflow: hidden;
  padding-right: 180px;  /* espacio para la ejecutiva de la derecha */
}

/* Imagen de apoyo a la derecha (solo desktop) */
#areas-gestion::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -80px;
  width: 420px;
  height: 480px;
  background: url("/assets/img/areas-ejecutiva.png") bottom right / contain no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

/* Que las tarjetas queden por encima de la imagen */
#areas-gestion .card {
  position: relative;
  z-index: 2;
}

/* En mobile ocultamos la imagen para no estorbar */
@media (max-width: 900px) {
  #areas-gestion::after {
    display: none;
  }
}

/* Imagen suelta (por si usas <img class="feature-image"> en vez de ::after) */
.feature-image {
  position: absolute;
  right: -80px;
  bottom: 0;
  width: 420px;
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
}

/* ---------------- CURSOS Y TALLERES ---------------- */

#cursos {
  background: linear-gradient(
    90deg,
    #f7f8fb 0%,
    #f2f6fb 50%,
    #f7f8fb 100%
  );
}

#cursos .card {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* etiqueta tipo "Curso" en la esquina superior derecha */
#cursos .card::before {
  content: "Curso";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
}

#cursos .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-color: var(--primary);
}

#cursos .card-title {
  margin-bottom: 8px;
}

#cursos .course-meta {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(47, 84, 104, 0.25);
  font-size: 12px;
}

/* ===== Versión final: banda de imagen + degradado hacia blanco ===== */

#cursos .grid-3 .card {
  position: relative;
  background-color: #ffffff;
  padding-top: 200px;   /* espacio para la foto */
  overflow: hidden;
}

/* capa de imagen superior */
#cursos .grid-3 .card .curso-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 190px;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* degradado de la imagen hacia blanco */
#cursos .grid-3 .card .curso-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0)    0%,   /* parte alta transparente */
    rgba(255, 255, 255, 0.55) 55%,  /* transición suave */
    rgba(255, 255, 255, 1)    100%  /* abajo blanco para el texto */
  );
}

/* aseguramos que el contenido del card vaya encima de la imagen */
#cursos .grid-3 .card > *:not(.curso-img) {
  position: relative;
  z-index: 2;
}

/* asignación de imágenes por curso */
#cursos .grid-3 .card:nth-child(1) .curso-img {
  background-image: url("/assets/img/curso-entrevistas.png");
}

#cursos .grid-3 .card:nth-child(2) .curso-img {
  background-image: url("/assets/img/curso-liderazgo.png");
}

#cursos .grid-3 .card:nth-child(3) .curso-img {
  background-image: url("/assets/img/curso-empowerment.png");
}

/* --- Testimonios: cita cálida --- */
#testimonios .card.testimonial {
  position: relative;
  background: #fffaf8;
  border-radius: 18px;
  border-color: rgba(232, 56, 55, 0.12);
  padding-top: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#testimonios .card.testimonial::before {
  content: "“";
  position: absolute;
  font-size: 48px;
  line-height: 1;
  color: rgba(232, 56, 55, 0.18);
  top: -8px;
  left: 14px;
}

#testimonios .card.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
  border-color: var(--accent);
}

#testimonios .testimonial-quote {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
}

#testimonios .testimonial-name {
  color: var(--primary-dark);
}

/* --- Hovers globales para chips --- */
.chip {
  transition: background-color 0.16s ease, color 0.16s ease;
}

.chip:hover {
  background: var(--primary);
  color: #ffffff;
}

/* --- Botón de play en testimonios --- */

/* Damos un poco de espacio abajo por el botón */
#testimonios .card.testimonial {
  position: relative;
  padding-bottom: 60px;
}

/* Botón redondo tipo reproductor de video */
.testimonial-play {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 26px rgba(232, 56, 55, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

/* Triangulito de play */
.testimonial-play::before {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 13px;          /* tamaño del triángulo */
  border-color: transparent transparent transparent #ffffff;
  margin-left: 2px;                      /* lo empuja un pelín al centro */
}

/* Hover / focus */
.testimonial-play:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--accent-light);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
}

.testimonial-play:focus-visible {
  outline: 2px solid rgba(232, 56, 55, 0.5);
  outline-offset: 3px;
}

/* === Modal de Video === */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;               /* Hidden por defecto */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

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

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
}

.video-modal-content {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 680px;
  border-radius: 16px;
  padding: 20px;
  z-index: 2;
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Botón de cerrar */
.video-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* Caja simulando un video */
.video-placeholder {
  background: #f1f1f1;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
}

.fake-video {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #d7e1ec, #c8d3df);
  border-radius: 8px;
  margin-bottom: 14px;
}

.fake-video-text {
  font-size: 14px;
  color: #555;
}

/* Botón Comprar Curso full-width */
.btn-buy-course {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-buy-course:hover {
  background: #c72f2f;
  transform: translateY(-2px);
}

/* Nuevo contenedor de acciones en navbar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botón ligero de "Iniciar sesión" */
.btn-login {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--primary);   /* azul corporativo */
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}

.btn-login:hover {
  background: rgba(47, 84, 104, 0.06); /* azul muy suave */
}
