:root {
  --blue-deep: #1c273b;
  --blue-mid: #14598d;
  --blue-brand: #0989c7;
  --blue-light: #4bb5eb;
  --yellow: #f3e500;
  --yellow-hover: #d9cc00;
  --white: #ffffff;
  --gray-100: #f4f6fb;
  --gray-200: #e8ecf4;
  --gray-400: #9aa5bc;
  --gray-600: #5a6480;
  --gray-800: #2a3148;
  --text: #1c273b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--blue-deep);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.topbar-logo {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

.topbar-logo span {
  color: var(--yellow);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(
    135deg,
    var(--blue-deep) 0%,
    var(--blue-mid) 55%,
    #0f3a80 100%
  );
  position: relative;
  overflow: hidden;
  padding: 72px 24px 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(26, 95, 209, 0.35) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(245, 200, 0, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 200, 0, 0.15);
  border: 1px solid rgba(245, 200, 0, 0.3);
  color: var(--yellow);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 52px);
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-un-anio {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-un-anio-icon {
  font-size: 24px;
  line-height: 1;
  animation: icon-pulse 2.2s ease-in-out infinite;
  display: inline-block;
}

@keyframes icon-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(245, 200, 0, 0));
  }

  50% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 8px rgba(245, 200, 0, 0.7));
  }
}

.hero-un-anio-text {
  font-family: "Poppins", sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.hero-un-anio-text span {
  color: var(--yellow);
  position: relative;
  padding-bottom: 3px;
}

.hero-un-anio-text span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  background-size: 200% 100%;
  animation: underline-sweep 2s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes underline-sweep {
  0% {
    background-position: 100% 0;
    opacity: 0.4;
  }

  50% {
    background-position: 0% 0;
    opacity: 1;
  }

  100% {
    background-position: -100% 0;
    opacity: 0.4;
  }
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.hero-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Hero form */
.hero-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}

.hero-card h3 {
  font-size: 20px;
  color: var(--blue-deep);
  margin-bottom: 6px;
}

.hero-card > p {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 22px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  background: var(--gray-100);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--blue-brand);
  background: var(--white);
}

.form-submit {
  width: 100%;
  background: var(--yellow);
  color: var(--blue-deep);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s;
}

.form-submit:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 200, 0, 0.35);
}

.form-legal {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
}

/* ── SECTIONS ── */
.section {
  padding: 80px 24px;
}

.section-light {
  background: var(--gray-100);
}

.section-dark {
  background: var(--blue-deep);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-brand);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(26px, 3vw, 40px);
  color: var(--blue-deep);
  margin-bottom: 16px;
}

.section-title.white {
  color: var(--white);
}

.section-desc {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 700px;
  line-height: 1.7;
}

.section-desc.white {
  color: rgba(255, 255, 255, 0.7);
}

.title-accent {
  color: var(--blue-brand);
}

.title-accent-yellow {
  color: var(--yellow);
}

.btn-primary {
  background: var(--yellow);
  color: var(--blue-deep);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 32px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 200, 0, 0.35);
}

/* ── VIDEO ── */
.video-section {
  padding: 64px 24px;
  background: var(--white);
}

.video-wrap {
  max-width: 860px;
  margin: 40px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
  position: relative;
  background: var(--blue-deep);
  aspect-ratio: 16/9;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--blue-deep) 0%,
    var(--blue-mid) 100%
  );
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(245, 200, 0, 0.5);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(245, 200, 0, 0.7);
}

.video-ghost-logo {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

/* ── SALARY BANNER ── */
.salary-banner {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-mid));
  padding: 28px 24px;
}

.salary-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.salary-item {
  text-align: center;
}

.salary-item .amount {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}

.salary-item .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.salary-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
}

/* ── CARDS GRID ── */
.salidas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.salida-item {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1.5px solid var(--gray-200);
  transition: all 0.2s;
}

.salida-item:hover {
  border-color: var(--blue-brand);
  box-shadow: 0 8px 32px rgba(16, 70, 178, 0.12);
  transform: translateY(-2px);
}

.salida-icon {
  font-size: 34px;
  margin-bottom: 14px;
  display: block;
}

.salida-item h4 {
  font-size: 15px;
  color: var(--blue-deep);
  font-weight: 700;
  margin-bottom: 6px;
}

.salida-item p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ── FASES PROCESO ── */
.fases-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.fase-item {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 26px;
  border: 1.5px solid var(--gray-200);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.fase-item:hover {
  border-color: var(--blue-brand);
  transform: translateX(4px);
}

.fase-num {
  background: var(--blue-brand);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 18px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fase-item h4 {
  font-size: 16px;
  color: var(--blue-deep);
  font-weight: 700;
  margin-bottom: 4px;
}

.fase-item p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ── CURSO GRID ── */
.curso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.curso-info-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.curso-info-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--gray-600);
}

.curso-info-list li::before {
  content: "✓";
  background: var(--blue-brand);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  position: absolute;
  top: 0.15em;
  left: 0;
}

/* ── REQUISITOS ── */
.requisitos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.requisito-card {
  background: var(--white);
  border-radius: 12px;
  padding: 22px;
  border: 1.5px solid var(--gray-200);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.requisito-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.requisito-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 3px;
}

.requisito-card p {
  font-size: 13px;
  color: var(--gray-600);
}

.requisito-note {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 20px;
  font-style: italic;
  text-align: center;
}

/* ── TEMARIO ÁREAS ── */
.temario-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.temario-area {
  border-radius: 16px;
  padding: 32px 28px;
}

.temario-area-juridica {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1.5px solid #c7d2fe;
}

.temario-area-psico {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1.5px solid #fde68a;
}

.temario-area-fisica {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
}

.temario-area h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
}

.temario-area-juridica h3 {
  color: #3730a3;
}

.temario-area-psico h3 {
  color: #92400e;
}

.temario-area-fisica h3 {
  color: #166534;
}

.temario-area-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}

.temario-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.temario-list li {
  font-size: 14px;
  color: var(--gray-800);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.temario-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  top: -2px;
}

.temario-area-juridica .temario-list li::before {
  color: #6366f1;
}

.temario-area-psico .temario-list li::before {
  color: #f59e0b;
}

.temario-area-fisica .temario-list li::before {
  color: #22c55e;
}

/* ── METODOLOGÍA CAROUSEL ── */
.meto-carousel-wrap {
  max-width: 680px;
  margin: 56px auto 0;
}

.meto-carousel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.meto-slide {
  display: none;
  padding: 44px 36px;
  text-align: center;
}

.meto-slide.active {
  display: block;
}

.meto-slide-num {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.meto-slide-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.meto-slide-title {
  font-size: 26px;
  color: var(--white);
  margin-bottom: 12px;
}

.meto-slide-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.meto-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.meto-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meto-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.meto-dots {
  display: flex;
  gap: 8px;
}

.meto-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s;
}

.meto-dot.active {
  background: var(--yellow);
}

.meto-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 20px;
}

.meto-progress-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.garantia-box {
  background: linear-gradient(135deg, var(--blue-brand), #0d3ba0);
  border: 1px solid rgba(245, 200, 0, 0.25);
  border-radius: 16px;
  padding: 32px 36px;
  margin-top: 48px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.garantia-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.garantia-box h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 10px;
}

.garantia-box p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ── OPINIONES ── */
.opiniones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.opinion-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border: 1.5px solid var(--gray-200);
}

.opinion-stars {
  color: var(--yellow);
  font-size: 18px;
  margin-bottom: 12px;
}

.opinion-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.opinion-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opinion-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-brand);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opinion-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-deep);
}

.opinion-since {
  font-size: 12px;
  color: var(--gray-400);
}

/* ── FAQ ── */
.faq-list {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  padding: 20px 24px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--blue-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--blue-brand);
  flex-shrink: 0;
  transition: all 0.2s;
}

.faq-answer {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

.faq-item.open .faq-toggle {
  background: var(--blue-brand);
  color: var(--white);
  transform: rotate(45deg);
}

/* ── CTA FINAL ── */
.cta-final {
  background: linear-gradient(
    135deg,
    var(--blue-deep) 0%,
    var(--blue-mid) 100%
  );
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 60% 50%,
    rgba(26, 95, 209, 0.4) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-final h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  color: var(--white);
  margin-bottom: 18px;
}

.cta-final p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: #06101e;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

footer span {
  color: var(--yellow);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

footer a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .curso-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .temario-areas {
    grid-template-columns: 1fr;
  }

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

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

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

  .salary-inner {
    gap: 28px;
  }

  .salary-divider {
    display: none;
  }

  .garantia-box {
    flex-direction: column;
  }

  .meto-slide {
    padding: 36px 28px;
  }

  .meto-slide-title {
    font-size: 22px;
  }
}
