/* ==========================================================
   Academia Inspira · estilos (v4, minimalista)
   Colores del PDF de marca: pizarra #344447 y melocotón #FAC299.
   Tipografía Poppins alojada en la propia web (sin Google Fonts).
   ========================================================== */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fuentes/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fuentes/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fuentes/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fuentes/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fuentes/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  --pizarra: #344447;
  --pizarra-oscuro: #232f31;
  --melocoton: #FAC299;
  --melocoton-claro: #FDE6D1;
  --melocoton-fuerte: #F6A872;
  --crema: #FFF8F1;
  --fondo: #FFF8F1;
  --blanco: #ffffff;
  --texto: #2a373a;
  --texto-suave: #5b6a6f;
  --acento-texto: #7a4116;
  --linea: #efe3d8;
  --radio: 18px;
  --ancho: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem; line-height: 1.75; color: var(--texto); background: var(--fondo);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--pizarra); text-underline-offset: 3px; }
a:hover { color: var(--acento-texto); }
h1, h2, h3 { line-height: 1.2; color: var(--pizarra); margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--pizarra); outline-offset: 3px; border-radius: 6px; }
.llamada :focus-visible, .pie :focus-visible, .aviso :focus-visible { outline-color: var(--melocoton); }

.saltar { position: absolute; left: -999px; top: 8px; background: #fff; padding: .6em 1em; border-radius: 8px; z-index: 100; }
.saltar:focus { left: 8px; }

.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.contenedor--estrecho { max-width: 46rem; }
.contenedor--medio { max-width: 52rem; }
.seccion { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.seccion--sinarriba { padding-top: 0; }
.seccion--suave { background: var(--melocoton-claro); }
.seccion__intro { max-width: 44rem; margin-bottom: 2.6rem; }
.sobretitulo {
  display: inline-block; font-size: .74rem; font-weight: 400; letter-spacing: .3em;
  text-transform: uppercase; color: var(--acento-texto); margin-bottom: .9rem;
}
.texto-suave { color: var(--texto-suave); }
.nota { margin-top: 1.6rem; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: .95rem; font-family: inherit;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton--primario { background: var(--pizarra); color: var(--crema); }
.boton--primario:hover { background: var(--pizarra-oscuro); color: #fff; }
.boton--borde { border-color: var(--pizarra); color: var(--pizarra); background: transparent; }
.boton--borde:hover { background: var(--pizarra); color: var(--crema); }
.boton--melocoton { background: var(--melocoton); color: var(--pizarra); }
.boton--melocoton:hover { background: var(--melocoton-fuerte); color: var(--pizarra); }
.boton--borde-claro { border-color: var(--melocoton); color: var(--melocoton); background: transparent; }
.boton--borde-claro:hover { background: var(--melocoton); color: var(--pizarra); }
.botones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.botones--centro { justify-content: center; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 241, .94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea);
}
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.logo { display: block; line-height: 0; }
.logo img { height: 42px; width: auto; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a { text-decoration: none; font-weight: 600; color: var(--pizarra); font-size: .9rem; }
.menu a:hover { color: var(--acento-texto); }
.menu a[aria-current="page"] { border-bottom: 2px solid var(--melocoton-fuerte); padding-bottom: 2px; }
.menu-boton {
  display: none; background: none; border: 1.5px solid var(--pizarra); color: var(--pizarra);
  font-weight: 600; font-family: inherit; padding: .4em .95em; border-radius: 10px; font-size: .9rem; cursor: pointer;
}
.cabecera__cta { padding: .6em 1.15em; font-size: .84rem; }

/* ---------- Portada ---------- */
.hero {
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.4rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, var(--melocoton) 0%, var(--melocoton-claro) 62%, var(--fondo) 100%);
}
.hero__rejilla { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero__icono { width: 84px; height: auto; margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: .25em; }
.hero__lema { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 600; color: var(--pizarra); line-height: 1.4; max-width: 24rem; margin-bottom: 0; }


.oferta {
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 24px;
  padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 18px 40px rgba(52, 68, 71, .06);
}
.oferta__titulo { font-size: .74rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--acento-texto); margin-bottom: .6rem; }
.oferta__lista { list-style: none; margin: 0; padding: 0; }
.oferta__lista li + li { border-top: 1px solid var(--linea); }
.oferta__lista a {
  display: flex; align-items: center; gap: 1rem; padding: .85rem .3rem; text-decoration: none; color: var(--pizarra);
  border-radius: 12px; transition: background-color .15s ease;
}
.oferta__lista a:hover { background: var(--melocoton-claro); color: var(--pizarra); }
.oferta__lista .icono { flex: none; width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 50%; background: var(--melocoton-claro); color: var(--pizarra); }
.oferta__lista strong { display: block; font-weight: 600; line-height: 1.3; }
.oferta__lista small { display: block; font-size: .84rem; color: var(--texto-suave); line-height: 1.4; }

.asignaturas { list-style: none; margin: 2.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.asignaturas li {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem .45rem .8rem;
  border: 1px solid var(--linea); border-radius: 999px; background: var(--blanco); color: var(--pizarra); font-size: .9rem; font-weight: 600;
}
.asignaturas .icono { width: 1.35rem; height: 1.35rem; color: var(--acento-texto); }

/* ---------- Aviso intensivo ---------- */
.aviso {
  background: var(--pizarra); color: #e8dccf; border-radius: 24px;
  padding: clamp(1.6rem, 3.4vw, 2.6rem); display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: center; justify-content: space-between;
}
.aviso h2 { color: var(--melocoton); font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin: 0 0 .3rem; }
.aviso p { margin: 0; }

/* ---------- Rejillas y bloques ---------- */
.rejilla { display: grid; gap: 1.4rem; }
.rejilla--aire { gap: clamp(1.6rem, 4vw, 3rem); }
.rejilla--2 { grid-template-columns: repeat(2, 1fr); }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.rejilla--4 { grid-template-columns: repeat(4, 1fr); }
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.7rem; }
.tarjeta h3 { margin-bottom: .45rem; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta__icono { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--melocoton-claro); color: var(--pizarra); display: grid; place-items: center; margin-bottom: 1rem; }
.tarjeta__icono .icono { width: 1.5rem; height: 1.5rem; }
.titulo-tarjeta { font-size: 1.4rem; margin-bottom: .2rem; }
.punto h3 { margin-bottom: .4rem; }
.punto p { color: var(--texto-suave); margin-bottom: 0; }
.numero {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--melocoton); color: var(--pizarra); font-weight: 700; margin-bottom: .9rem;
}
.frase { margin: 0 auto 3rem; max-width: 40rem; text-align: center; }
.frase p { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.35; color: var(--pizarra); margin: 0; }
.frase p::before { content: "“"; display: block; font-size: 3rem; line-height: .8; color: var(--melocoton-fuerte); }

/* ---------- Equipo (la foto va siempre encima del texto) ---------- */
.persona__foto {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radio); background: var(--melocoton-claro);
  display: grid; place-items: center; margin-bottom: 1rem; overflow: hidden;
  font-size: 2.2rem; font-weight: 600; color: var(--pizarra); letter-spacing: .05em;
}
.persona__foto img { width: 100%; height: 100%; object-fit: cover; }
.persona h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.persona__rol { color: var(--acento-texto); font-weight: 600; font-size: .9rem; margin-bottom: .3rem; line-height: 1.4; }
.persona__lema { font-size: .88rem; line-height: 1.5; margin: 0; }
.persona--ficha .persona__foto { aspect-ratio: 4 / 3; }
.persona--ficha .persona__rol { font-size: .95rem; margin-bottom: .9rem; }
.persona__cita { font-style: italic; border-left: 3px solid var(--melocoton); padding-left: .9rem; margin-bottom: 1rem; color: var(--pizarra); }

/* ---------- Cursos ---------- */
.etapa { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.4rem; padding: 2rem 0; border-top: 1px solid var(--linea); scroll-margin-top: 6rem; }
.etapa:first-child { border-top: 0; padding-top: 0; }
.etapa__icono { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--melocoton-claro); color: var(--pizarra); display: grid; place-items: center; }
.etapa__icono .icono { width: 1.7rem; height: 1.7rem; }
.etapa__titulo { font-size: 1.35rem; margin-bottom: .3rem; }
.etapa p { color: var(--texto-suave); max-width: 40rem; }
.chips { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .82rem; font-weight: 600; color: var(--pizarra); background: var(--melocoton-claro); border: 1px solid var(--linea); padding: .2em .85em; border-radius: 999px; }
.enlace-flecha { display: inline-block; margin-top: 1rem; font-weight: 600; }
.enlace-flecha::after { content: " →"; }

/* ---------- FAQ ---------- */
details { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 1rem 1.4rem; margin-bottom: .7rem; }
summary { cursor: pointer; font-weight: 600; color: var(--pizarra); }
details[open] summary { margin-bottom: .6rem; }
details p:last-child { margin-bottom: 0; }

/* ---------- Páginas interiores (y legales) ---------- */
.cabecera-pagina { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.6rem, 3vw, 2.4rem); background: linear-gradient(180deg, var(--melocoton) 0%, var(--melocoton-claro) 70%, var(--fondo) 100%); }
.cabecera-pagina h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 40rem; }
.cabecera-pagina p { font-size: 1.08rem; color: var(--texto-suave); max-width: 40rem; }
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.contacto-lista { list-style: none; padding: 0; margin: 0; }
.contacto-lista li { padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.contacto-lista strong { display: block; color: var(--pizarra); font-weight: 600; }

/* ---------- Llamada final ---------- */
.llamada { background: var(--pizarra); color: #eadccf; text-align: center; padding: clamp(3.4rem, 8vw, 5.5rem) 0; }
.llamada h2 { color: var(--melocoton); }
.llamada p { max-width: 36rem; margin-inline: auto; }

/* ---------- Fotos ---------- */
.foto { margin: 0; }
.foto img { width: 100%; height: auto; border-radius: var(--radio); background: var(--melocoton-claro); }
.foto figcaption { margin-top: .7rem; line-height: 1.45; }
.foto figcaption strong { display: block; color: var(--pizarra); font-size: .95rem; font-weight: 600; }
.foto figcaption span { display: block; font-size: .85rem; color: var(--texto-suave); }
.foto--fachada img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 38%; }
.galeria { display: grid; gap: 1.6rem; }
.galeria--3 { grid-template-columns: repeat(3, 1fr); }
.galeria--mosaico { display: block; column-count: 3; column-gap: 1.6rem; }
.galeria--mosaico .foto { break-inside: avoid; margin: 0 0 1.6rem; }

/* ---------- Pie ---------- */
.pie { background: var(--pizarra-oscuro); color: #ead9c9; padding: 3.4rem 0 6.5rem; font-size: .92rem; }
.pie a { color: var(--melocoton); }
.pie a:hover { color: #fff; }
.pie h2 { color: var(--melocoton); font-size: .74rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; margin-bottom: .9rem; }
.pie__logo { height: 48px; width: auto; margin-bottom: 1rem; }
.pie__rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: .45rem; }
.pie__legal { border-top: 1px solid rgba(250, 194, 153, .25); margin-top: 2.2rem; padding-top: 1.2rem; font-size: .82rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: inline-flex; align-items: center; gap: .55rem;
  background: var(--pizarra); color: var(--melocoton); text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .8em 1.25em; border-radius: 999px; border: 1.5px solid var(--melocoton);
  box-shadow: 0 10px 26px rgba(35, 47, 49, .3);
}
.wa-flotante:hover { background: var(--pizarra-oscuro); color: #fff; }
.wa-flotante svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }

/* ---------- Adaptación a móvil ---------- */
@media (max-width: 960px) {
  .rejilla--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__rejilla, .rejilla--3, .rejilla--2, .pie__rejilla, .galeria--3 { grid-template-columns: 1fr; }
  .galeria--mosaico { column-count: 2; }
}
@media (max-width: 860px) {
  .menu-boton { display: inline-block; }
  .cabecera__cta { display: none; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--fondo);
    flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--linea); gap: 1rem;
  }
  .menu.abierto { display: flex; }
}
@media (max-width: 520px) {
  .logo img { height: 36px; }
  .rejilla--4 { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .persona__foto { font-size: 1.6rem; }
  .botones .boton { width: 100%; }
  .wa-flotante span { display: none; }
  .wa-flotante { padding: .9em; }
  .galeria--mosaico { column-count: 1; }
  .etapa { grid-template-columns: 1fr; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
}

.hero .sobretitulo, .cabecera-pagina .sobretitulo { color: var(--pizarra); }
.cabecera-pagina p { color: #3f5155; }
.llamada__direccion { font-size: .92rem; opacity: .9; margin-top: 1.2rem; }
.llamada__direccion a { color: var(--melocoton); }
.aviso > div { flex: 1 1 22rem; }

.persona__foto img { object-position: 50% 28%; }

/* ---------- Animaciones suaves ---------- */
.revelar { transition: opacity 1.3s cubic-bezier(.2, .6, .2, 1), transform 1.3s cubic-bezier(.2, .6, .2, 1); }
.revelar--d1 { transition-delay: .2s; }
.revelar--d2 { transition-delay: .4s; }
.revelar--d3 { transition-delay: .6s; }
.revelar.oculto { opacity: 0; transform: translateY(36px); }

/* Entrada de la portada y de las cabeceras de página */
@keyframes entrar { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__marca > *, .oferta, .cabecera-pagina .contenedor > * { animation: entrar 1.4s cubic-bezier(.2, .6, .2, 1) both; }
.hero__marca > :nth-child(2), .cabecera-pagina .contenedor > :nth-child(2) { animation-delay: .2s; }
.hero__marca > :nth-child(3), .cabecera-pagina .contenedor > :nth-child(3) { animation-delay: .4s; }
.hero__marca > :nth-child(4), .cabecera-pagina .contenedor > :nth-child(4) { animation-delay: .6s; }
.hero__marca > :nth-child(5), .cabecera-pagina .contenedor > :nth-child(5) { animation-delay: .8s; }
.oferta { animation-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .revelar, .hero__marca > *, .oferta, .cabecera-pagina .contenedor > * { transition: none; animation: none; }
  .revelar.oculto { opacity: 1; transform: none; }
}
