/* Go Elevate - replica del diseno actual de blog.ingenia.la
   Fondo negro, Poppins en titulos y card, Nunito en el cuerpo,
   card lateral #1a1a1a, acento cyan #08FFFF. Sin el footer viejo. */

:root {
  --black: #000;
  --card: #1a1a1a;
  --cyan: #08ffff;
  --cyan-hover: #4ce8e8;
  --secondary: #6953ff;
  --wa: #00cb64;
  --white: #fff;
  --nav-h: 64px;
  --wrap: 1600px;
  --poppins: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --nunito: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --inter: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--nunito);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: var(--wrap);
}
@media (min-width: 640px) { .wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding-left: 3.5rem; padding-right: 3.5rem; } }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cyan);
  color: #000;
  padding: 0.6rem 1rem;
  font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo img { width: 100px; height: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.langs {
  display: inline-flex;
  align-items: center;
  font-family: var(--poppins);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}
.langs .bar { color: rgba(255, 255, 255, 0.35); margin: 0 0.5rem; }
.lang { text-decoration: none; color: rgba(255, 255, 255, 0.55); transition: color 0.15s ease; }
.lang:hover { color: var(--white); }
.lang.is-active { color: var(--cyan); }

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 35px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: #000; border-color: transparent; }

.btn-solid { background: var(--secondary); color: var(--white); }
.btn-solid:hover { opacity: 0.9; }

.btn-cyan { background: var(--cyan); color: #000; font-family: var(--poppins); font-size: 1.25rem; }
.btn-cyan:hover { opacity: 0.9; }

/* boton de la card lateral: transparente con borde blanco en desktop,
   cyan solido en mobile — igual que hoy */
.btn-card {
  width: 100%;
  font-family: var(--poppins);
  font-size: 1.25rem;
  background: var(--cyan);
  color: #000;
}
.btn-card:hover { background: var(--cyan-hover); }
@media (min-width: 640px) {
  .btn-card { background: transparent; color: var(--white); border-color: var(--white); }
  .btn-card:hover { background: var(--white); color: #000; border-color: transparent; }
}

@media (max-width: 560px) {
  .nav-right .btn-outline { display: none; }
  .btn { padding: 8px 14px; font-size: 0.8rem; }
}

/* ---------- pagina ---------- */

.course { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 5rem; }

/* Mobile: video -> card -> descripcion, igual que el sitio original.
   Desktop: card sticky a la derecha, descripcion debajo del video. */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "card" "desc";
  gap: 2.5rem;
}
.col-head { grid-area: head; min-width: 0; }
.card { grid-area: card; }
.desc { grid-area: desc; min-width: 0; }

@media (min-width: 1024px) {
  .cols {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "head card" "desc card";
    align-items: start;
  }
}

.crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--poppins);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1rem;
}
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--cyan); }
.crumb span { color: var(--white); }
.crumb svg { flex: none; }

h1 {
  font-family: var(--poppins);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 2rem;
}

.lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 70ch;
  margin: -1rem 0 3rem;
}

.h5 {
  font-family: var(--nunito);
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 1.25rem;
}

.desc p { margin: 0 0 2.5rem; max-width: 85ch; }
.desc p:last-child { margin-bottom: 0; }
@media (min-width: 1024px) { .desc p { font-size: 21px; } }

/* ---------- card lateral ---------- */

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem 1rem;
  font-family: var(--poppins);
}
@media (min-width: 1024px) {
  .card {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    padding: 2rem;
  }
}

.specs { list-style: none; margin: 2rem 0 0; padding: 0; }
.specs li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 22px;
}
.specs li:last-child { margin-bottom: 0; }
.specs img { width: 25px; height: auto; flex: none; margin-top: 1px; }
.specs span { line-height: 1.4; }

/* ---------- video ---------- */

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity 0.2s ease; }
.video-play:hover img { opacity: 0.85; }

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
.video-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #000;
}
.video-play:hover .video-play-icon { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- volver ---------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 0 0;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--white);
}
.back:hover { color: var(--cyan); }
@media (min-width: 1024px) { .back { font-size: 20px; } }

/* ---------- indice ---------- */

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
}

.ccard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 320px;
  min-height: 480px;
  background: var(--card);
  border-radius: 40px;
  padding: 1.5rem;
  font-family: var(--poppins);
}
@media (min-width: 1024px) { .ccard { min-height: 520px; } }

.ccard-img {
  height: 235px;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
}
.ccard-img img { width: 100%; height: 100%; object-fit: cover; }

.ccard-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem;
}

.ccard-desc {
  font-family: var(--nunito);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.5rem;
}

/* ---------- whatsapp ---------- */

.wa {
  position: fixed;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: 40;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s linear;
}
.wa:hover { transform: scale(1.1); }
@media (max-width: 640px) {
  .wa { right: 1.25rem; bottom: 1.25rem; width: 60px; height: 60px; }
  .wa svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .wa:hover, .video-play:hover .video-play-icon { transform: none; }
}

/* ---------- footer: replica del de www.ingenia.la ----------
   Tokens medidos sobre el sitio vivo: titulos Space Mono 700/16 uppercase,
   links Inter 400/14 #FCFCFC, titular del newsletter Inter 300/36,
   input borde #7A7A7A radio 8px 0 0 8px, boton Space Mono 14 radio 0 8px 8px 0. */

.site-footer {
  --foot-text: #fcfcfc;
  background: var(--black);
  padding: 4.5rem 0 2.5rem;
  font-family: var(--inter);
}

.foot-grid {
  display: grid;
  grid-template-columns: 140px minmax(260px, 1.3fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(400px, 1.4fr);
  gap: 2.5rem 2.5rem;
  align-items: start;
  padding-bottom: 3.5rem;
}

.foot-logo img { width: 130px; height: auto; }

.foot-h {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--foot-text);
  margin: 0 0 2rem;
}

/* SOLUCIONES se abre en dos sub-columnas, igual que el main */
.foot-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem 2rem; }
.foot-links { display: flex; flex-direction: column; gap: 1.1rem; }
.foot-links a {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 400;
  color: var(--foot-text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-links a:hover { color: var(--cyan); }

/* newsletter */
.foot-news-h {
  font-family: var(--inter);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.75rem;
  max-width: 12ch;
}
.foot-arrow { color: var(--cyan); display: block; margin-bottom: 1rem; }
.foot-news-p {
  font-family: var(--inter);
  font-size: 14px;
  color: #fff;
  margin: 0 0 1.25rem;
  max-width: 42ch;
}

/* El input del main postea a /api/newsletter/mailchimp, que no acepta CORS
   desde otro dominio. Hasta que eso se resuelva esto es un link al main:
   preferible a un campo que se traga el mail y no lo manda a ningun lado. */
.foot-subscribe {
  display: flex;
  align-items: stretch;
  max-width: 460px;
  text-decoration: none;
  border-radius: 8px;
}
.foot-subscribe-field {
  flex: 1;
  border: 1px solid #7a7a7a;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 14px 12px;
  font-family: var(--inter);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.45);
}
.foot-subscribe-btn {
  display: flex;
  align-items: center;
  background: var(--secondary);
  color: #fff;
  border-radius: 0 8px 8px 0;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.foot-subscribe:hover .foot-subscribe-btn { opacity: 0.9; }

/* fila inferior: legales alineados a las mismas columnas + copyright */
.foot-bottom {
  display: grid;
  grid-template-columns: 140px minmax(260px, 1.3fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(400px, 1.4fr);
  gap: 2.5rem 2.5rem;
  align-items: center;
}
.foot-bottom a,
.foot-rights {
  font-family: var(--inter);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin: 0;
}
.foot-bottom a:hover { color: var(--cyan); }
.foot-rights { text-align: right; }

@media (max-width: 1350px) {
  .foot-grid, .foot-bottom { grid-template-columns: 1fr 1fr; }
  .foot-logo, .foot-spacer { grid-column: 1 / -1; }
  .foot-rights { text-align: left; }
}
@media (max-width: 640px) {
  .site-footer { padding-bottom: 7rem; }
  .foot-grid, .foot-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .foot-news-h { font-size: 28px; }
  .foot-h { margin-bottom: 1.25rem; }
}

/* ---------- indice agrupado por audiencia ---------- */

.track-h {
  font-family: var(--poppins);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(8, 255, 255, 0.2);
}
.track-h:first-of-type { margin-top: 1rem; }

/* card de curso sin ilustracion todavia */
.ccard-img.is-placeholder {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(8, 255, 255, 0.16), transparent 60%),
    radial-gradient(110% 90% at 90% 100%, rgba(105, 83, 255, 0.28), transparent 60%),
    #111;
}
