:root {
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --card: rgba(12, 25, 43, 0.88);
  --card-2: rgba(255, 255, 255, 0.06);
  --text: #eef4ff;
  --muted: #a9b8d0;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #f9ad2e;
  --primary-2: #ffcb71;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #05101d 0%, #09162a 55%, #07111f 100%);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(249, 173, 46, 0.12), transparent 22%),
    radial-gradient(circle at left 20%, rgba(49, 130, 246, 0.16), transparent 25%);
}

.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 76px 0; }
.section--soft { background: rgba(255,255,255,0.02); }

.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  width: min(calc(100% - 24px), 1240px); margin: 16px auto 0; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(16px);
  background: rgba(5, 16, 29, 0.72);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand__logo { width: 52px; height: 52px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.brand__name { display: block; font-weight: 800; letter-spacing: 0.03em; }
.brand__sub { display: block; color: var(--muted); font-size: 0.82rem; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.96rem; transition: 0.2s ease; }
.nav a:hover { color: var(--text); }
.nav__cta {
  padding: 12px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #182132 !important; font-weight: 800 !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.nav__cta:hover {
  box-shadow: 0 0 24px rgba(249, 173, 46, 0.5), 0 0 0 1px rgba(249, 173, 46, 0.3);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
}
.nav-toggle { display: none; background: transparent; border: 0; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 4px; }

.hero { padding-top: 72px; }
.hero__content { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(249, 173, 46, 0.28);
  background: rgba(249, 173, 46, 0.08); color: var(--primary-2); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.02em;
}
.hero h1, .section-heading h2 { margin: 16px 0 18px; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.02; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.hero p, .section-heading p, .modal p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.hero__actions { display: flex; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 800;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #1b2233; }
.btn--ghost { background: rgba(255, 255, 255, 0.04); }
.btn:hover {
  border-color: rgba(249, 173, 46, 0.75);
  box-shadow: 0 0 18px rgba(249, 173, 46, 0.35), 0 0 0 1px rgba(249, 173, 46, 0.18);
  transform: translateY(-2px);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 0 24px rgba(249, 173, 46, 0.5), 0 0 0 1px rgba(249, 173, 46, 0.3);
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
  padding: 22px; border-radius: var(--radius-sm); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stat-card strong { font-size: clamp(1.9rem, 4vw, 2.6rem); display: block; margin-bottom: 6px; min-height: 1.2em; }
.stat-card span { color: var(--muted); line-height: 1.4; }

.hero__media-card {
  border-radius: 34px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #0d1829; transform: none;
}
.hero__media-card img { width: 100%; height: 100%; object-fit: cover; }
.hero__floating {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.hero__floating span {
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  color: var(--text); font-weight: 600;
}

.highlights {
  margin-top: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.highlights article {
  padding: 18px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); text-align: center; color: var(--muted); font-weight: 700;
}
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.feature-panel {
  padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(249,173,46,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(249, 173, 46, 0.16); box-shadow: var(--shadow);
}
.feature-panel h3 { margin-top: 0; font-size: 1.4rem; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.check-list li {
  position: relative; padding-left: 34px; color: var(--text); line-height: 1.5;
}
.check-list li::before {
  content: '✔'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center; background: rgba(249, 173, 46, 0.18); color: var(--primary-2); font-size: 0.85rem;
}

.courses-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px;
}
.course-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 100%;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.course-card img { width: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform 0.35s ease; }
.course-card__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.course-card:hover { transform: translateY(-10px); border-color: rgba(249, 173, 46, 0.75); box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(249, 173, 46, 0.18); background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(249,173,46,0.06)); }
.course-card:hover img { transform: scale(1.05); }
.course-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.course-card p { color: var(--muted); margin: 0; line-height: 1.6; }
.course-card button {
  margin-top: auto; width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid rgba(249,173,46,0.22);
  background: rgba(249, 173, 46, 0.12); color: var(--primary-2); font-weight: 800; cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover button, .course-card button:hover {
  border-color: rgba(249, 173, 46, 0.85);
  background: rgba(249, 173, 46, 0.2);
  box-shadow: 0 0 0 1px rgba(249, 173, 46, 0.15);
  transform: translateY(-1px);
}

.gallery-grid {
  margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.gallery-item {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #0c1727; cursor: pointer; position: relative;
}
.gallery-item img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.35s ease, filter 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05); }

.carousel { position: relative; margin-top: 32px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform 0.45s ease; }
.carousel__slide { min-width: 100%; padding: 0 56px; }
.carousel__card {
  margin: 0 auto; width: min(760px, 100%); padding: 18px; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03)); box-shadow: var(--shadow);
}
.carousel__card img { width: 100%; border-radius: 18px; object-fit: contain; background: white; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.08); color: white; cursor: pointer; z-index: 2; font-size: 1.7rem;
}
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

.contact-wrap { display: grid; gap: 26px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.contact-card {
  padding: 26px; border-radius: 24px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.contact-card:hover {
  border-color: rgba(249, 173, 46, 0.75);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34), 0 0 18px rgba(249, 173, 46, 0.35), 0 0 0 1px rgba(249, 173, 46, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(249,173,46,0.06));
  transform: translateY(-6px);
}
.contact-card__label { color: var(--primary-2); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.contact-card strong { font-size: 1.25rem; }
.contact-card small { color: var(--muted); }

.footer { padding: 30px 0 46px; border-top: 1px solid var(--line); }
.footer__content { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 24px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; }
.footer__brand p, .footer__links a, .footer__socials a { color: var(--muted); }
.footer__links, .footer__socials { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; }
.footer__socials { justify-content: flex-end; }

.floating-socials {
  position: fixed; right: 18px; bottom: 18px; z-index: 25; display: flex; flex-direction: column; gap: 12px;
}
.floating-social {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.floating-social:hover { transform: translateY(-3px) scale(1.04); }
.floating-social svg { width: 26px; height: 26px; fill: white; }
.floating-social--whatsapp { background: linear-gradient(135deg, #24d366, #6de29a); }
.floating-social--facebook { background: linear-gradient(135deg, #1877f2, #4f9cff); }
.floating-social--instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045); }

.modal, .lightbox {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 60;
}
.modal.is-open, .lightbox.is-open { display: flex; }
.modal__overlay, .lightbox__overlay { position: absolute; inset: 0; background: rgba(5, 10, 18, 0.76); backdrop-filter: blur(6px); }
.modal__dialog {
  position: relative; width: min(920px, calc(100% - 24px)); max-height: calc(100vh - 40px); overflow: auto;
  border-radius: 28px; background: #081321; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.modal__close, .lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.08); color: white; font-size: 1.6rem; cursor: pointer;
}
.modal__body { padding: 24px; }
.modal-course { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 24px; }
.modal-course img { width: 100%; border-radius: 20px; border: 1px solid var(--line); }
.modal-course h3 { margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.modal-course .tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.modal-course .tags span {
  padding: 8px 12px; border-radius: 999px; background: rgba(249,173,46,0.12); border: 1px solid rgba(249,173,46,0.16); color: var(--primary-2); font-weight: 700; font-size: 0.9rem;
}
.modal-course__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.modal-course__box {
  padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
}
.modal-course__box h4 { margin-top: 0; margin-bottom: 12px; }
.modal-course__box ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }

.modal-course__actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.modal-course__cta { min-width: 220px; }
.lightbox { opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { position: relative; z-index: 1; margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox img { position: relative; max-width: min(1000px, calc(100% - 40px)); max-height: calc(100vh - 120px); border-radius: 24px; z-index: 1; box-shadow: var(--shadow); }
.lightbox figcaption { color: var(--muted); font-size: 0.95rem; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.09); color: white; cursor: pointer; font-size: 2rem; }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }


/* === Carrusel de empresas === */
.empresas-carousel {
  margin-top: 32px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.empresas-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  animation: empresas-scroll 35s linear infinite;
}
.empresas-track img {
  height: 100px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  padding: 14px 22px;
  border-radius: 16px;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.empresas-track img:hover {
  opacity: 1;
  transform: scale(1.06);
}
@keyframes empresas-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.empresas-carousel:hover .empresas-track {
  animation-play-state: paused;
}

@media (max-width: 820px) {
  .empresas-track { gap: 30px; }
  .empresas-track img { height: 80px; max-width: 170px; padding: 12px 18px; }
}
@media (max-width: 560px) {
  .empresas-track { gap: 24px; }
  .empresas-track img { height: 65px; max-width: 140px; padding: 10px 14px; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.18s; }

@media (max-width: 1120px) {
  .hero__content, .split, .footer__content { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: repeat(3, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__links, .footer__socials { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .topbar { border-radius: 24px; padding: 14px 16px; align-items: center; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0 auto; width: min(calc(100% - 12px), 100%);
    flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; border-radius: 24px; border: 1px solid var(--line);
    background: rgba(5, 16, 29, 0.95); display: none;
  }
  .nav.is-open { display: flex; }
  .hero { padding-top: 40px; }
  .stats, .highlights, .courses-grid, .gallery-grid, .modal-course, .modal-course__columns { grid-template-columns: 1fr; }
  .carousel__slide { padding: 0 34px; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .brand__sub { display: none; }
  .hero h1, .section-heading h2 { line-height: 1.08; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
  .carousel__btn { display: none; }
  .carousel__slide { padding: 0; }
  .modal__body { padding: 18px; }
  .modal-course__actions { flex-direction: column; }
  .lightbox__nav { width: 46px; height: 46px; font-size: 1.6rem; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

@media (max-width: 640px) {
  .floating-socials { right: 14px; bottom: 14px; gap: 10px; }
  .floating-social { width: 54px; height: 54px; }
  .floating-social svg { width: 24px; height: 24px; }
}
