/*
  ACADEMIA FUTURA - HOJA DE ESTILOS
  ------------------------------------------------------------
  Este CSS esta muy comentado para que se pueda estudiar con calma.

  Organizacion:
  1. Variables de color y estilos generales
  2. Componentes reutilizables
  3. Cabecera y logotipo
  4. Hero
  5. Cursos destacados
  6. Metodologia
  7. Ventajas
  8. Contacto
  9. Pie de pagina
  10. Diseno responsive
*/

/* ============================================================
   1. VARIABLES Y BASE
   ============================================================ */

:root {
  /*
    Paleta elegida a partir del logotipo.
    Se usan fondos claros y azules suaves, reservando el azul oscuro
    para textos, hero y pie de pagina.
  */
  --color-navy: #0b1f3a;
  --color-navy-dark: #07111f;
  --color-blue-soft: #eaf3ff;
  --color-cyan-soft: #ddf9ff;
  --color-green: #20d889;
  --color-cyan: #22b8cf;
  --color-white: #ffffff;
  --color-light: #f5f7fa;
  --color-border: #d7dee8;
  --color-text: #25364d;
  --color-muted: #607083;

  /* Medida maxima para que el contenido no sea demasiado ancho. */
  --container: 1180px;

  /* Radios y sombras comunes para tarjetas e imagenes. */
  --radius: 8px;
  --shadow: 0 16px 38px rgba(11, 31, 58, 0.12);
}

/* El selector universal ayuda a que paddings y bordes no rompan anchos. */
* {
  box-sizing: border-box;
}

html {
  /* Desplazamiento suave al pulsar los enlaces del menu. */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* Las imagenes se adaptan al ancho disponible y eliminan huecos inferiores. */
img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ============================================================
   2. COMPONENTES REUTILIZABLES
   ============================================================ */

/* Boton principal usado en hero, cabecera, ventajas y formulario. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 2px solid var(--color-green);
  border-radius: 7px;
  background-color: var(--color-green);
  color: var(--color-navy-dark);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(32, 216, 137, 0.26);
}

/* Variante pequena para el boton de la cabecera. */
.button--small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
}

/* Variante transparente para fondos oscuros. */
.button--outline {
  border-color: rgba(255, 255, 255, 0.78);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
}

/* Variante transparente para fondos verdes o claros. */
.button--outline-dark {
  border-color: rgba(7, 17, 31, 0.28);
  background-color: transparent;
  color: var(--color-navy-dark);
}

/* Etiqueta pequena que introduce algunas secciones. */
.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--color-cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Contenedor comun para las secciones principales. */
.section {
  padding: 76px 40px;
}

.section__header {
  width: min(100%, var(--container));
  margin: 0 auto 34px;
}

.section__header--with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section__title {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.text-link {
  color: var(--color-cyan);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: " ->";
}

/* ============================================================
   3. CABECERA Y LOGOTIPO
   ============================================================ */

.header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 82px;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: var(--color-white);
}

/* Logo compuesto por simbolo + texto. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-weight: 900;
  line-height: 0.95;
  text-decoration: none;
  text-transform: uppercase;
}

/* Simbolo del logo: caja invisible que contiene las barras. */
.logo__symbol {
  position: relative;
  width: 48px;
  height: 40px;
  flex: 0 0 auto;
}

/* Barras geometricas del logo. */
.logo__bar {
  position: absolute;
  left: 0;
  height: 10px;
  border-radius: 1px;
  transform: skewY(-16deg);
}

.logo__bar--top {
  top: 0;
  width: 44px;
  background-color: var(--color-green);
}

.logo__bar--middle {
  top: 15px;
  width: 34px;
  background-color: var(--color-cyan);
}

.logo__bar--bottom {
  top: 30px;
  width: 24px;
  background-color: #2f80ed;
}

.logo__text {
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav__link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--color-green);
}

/* ============================================================
   4. HERO
   ============================================================ */

.hero {
  min-height: 760px;
  background-image: url("../img/hero-profesor-pizarra.png");
  background-position: center center;
  background-size: cover;
  color: var(--color-white);
}

/*
  El degradado oscurece la zona izquierda, donde va el texto.
  La derecha queda mas luminosa para que la imagen tenga protagonismo.
*/
.hero__overlay {
  min-height: 760px;
  padding: 150px 40px 56px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.88) 0%, rgba(7, 17, 31, 0.68) 36%, rgba(7, 17, 31, 0.22) 72%, rgba(7, 17, 31, 0.08) 100%);
}

.hero__content {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(34, 184, 207, 0.8);
  border-radius: 999px;
  background-color: rgba(7, 17, 31, 0.35);
  color: var(--color-cyan-soft);
}

.hero__title {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
}

.hero__text {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__stats {
  max-width: 760px;
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
  padding: 26px 26px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.38);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--color-green);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

/* ============================================================
   5. CURSOS DESTACADOS
   ============================================================ */

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

.courses {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.course-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-white);
  box-shadow: var(--shadow);
}

.course-card__image {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.course-card__content {
  min-height: 230px;
  padding: 24px;
  border-top: 5px solid var(--color-cyan);
}

.course-card__title {
  margin: 0 0 12px;
  color: var(--color-navy);
  font-size: 23px;
  line-height: 1.15;
}

.course-card__text {
  margin: 0 0 22px;
  color: var(--color-muted);
}

.course-card__link {
  color: var(--color-cyan);
  font-weight: 800;
  text-decoration: none;
}

.course-card__link::after {
  content: " ->";
}

/* ============================================================
   6. METODOLOGIA
   ============================================================ */

.section--method {
  background-color: var(--color-light);
}

.method {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 54px;
  align-items: center;
}

.method__image {
  width: 100%;
  height: 530px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.steps {
  margin-top: 30px;
}

.step {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--color-border);
}

.step:first-child {
  border-top: 1px solid var(--color-border);
}

.step__number {
  color: var(--color-cyan);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.step__title {
  margin: 0 0 6px;
  color: var(--color-navy);
  font-size: 21px;
}

.step__text {
  margin: 0;
  color: var(--color-muted);
}

/* ============================================================
   7. VENTAJAS
   ============================================================ */

.section--blue {
  background-color: var(--color-blue-soft);
}

.benefits {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.benefit-card {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--color-white);
  box-shadow: var(--shadow);
}

.benefit-card__image {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.benefit-card__content {
  padding: 22px;
}

.benefit-card__title {
  margin: 0 0 10px;
  color: var(--color-navy);
  font-size: 22px;
  line-height: 1.15;
}

.benefit-card__text {
  margin: 0;
  color: var(--color-muted);
}

/* Tarjeta destacada con color del logo. */
.benefit-card--featured {
  min-height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, var(--color-green), #2ee59d);
}

.benefit-card--featured .benefit-card__title {
  font-size: 28px;
}

.benefit-card--featured .benefit-card__text {
  margin-bottom: 24px;
  color: var(--color-navy-dark);
}

/* ============================================================
   8. CONTACTO
   ============================================================ */

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

.contact {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 34px;
  align-items: stretch;
}

.contact__image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.contact__form {
  padding: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  color: var(--color-navy);
  background-color: var(--color-white);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.contact__info {
  padding-left: 32px;
  border-left: 1px solid var(--color-border);
}

.contact__info h3 {
  margin: 0 0 22px;
  color: var(--color-navy);
  font-size: 24px;
}

.contact__info p {
  margin: 0 0 22px;
  color: var(--color-muted);
}

.contact__info strong {
  color: var(--color-navy);
}

/* ============================================================
   9. PIE DE PAGINA
   ============================================================ */

.footer {
  padding: 54px 40px 24px;
  background-color: var(--color-navy-dark);
  color: var(--color-white);
}

.footer__inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
}

.logo--footer {
  margin-bottom: 18px;
}

.footer__text {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer__column h3 {
  margin: 0 0 14px;
  color: var(--color-white);
  font-size: 18px;
}

.footer__column a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer__column a:hover {
  color: var(--color-green);
}

.footer__bottom {
  width: min(100%, var(--container));
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

/* ============================================================
   10. DISENO RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  /* En pantallas medianas, las tarjetas pasan a dos columnas. */
  .courses,
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact__info {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .header {
    position: static;
    padding: 18px 22px;
    flex-wrap: wrap;
    background-color: var(--color-navy-dark);
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .hero,
  .hero__overlay {
    min-height: 680px;
  }

  .hero__overlay {
    padding: 82px 22px 42px;
    background:
      linear-gradient(90deg, rgba(7, 17, 31, 0.9) 0%, rgba(7, 17, 31, 0.74) 66%, rgba(7, 17, 31, 0.42) 100%);
  }

  .section {
    padding: 58px 22px;
  }

  .section__header--with-link {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 14px;
  }

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

  .stat {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .method__image,
  .contact__image {
    height: 360px;
    min-height: 0;
  }

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

@media (max-width: 620px) {
  .courses,
  .benefits,
  .footer__inner,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    width: 100%;
  }

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

  .course-card__content {
    min-height: auto;
  }
}
.form-message { padding: 12px 14px; border-radius: 6px; background: var(--color-cyan-soft); color: var(--color-navy); font-weight: 700; }
.hp { position:absolute !important; left:-9999px !important; }
.course-detail-hero{min-height:520px;display:grid;grid-template-columns:1.1fr 1fr;background:#102f4e;color:#fff}.course-detail-hero img{width:100%;height:100%;min-height:520px;object-fit:cover}.course-detail-hero>div{padding:clamp(48px,8vw,110px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.course-detail-hero h1{font-size:clamp(2.3rem,5vw,4.7rem);line-height:1.02;margin:.25em 0}.course-detail-hero p{font-size:1.1rem;line-height:1.7;max-width:650px}.course-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#ccd6df;margin-bottom:56px}.course-facts div{background:#fff;padding:26px}.course-facts strong,.course-facts span{display:block}.course-facts strong{color:#0d5a79;margin-bottom:8px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.detail-grid article{background:#fff;padding:32px;border-radius:4px}.detail-grid h2{margin-top:0;color:#123c5b}.detail-grid li,.detail-grid p{line-height:1.8}@media(max-width:800px){.course-detail-hero{grid-template-columns:1fr}.course-detail-hero img{min-height:300px}.course-facts,.detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.course-facts,.detail-grid{grid-template-columns:1fr}}
