@font-face {
  font-family: 'Popis';
  src: url('../fonts/popis/popis.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Popis';
  src: url('../fonts/popis/popisNegrita.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

:root {
  --navy: #0a1628;
  --navy2: #0f2044;
  --navy3: #162a55;
  --cyan: #00c8e8;
  --cyan2: #00a8c8;
  --white: #ffffff;
  --gray: #f4f6f9;
  --text: #1a2540;
  --muted: #6b7a99;
  --hovertxt: #0040ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Popis', sans-serif;
  color: var(--text);
  background: var(--white);
}

a {
  text-decoration: none;
}

.container-web {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

/* ========== NAVBAR ========== */

.nav {
  background: #fff;
  height: 68px;
  border-bottom: 1px solid #eef0f8;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.nav .container-web {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Popis', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--cyan);
  border-radius: 8px;
  color: var(--navy);
  font-family: 'Popis', sans-serif;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--navy2);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--hovertxt);
}

.nav-cta {
  background: var(--cyan);
  color: var(--navy);
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  transition: opacity 0.2s;
  display: inline-block;
}

.nav-cta:hover {
  opacity: 0.9;
  color: var(--navy);
}

.nav-toggler {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ========== HERO ========== */

.hero {
  background: #fff;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.hero .container-web {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 520px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-left {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f9fd;
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero-tag span {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Popis', sans-serif;
  font-weight: 800;
  font-size: 45px;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 em {
  color: var(--cyan);
  font-style: normal;
}

.hero-sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.btn-p {
  background: var(--cyan);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  transition: opacity 0.2s;
  display: inline-block;
}

.btn-p:hover {
  opacity: 0.9;
  color: var(--navy);
}

.btn-o {
  border: 1.5px solid #d0d8ea;
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  transition: border-color 0.2s;
  display: inline-block;
}

.btn-o:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ========== SERVICIOS STRIP ========== */

.servicios-strip {
  display: flex;
  gap: 12px;
}

.serv-card {
  background: #f8faff;
  border: 1px solid #eef0f8;
  border-radius: 10px;
  padding: 14px 18px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.serv-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.serv-icon i {
  color: var(--navy);
  font-size: 16px;
}

.serv-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.serv-count {
  font-size: 13px;
  color: var(--muted);
}

/* ========== HERO RIGHT ========== */

.hero-right {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: linear-gradient(135deg, #e8f9fd, #b8eef8, #d4f5ff);
  z-index: 0;
}

.hero-blob-2 {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%;
  background: linear-gradient(135deg, #f0fbff, #caf3fc);
  z-index: 0;
  top: 30px;
  right: -20px;
  opacity: 0.5;
}

.hero-circle-deco {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.15;
  bottom: 60px;
  left: 20px;
  z-index: 0;
}

.hero-circle-deco-2 {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.08;
  top: 40px;
  left: 40px;
  z-index: 0;
}

.hero-img-wrap {
  position: relative;
  z-index: 1;
  width: 340px;
  height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-img-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  mask-image: linear-gradient(
    to bottom,
    black 75%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 75%,
    transparent 100%
  );
}

.hero-img-wrap::after {
  display: none;
}

.hero-deco-lines {
  position: absolute;
  bottom: 45px;
  left: 100px;
  width: 100%;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}

.hero-img-wrap {
  position: relative;
  z-index: 1;
}

/* ========== BADGES FLOTANTES ========== */

.hero-badge {
  position: absolute;
  bottom: 80px;
  left: -10px;
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  border: 1px solid #eef0f8;
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.06);
}

.hero-badge-2 {
  position: absolute;
  top: 30px;
  right: -10px;
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  border: 1px solid #eef0f8;
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.06);
}

.hero-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e8f9fd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-icon i {
  color: var(--cyan2);
  font-size: 14px;
}

.hero-badge-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.hero-badge-sub {
  font-size: 13px;
  color: var(--muted);
}

/* ========== STATS BAR ========== */

.stats-bar {
  background: var(--navy);
  padding: 0;
}

.stats-bar .container-web {
  display: flex;
  padding-top: 24px;
  padding-bottom: 24px;
}

.stat-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Popis', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--white);
}

.stat-num em {
  color: var(--cyan);
  font-style: normal;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== SECCIONES ========== */

.section {
  padding: 64px 0;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Popis', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 36px;
}

/* ========== HERO SMALL ========== */

.hero-small {
  background: var(--navy);
  padding: 48px 0;
  text-align: center;
  color: var(--white);
}

.hero-small .container-web {
  text-align: center;
}

.hero-small h1 {
  font-family: 'Popis', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--white);
  margin-bottom: 12px;
}

.hero-small .breadcrumb {
  justify-content: center;
  margin-bottom: 0;
}

.hero-small .breadcrumb-item a {
  color: var(--cyan);
}

.hero-small .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.5);
}

.hero-small .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

/* ========== CARDS DE CURSOS ========== */

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.curso-card {
  background: var(--white);
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  overflow: hidden;
  transition: border-left 0.2s, transform 0.2s, box-shadow 0.2s;
}

.curso-card:hover {
  border-left: 3px solid var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.1);
}

.curso-thumb {
  height: 130px;
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.curso-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curso-thumb-num {
  font-family: 'Popis', sans-serif;
  font-weight: 800;
  font-size: 52px;
  color: #ffffff;
  position: absolute;
  top: 10px;
  right: 16px;
  line-height: 1;
}

.curso-thumb-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 200, 232, 0.15);
  border: 1px solid rgba(0, 200, 232, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 20px;
  position: relative;
  z-index: 1;
}

.curso-body {
  padding: 18px;
}

.curso-cat {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--cyan2);
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.curso-titulo {
  font-family: 'Popis', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.curso-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.curso-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-top: 1px solid #e8ecf4;
}

.curso-precio {
  font-family: 'Popis', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.curso-btn {
  background: var(--navy);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 5px;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  transition: background 0.2s;
  display: inline-block;
}

.curso-btn:hover {
  background: var(--navy2);
  color: var(--white);
}

/* ========== POR QUE ELEGIRNOS ========== */

.porque-section {
  background: var(--gray);
  padding: 64px 0;
}

.porque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.porque-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid #e8ecf4;
  position: relative;
  overflow: hidden;
}

.porque-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--cyan);
}

.porque-num {
  font-family: 'Popis', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: #0a1628;
  position: absolute;
  top: 16px;
  right: 16px;
  line-height: 1;
}

.porque-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 18px;
  margin-bottom: 16px;
}

.porque-card h4 {
  font-family: 'Popis', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}

.porque-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== FOOTER ========== */

.footer-main {
  background: var(--navy);
  padding: 0;
}

.footer-main .container-web {
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-brand {
  font-family: 'Popis', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand em {
  color: var(--cyan);
  font-style: normal;
}

.footer-ruc {
  display: inline-block;
  background: rgba(0, 200, 232, 0.08);
  border: 1px solid rgba(0, 200, 232, 0.2);
  color: var(--cyan);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 8px;
}

.footer-main h5 {
  font-family: 'Popis', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--cyan);
  color: var(--navy);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 0;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  margin: 0;
}

/* ========== WHATSAPP FLOTANTE ========== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white);
}

/* ========== FORMULARIO CONTACTO ========== */

.contacto-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contacto-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 200, 232, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 16px;
  flex-shrink: 0;
}

.contacto-info-item h5 {
  font-family: 'Popis', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.contacto-info-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.contacto-form .form-control {
  border: 1px solid #e8ecf4;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Popis', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s;
}

.contacto-form .form-control:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: none;
}

.contacto-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-enviar {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  width: 100%;
}

.btn-enviar:hover {
  opacity: 0.9;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid #eef0f8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggler {
    display: block;
  }

  .hero .container-web {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-right {
    display: none;
  }

  .servicios-strip {
    flex-direction: column;
  }

  .stats-bar .container-web {
    flex-wrap: wrap;
  }

  .stat-item {
    width: 50%;
    flex: none;
    padding: 12px 0;
    border-right: none;
  }

  .hero-small {
    padding: 32px 0;
  }

  .section {
    padding: 32px 0;
  }

  .cursos-grid {
    grid-template-columns: 1fr;
  }

  .porque-section {
    padding: 32px 0;
  }

  .porque-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.paginacion {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pag-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #eef0f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.pag-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.pag-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
  font-weight: 600;
}