/* =====================================================================
   ACROMING ECUADOR | Perfil docente - Ing. Daniela Cabascango
   Hoja de estilos principal
   ---------------------------------------------------------------------
   INDICE
     01. Variables, reset y base
     02. Tipografia y utilidades
     03. Botones
     04. Cabecera y navegacion
     05. Hero
     06. Estructura de seccion
     07. Datos y contadores
     08. Habilidades
     09. Experiencia
     10. Curso
     11. Temario
     12. Areas de especialidad
     13. Contacto y formulario
     14. Pie de pagina
     15. Boton flotante WhatsApp
     16. Animaciones
     17. Responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   01. Variables, reset y base
   --------------------------------------------------------------------- */

:root {
  /* Paleta: fucsia de marca + acento celeste */
  --primary: #e0218a;
  --primary-dark: #b31a6e;
  --sky: #6fdcf2;
  --sky-dark: #159fbd;
  --navy: #22303f;
  --navy-2: #2c3e50;
  --panel: #314355;
  --ink: #f2f2f2;
  --muted: #a9b8c6;
  --line: rgba(242, 242, 242, .12);
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--navy);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
}

.skip-link:focus {
  top: 10px;
}

/* ---------------------------------------------------------------------
   02. Tipografia y utilidades
   --------------------------------------------------------------------- */

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #fff;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 16px;
}

h3 {
  font-size: 19px;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 8px;
}

em {
  font-style: normal;
  color: var(--primary);
}

.overline {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky);
}

.lead {
  font-size: 17px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--primary);
  border-radius: 99px;
  background: rgba(224, 33, 138, .12);
  color: var(--primary);
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.badge svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s, transform .65s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------
   03. Botones
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: .25s;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: currentColor;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(224, 33, 138, .28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-sky {
  background: var(--sky);
  color: #04222a;
  box-shadow: 0 10px 26px rgba(111, 220, 242, .25);
}

.btn-sky:hover {
  background: #9ae9f8;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(145deg, #2ee06f, #17a54f);
  color: #fff;
  box-shadow: 0 10px 28px rgba(18, 140, 80, .32);
}

.btn-whatsapp:hover {
  background: linear-gradient(145deg, #35ea78, #14b957);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18, 140, 80, .45);
}

.btn-ghost {
  border: 1px solid rgba(242, 242, 242, .3);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--sky);
  color: var(--sky);
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------------
   04. Cabecera y navegacion
   --------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  background: rgba(34, 48, 63, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(111, 220, 242, .35);
  box-shadow: 0 3px 14px rgba(21, 159, 189, .18);
  transition: .3s;
}

.site-header.scrolled {
  background: rgba(34, 48, 63, .98);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  display: block;
  height: 42px;
  width: auto;
  transition: .3s;
}

.brand:hover img {
  filter: drop-shadow(0 0 8px rgba(224, 33, 138, .55));
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  position: relative;
  padding: 8px 14px;
  color: #cbd7df;
  font-size: 13px;
  font-weight: 600;
  transition: color .25s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  transform: scaleX(1);
}

nav .btn {
  margin-left: 10px;
  padding: 10px 18px;
  font-size: 13px;
}

nav .btn::after {
  display: none;
}

.menu-toggle {
  display: none;
  padding: 7px 12px;
  background: none;
  border: 1px solid rgba(111, 220, 242, .55);
  border-radius: 7px;
  color: var(--sky);
  cursor: pointer;
  transition: .3s;
}

.menu-toggle:hover {
  background: var(--sky);
  color: #04222a;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

/* ---------------------------------------------------------------------
   05. Hero
   --------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    radial-gradient(120% 100% at 15% 0, rgba(224, 33, 138, .16), transparent 55%),
    radial-gradient(90% 90% at 90% 20%, rgba(111, 220, 242, .12), transparent 60%),
    var(--navy);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
}

.hero-photo {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(224, 33, 138, .5);
  border-radius: 18px;
  pointer-events: none;
}

.hero-photo-tag {
  position: absolute;
  left: -14px;
  bottom: 22px;
  padding: 11px 17px;
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

.hero-photo-tag span {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-photo-tag strong {
  font-size: 14px;
  color: #fff;
}

.typed-line {
  min-height: 26px;
  margin: 0 0 22px;
  font-size: 17px;
  font-weight: 600;
  color: var(--sky);
}

.typed-cursor {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------------------------------------------------------------------
   06. Estructura de seccion
   --------------------------------------------------------------------- */

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: rgba(0, 0, 0, .14);
}

.section-head {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-head p {
  margin: 0;
}

/* ---------------------------------------------------------------------
   07. Datos y contadores
   --------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 60px;
  align-items: start;
}

.data-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.data-list div {
  display: flex;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.data-list dt {
  flex: none;
  width: 120px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.data-list dd {
  margin: 0;
  font-size: 14px;
}

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.counter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: var(--panel);
  border-radius: 12px;
  transition: .3s;
}

.counter:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.counter strong {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--primary);
}

.counter span {
  display: block;
  font-size: 13px;
}

.counter b {
  display: block;
  color: #fff;
  font-size: 15px;
}

/* ---------------------------------------------------------------------
   08. Habilidades
   --------------------------------------------------------------------- */

.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
}

.skill p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
  font-size: 14px;
  color: #fff;
}

.skill p span {
  color: var(--sky);
  font-weight: 700;
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(242, 242, 242, .1);
  overflow: hidden;
}

.bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  transition: width 1.6s cubic-bezier(.2, .8, .3, 1);
}

/* ---------------------------------------------------------------------
   09. Experiencia
   --------------------------------------------------------------------- */

.timeline {
  padding-left: 34px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 7px;
  left: -42px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--navy);
}

.timeline-item p {
  margin: 0;
  font-size: 14.5px;
}

/* ---------------------------------------------------------------------
   10. Curso
   --------------------------------------------------------------------- */

.course-hero {
  position: relative;
  padding: 38px 40px;
  border-left: 3px solid var(--primary);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(224, 33, 138, .2), rgba(49, 67, 85, .92));
  box-shadow: var(--shadow);
}

.course-hero h2 {
  margin: 14px 0 12px;
}

.course-hero p {
  max-width: 720px;
  margin: 0;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.fact {
  padding: 24px 20px;
  text-align: center;
  background: var(--panel);
  border-radius: 12px;
  transition: .3s;
}

.fact:hover {
  background: var(--primary);
}

.fact:hover svg, .fact:hover b {
  color: #fff;
}

.fact svg {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: .3s;
}

.fact b {
  display: block;
  color: #fff;
  font-size: 15px;
  transition: .3s;
}

.fact span {
  font-size: 13px;
}

/* ---------------------------------------------------------------------
   11. Temario
   --------------------------------------------------------------------- */

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.module {
  position: relative;
  padding: 26px;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  transition: .3s;
}

.module::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.module:hover {
  transform: translateY(-5px);
  border-color: rgba(111, 220, 242, .35);
  box-shadow: var(--shadow);
}

.module:hover::before {
  transform: scaleX(1);
}

.module-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: rgba(224, 33, 138, .18);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.module p {
  margin: 0;
  font-size: 14px;
}

.why {
  margin-top: 26px;
  padding: 40px;
  text-align: center;
  background: var(--panel);
  border-radius: 14px;
}

.why p {
  max-width: 820px;
  margin: 0 auto 16px;
  font-size: 15px;
}

.why .btn {
  margin-top: 14px;
}

.why b {
  color: var(--sky);
}

/* ---------------------------------------------------------------------
   12. Areas de especialidad
   --------------------------------------------------------------------- */

.areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.area {
  display: flex;
  gap: 20px;
  padding: 26px;
  background: var(--panel);
  border-radius: 14px;
  transition: .3s;
}

.area:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.area-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(224, 33, 138, .15);
  color: var(--primary);
  line-height: 0;
  transition: .3s;
}

.area:hover .area-icon {
  background: var(--primary);
  color: #fff;
}

.area-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area p {
  margin: 0;
  font-size: 14px;
}

/* ---------------------------------------------------------------------
   13. Contacto y formulario
   --------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-list {
  margin-top: 26px;
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.contact-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--sky);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead-form {
  padding: 32px;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.lead-form h3 {
  margin-bottom: 4px;
}

.lead-form > p {
  font-size: 13.5px;
  margin-bottom: 18px;
}

.lead-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.lead-form input,
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  transition: .25s;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(111, 220, 242, .16);
}

.lead-form textarea {
  resize: vertical;
  min-height: 96px;
}

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

.form-error {
  min-height: 18px;
  margin: 0 0 10px;
  color: #ff8a80;
  font-size: 12.5px;
}

.lead-form small {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
}

.lead-form .invalid {
  border-color: #ff8a80;
}

/* ---------------------------------------------------------------------
   14. Pie de pagina
   --------------------------------------------------------------------- */

.site-footer {
  padding: 60px 0 20px;
  background: #1a2530;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 46px;
  align-items: start;
}

.footer-grid h4 {
  margin: 6px 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

.footer-about p {
  max-width: 320px;
  margin: 16px 0 20px;
  font-size: 13px;
}

.footer-about img {
  display: block;
  height: 46px;
  width: auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col a {
  margin-bottom: 10px;
  font-size: 13px;
  transition: .25s;
}

.footer-col a:hover {
  color: var(--sky);
  transform: translateX(3px);
}

.social {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  transition: .28s;
}

.social a:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: #04222a;
  transform: translateY(-3px);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: #7d8fa0;
}

.copyright a {
  color: var(--sky);
}

/* ---------------------------------------------------------------------
   15. Boton flotante WhatsApp
   --------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 24px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(145deg, #2ee06f, #17a54f);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(18, 140, 80, .4), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .28s cubic-bezier(.34, 1.4, .64, 1), box-shadow .28s;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 99px;
  background: rgba(37, 211, 102, .6);
  animation: waPulse 2.6s ease-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 38px rgba(18, 140, 80, .52), 0 3px 8px rgba(0, 0, 0, .2);
}

.wa-icon {
  width: 26px;
  height: 26px;
  flex: none;
  fill: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 96px;
  z-index: 89;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sky);
  color: #04222a;
  box-shadow: 0 8px 22px rgba(111, 220, 242, .35);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #9ae9f8;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(111, 220, 242, .5);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------------
   16. Animaciones
   --------------------------------------------------------------------- */

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: .5;
  }

  70%, 100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------------
   17. Responsive
   --------------------------------------------------------------------- */

@media (max-width: 1080px) {
  /* El menu pasa a hamburguesa antes de que los enlaces se aprieten */
  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 76px;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 14px 26px 24px;
    background: rgba(34, 48, 63, .99);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  nav a::after {
    display: none;
  }

  nav .btn {
    margin: 18px 0 0;
    width: 100%;
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 130px 0 78px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-photo::before {
    inset: 14px -14px -14px 14px;
  }

  .section {
    padding: 76px 0;
  }

  .modules,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-hero {
    padding: 32px 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-about p {
    max-width: none;
  }
}

@media (max-width: 768px) {
  /* Dos columnas dejan de caber comodas */
  .skills {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .counters {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
  }

  .counter {
    padding: 18px 22px;
  }

  .why {
    padding: 32px 26px;
  }

  .why p {
    font-size: 14.5px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 84px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .hero {
    padding: 116px 0 60px;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-photo {
    max-width: 250px;
  }

  /* El nombre ya encabeza el bloque de texto: la etiqueta sobre la foto sobra */
  .hero-photo-tag {
    display: none;
  }

  .badge {
    margin-bottom: 20px;
    padding: 8px 15px;
    font-size: 10.5px;
    letter-spacing: .08em;
    line-height: 1.5;
  }

  .hero h1 {
    margin-bottom: 10px;
  }

  .typed-line {
    margin-bottom: 18px;
  }

  .modules,
  .facts,
  .form-row {
    grid-template-columns: 1fr;
  }

  .data-list div {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
  }

  .data-list dt {
    width: auto;
  }

  .timeline {
    padding-left: 26px;
  }

  .timeline-item::before {
    left: -34px;
    width: 12px;
    height: 12px;
  }

  .course-hero {
    padding: 26px 20px;
  }

  .course-hero .badge {
    white-space: normal;
    text-align: left;
  }

  .module,
  .area {
    padding: 22px 20px;
  }

  .area {
    gap: 16px;
  }

  .why {
    padding: 28px 20px;
  }

  .lead-form {
    padding: 24px 20px;
  }

  .hero-actions,
  .course-actions {
    gap: 10px;
  }

  .hero-actions .btn,
  .course-actions .btn,
  .why .btn {
    width: 100%;
  }

  .contact-list li {
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.5;
  }

  .contact-list svg {
    margin-top: 3px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .copyright {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    padding: 15px;
    gap: 0;
  }

  .whatsapp-float span {
    display: none;
  }

  .back-to-top {
    right: 19px;
    bottom: 84px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .hero-photo {
    max-width: 100%;
  }

  .counter strong {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .whatsapp-float::before {
    animation: none;
    opacity: 0;
  }

  .btn {
    transition: none;
  }
}
