/* Labher Capacitaciones · Instituto Online — página de inicio
   Valores tomados del prototipo "Labher Capacitaciones - Instituto Online". */

/* ---------- Fuentes (alojadas en este servidor) ---------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
:root {
  --verde-oscuro: #0c3a2b;
  --verde-noche: #0c2a20;
  --verde: #1f8a5b;
  --verde-claro: #3fbf85;
  --verde-menta: #7fd9ad;
  --verde-suave: #e8f2ec;
  --cobre: #c8703f;
  --crema: #f4f0e7;
  --papel: #fffdf8;
  --borde: #e7e0d2;
  --tinta: #13241c;
  --texto: #4a544c;
  --texto-2: #5d6660;
  --gris: #6b746c;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--crema);
  color: #1b241e;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--verde); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.contenedor { max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.saltar {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--verde-oscuro); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.saltar:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 2px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 240, 231, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.nav__fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.marca { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.marca__icono {
  width: 38px; height: 38px; border-radius: 11px; background: var(--verde-oscuro);
  display: flex; align-items: center; justify-content: center; position: relative; flex: none;
}
.marca__aro { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--verde-claro); display: block; }
.marca__punto { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cobre); right: 9px; bottom: 9px; }
.marca__texto { line-height: 1.05; }
.marca__nombre { font-weight: 800; font-size: 16px; letter-spacing: .02em; color: var(--verde-oscuro); }
.marca__sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--verde); font-weight: 600; }
.nav__enlaces { display: flex; align-items: center; gap: 28px; }
.nav__enlace { font-size: 14.5px; font-weight: 600; color: #3c463e; text-decoration: none; }
.nav__enlace:hover { color: var(--verde-oscuro); }
.btn-login {
  font-size: 14px; font-weight: 700; color: #fff; background: var(--verde);
  padding: 10px 20px; border-radius: 10px; text-decoration: none; white-space: nowrap;
}
.btn-login:hover { background: var(--verde-oscuro); }

/* ---------- Portada ---------- */
.portada {
  padding-top: 64px; padding-bottom: 28px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.portada__titulo {
  font-family: var(--serif); font-weight: 500; font-size: 55px; line-height: 1.04;
  letter-spacing: -.015em; color: var(--tinta); margin: 0 0 22px; text-wrap: balance;
}
.portada__texto { font-size: 18.5px; line-height: 1.55; color: var(--texto); margin: 0 0 34px; max-width: 30em; }
.portada__acciones { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-primario {
  font-size: 15.5px; font-weight: 700; color: #fff; background: var(--verde-oscuro);
  padding: 15px 28px; border-radius: 12px; box-shadow: 0 6px 18px rgba(12, 58, 43, .22);
  text-decoration: none; display: inline-block;
}
.btn-primario:hover { background: var(--tinta); }
.btn-secundario {
  font-size: 15.5px; font-weight: 700; color: var(--verde-oscuro); background: transparent;
  border: 1.5px solid #cdbfa7; padding: 15px 26px; border-radius: 12px;
  text-decoration: none; display: inline-block;
}
.btn-secundario:hover { border-color: var(--verde-oscuro); background: #ece5d6; }
.portada__foto {
  background-color: var(--verde-oscuro);
  background-image: url('../img/hero.jpg');
  background-image: image-set(url('../img/hero.webp') type('image/webp'), url('../img/hero.jpg') type('image/jpeg'));
  background-position: center 22%; background-size: cover; background-repeat: no-repeat;
  border: 1px solid #ddd4c3; border-radius: 20px; aspect-ratio: 4 / 3.2;
  box-shadow: inset 0 0 95px 42px rgba(12, 58, 43, .82), 0 22px 50px -22px rgba(12, 58, 43, .35);
}

/* ---------- Cifras ---------- */
.envoltura-cifras { padding-top: 30px; padding-bottom: 8px; }
.cifras {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde);
  margin: 0; padding: 0; list-style: none;
}
.cifra { padding: 24px 22px; border-right: 1px solid var(--borde); }
.cifra__valor { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--verde-oscuro); line-height: 1; }
.cifra__etiqueta { font-size: 13.5px; color: var(--gris); margin-top: 6px; font-weight: 500; }

/* ---------- Encabezados de sección ---------- */
.seccion { padding-top: 58px; padding-bottom: 20px; }
.seccion--catalogo { padding-top: 36px; scroll-margin-top: 72px; }
.seccion__cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.seccion--catalogo .seccion__cabecera { margin-bottom: 26px; }
.antetitulo { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--verde); font-weight: 700; margin: 0 0 12px; }
.titulo-seccion { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.08; color: var(--tinta); margin: 0; }
.beneficios__titulo { max-width: 14em; }
.seccion__bajada { font-size: 15.5px; line-height: 1.55; color: var(--texto-2); max-width: 24em; margin: 0; }

/* ---------- Beneficios ---------- */
.beneficios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.beneficio {
  background: var(--papel); border: 1px solid var(--borde); border-radius: 18px; padding: 26px 22px;
  transition: border-color .15s ease;
}
.beneficio:hover { border-color: var(--verde); }
.beneficio__numero {
  width: 46px; height: 46px; border-radius: 13px; background: var(--verde-suave);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--verde); margin-bottom: 18px;
}
.beneficio__titulo { font-weight: 700; font-size: 17px; color: var(--tinta); margin: 0 0 8px; }
.beneficio__texto { font-size: 14px; line-height: 1.5; color: var(--texto-2); margin: 0; }

/* ---------- Catálogo ---------- */
.cursos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.curso {
  display: block; height: 100%; background: var(--papel); border: 1px solid var(--borde);
  border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.curso:hover { border-color: var(--verde); box-shadow: 0 14px 30px -18px rgba(12, 58, 43, .35); }
.curso__portada {
  height: 118px; position: relative; background-color: var(--verde-oscuro);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  border-bottom: 1px solid var(--borde); box-shadow: inset 0 0 70px 30px rgba(12, 58, 43, .82);
}
.curso__portada--seguridad { background-image: url('../img/curso-seguridad.jpg'); background-image: image-set(url('../img/curso-seguridad.webp') type('image/webp'), url('../img/curso-seguridad.jpg') type('image/jpeg')); }
.curso__portada--onboarding { background-image: url('../img/curso-onboarding.jpg'); background-image: image-set(url('../img/curso-onboarding.webp') type('image/webp'), url('../img/curso-onboarding.jpg') type('image/jpeg')); }
.curso__portada--geolabh { background-image: url('../img/curso-geolabh.jpg'); background-image: image-set(url('../img/curso-geolabh.webp') type('image/webp'), url('../img/curso-geolabh.jpg') type('image/jpeg')); }
.curso__portada--liderazgo { background-image: url('../img/curso-liderazgo.jpg'); background-image: image-set(url('../img/curso-liderazgo.webp') type('image/webp'), url('../img/curso-liderazgo.jpg') type('image/jpeg')); }
.curso__portada--legal { background-image: url('../img/curso-legal.jpg'); background-image: image-set(url('../img/curso-legal.webp') type('image/webp'), url('../img/curso-legal.jpg') type('image/jpeg')); }
.curso__portada--ofimatica { background-image: url('../img/curso-ofimatica.jpg'); background-image: image-set(url('../img/curso-ofimatica.webp') type('image/webp'), url('../img/curso-ofimatica.jpg') type('image/jpeg')); }
.curso__piloto {
  position: absolute; top: 12px; left: 12px; background: var(--cobre); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 5px 10px; border-radius: 999px; text-transform: uppercase;
}
.curso__cuerpo { padding: 18px 20px 20px; }
.curso__area { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--verde); margin-bottom: 9px; }
.curso__nombre { font-weight: 700; font-size: 17px; color: var(--tinta); line-height: 1.22; margin: 0 0 14px; min-height: 2.4em; }
.curso__datos { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--gris); font-weight: 500; }
.curso__sep { color: #d6cdbb; }

/* ---------- Franja motivacional ---------- */
.franja-envoltura { margin-top: 48px; padding-bottom: 64px; }
.franja {
  background: var(--verde); border-radius: 24px; padding: 60px 56px; text-align: center;
  overflow: hidden; position: relative;
}
.franja__contenido { position: relative; z-index: 2; }
.franja__titulo {
  font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 38px; line-height: 1.16;
  color: #fff; margin: 0 auto 16px; max-width: 18em; text-wrap: balance;
}
.franja__texto { font-size: 16.5px; color: #dcefe5; margin: 0 auto; max-width: 34em; line-height: 1.55; }
.franja__circulo { position: absolute; border-radius: 50%; }
.franja__circulo--1 { right: -60px; top: -60px; width: 240px; height: 240px; background: rgba(255, 255, 255, .08); }
.franja__circulo--2 { left: -50px; bottom: -70px; width: 200px; height: 200px; background: rgba(255, 255, 255, .06); }

/* ---------- Contacto ---------- */
.contacto { padding-bottom: 64px; scroll-margin-top: 72px; }
.contacto__intro { max-width: 700px; }
.contacto__antetitulo { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.contacto__barra { width: 3px; height: 16px; background: var(--verde); display: block; border-radius: 2px; }
.contacto__flecha { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--verde); }
.contacto__antetitulo .antetitulo { margin: 0; }
.contacto__titulo { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.1; color: var(--tinta); margin: 0 0 16px; }
.contacto__texto { font-size: 16px; line-height: 1.6; color: var(--texto-2); margin: 0 0 32px; }
.formulario { max-width: 700px; background: var(--papel); border: 1px solid var(--borde); border-radius: 20px; padding: 34px 36px; }
.campo { margin-bottom: 20px; }
.campo--mensaje { margin-bottom: 26px; }
.campo label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #3c463e; margin-bottom: 9px; }
.campo input, .campo select, .campo textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--tinta); background: var(--crema);
  border: 1px solid #e0d8c8; border-radius: 11px; padding: 13px 15px;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(31, 138, 91, .18); }
.campo textarea { resize: vertical; }
/* Campo trampa para bots: oculto a personas y lectores de pantalla */
.campo-trampa { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.btn-enviar {
  width: 100%; border: 0; cursor: pointer; font-family: inherit; text-align: center;
  font-size: 14.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: #fff; background: var(--verde); padding: 15px; border-radius: 12px;
}
.btn-enviar:hover { background: var(--verde-oscuro); }

/* Mensajes de resultado: se muestran con el ancla (#enviado / #error), sin JavaScript */
.aviso { display: none; max-width: 700px; border-radius: 20px; padding: 44px 40px; text-align: center; margin-bottom: 24px; scroll-margin-top: 90px; }
.aviso:target { display: block; }
.aviso--ok { background: var(--verde-suave); border: 1px solid #cfe6da; }
.aviso--error { background: #fbeee6; border: 1px solid #efcdb8; }
.aviso__icono { width: 52px; height: 52px; border-radius: 50%; background: var(--verde); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.aviso__check { width: 18px; height: 9px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -2px); display: block; }
.aviso__titulo { font-weight: 800; font-size: 19px; color: var(--verde-oscuro); margin: 0 0 8px; }
.aviso--error .aviso__titulo { color: #8a4320; }
.aviso__texto { font-size: 14.5px; color: #3c5c4e; line-height: 1.55; margin: 0 auto 18px; max-width: 34em; }
.aviso__enlace { font-size: 13.5px; font-weight: 700; color: var(--verde); }
#enviado:target ~ .formulario { display: none; }

/* ---------- Pie ---------- */
.pie { background: var(--verde-noche); }
.pie__fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.pie__marca { display: flex; align-items: center; gap: 11px; }
.pie__icono { width: 32px; height: 32px; border-radius: 9px; background: var(--verde); display: flex; align-items: center; justify-content: center; flex: none; }
.pie__aro { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; }
.pie__nombre { font-weight: 700; color: #fff; letter-spacing: .02em; }
.pie__sub { color: var(--verde-menta); font-weight: 600; }
.pie__legal { font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- Adaptación a pantallas medianas y celulares ---------- */
@media (max-width: 1024px) {
  .portada { gap: 36px; }
  .portada__titulo { font-size: 46px; }
  .beneficios { grid-template-columns: repeat(2, 1fr); }
  .cursos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .contenedor { padding-left: 20px; padding-right: 20px; }
  .nav__enlace { display: none; }
  .portada { grid-template-columns: 1fr; padding-top: 40px; }
  .portada__titulo { font-size: 40px; }
  .portada__texto { font-size: 17px; }
  .cifras { grid-template-columns: repeat(2, 1fr); }
  .cifra:nth-child(2n) { border-right: 0; }
  .cifra:nth-child(-n+2) { border-bottom: 1px solid var(--borde); }
  .seccion__cabecera { flex-direction: column; align-items: flex-start; gap: 14px; }
  .titulo-seccion, .contacto__titulo, .franja__titulo { font-size: 31px; }
  .franja { padding: 44px 26px; }
  .formulario { padding: 26px 20px; }
}
@media (max-width: 560px) {
  .marca__nombre { font-size: 14px; }
  .btn-login { padding: 9px 14px; }
  .portada__titulo { font-size: 34px; }
  .portada__acciones a { flex: 1 1 100%; text-align: center; }
  .beneficios, .cursos { grid-template-columns: 1fr; }
  .cifra { padding: 18px 14px; }
  .cifra__valor { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beneficio, .curso { transition: none; }
}
