
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --fondo: #fbf9ff;
  --fondo-suave: #f1edfb;
  --texto: #302b43;
  --texto-suave: #777187;
  --morado: #8972c5;
  --morado-oscuro: #6d58a7;
  --rosa: #f4dce9;
  --azul: #dce9f8;
  --blanco: #fff;
  --borde: #e7e0f1;
  --sombra: 0 16px 45px rgba(65, 48, 100, .08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

section {
  scroll-margin-top: 92px;
}

/* ENCABEZADO */

.encabezado {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 7%;
  background: rgba(251,249,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231,224,241,.8);
}

.logo {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.05rem;
  white-space: nowrap;
}

.logo span {
  color: var(--morado);
}

.navegacion {
  display: flex;
  align-items: center;
  gap: 22px;
}

.navegacion a {
  color: var(--texto-suave);
  font-size: .86rem;
  font-weight: 600;
  transition: color .2s;
}

.navegacion a:hover,
.navegacion a:focus {
  color: var(--morado-oscuro);
}

.navegacion .nav-practicas {
  color: var(--morado-oscuro);
  background: var(--fondo-suave);
  padding: 9px 15px;
  border-radius: 30px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--texto);
  font-size: 1.5rem;
  cursor: pointer;
}

/* PORTADA */

.portada {
  min-height: 660px;
  padding: 90px 10%;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 7%;
  overflow: hidden;
}

.portada-contenido {
  max-width: 620px;
}

.etiqueta,
.mini-etiqueta {
  color: var(--morado-oscuro);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  margin: 20px 0;
  letter-spacing: -1.5px;
}

h1 span {
  color: var(--morado);
}

.portada-contenido > p {
  max-width: 540px;
  color: var(--texto-suave);
  font-size: 1.08rem;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 21px;
  border-radius: 30px;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s, box-shadow .2s;
}

.boton:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra);
}

.boton-principal {
  background: var(--morado);
  color: white;
}

.boton-secundario {
  border: 1px solid var(--borde);
  background: white;
}

/* FOTOGRAFÍA DE PORTADA */

.portada-visual {
  position: relative;
  max-width: 420px;
  justify-self: center;
  width: 100%;
}

.marco-foto {
  height: 440px;
  padding: 13px;
  border-radius: 48% 48% 25px 25px;
  background: linear-gradient(145deg, var(--rosa), var(--azul));
  transform: rotate(2deg);
  box-shadow: var(--sombra);
}

.marco-foto img {
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #e8e2f2;
}

.decoracion {
  position: absolute;
  color: var(--morado);
  font-size: 3rem;
}

.decoracion-uno {
  top: 20px;
  right: -25px;
}

.decoracion-dos {
  bottom: 65px;
  left: -35px;
  color: #d98cb8;
}

.nota-foto {
  position: absolute;
  right: -25px;
  bottom: 20px;
  background: white;
  padding: 12px 18px;
  border-radius: 20px;
  box-shadow: var(--sombra);
  color: var(--texto-suave);
  font-size: .8rem;
}

/* SECCIONES */

.seccion {
  padding: 95px 10%;
}

.fondo-suave {
  background: var(--fondo-suave);
}

.encabezado-seccion {
  max-width: 680px;
  margin: 0 auto 45px;
  text-align: center;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 12px 0;
}

.encabezado-seccion > p {
  color: var(--texto-suave);
}

/* SOBRE MÍ Y COMUNIDAD */

.dos-columnas {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 8%;
  align-items: center;
  max-width: 1050px;
  margin: auto;
}

.foto-seccion {
  height: 370px;
  padding: 10px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--rosa), var(--azul));
  box-shadow: var(--sombra);
}

.foto-seccion img {
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: #e8e2f2;
}

.texto-seccion h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin: 12px 0 18px;
}

.texto-seccion p {
  color: var(--texto-suave);
  margin: 0 0 14px;
}

.enlace-texto {
  display: inline-flex;
  gap: 10px;
  color: var(--morado-oscuro);
  font-weight: 700;
  margin-top: 10px;
}

/* TARJETAS */

.tarjetas {
  display: grid;
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.tarjetas.tres {
  grid-template-columns: repeat(3, 1fr);
}

.tarjetas.dos {
  grid-template-columns: repeat(2, 1fr);
}

.tarjeta {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 8px 25px rgba(65,48,100,.035);
  transition: transform .25s, box-shadow .25s;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra);
}

.icono {
  display: inline-grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 15px;
  background: var(--fondo-suave);
  color: var(--morado-oscuro);
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.tarjeta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.tarjeta p {
  color: var(--texto-suave);
  font-size: .94rem;
}

/* REPRODUCTOR DE MÚSICA */

.tarjeta-musica audio {
  width: 100%;
  margin-top: 18px;
}

.ayuda-audio {
  display: block;
  color: var(--texto-suave);
  margin-top: 8px;
  font-size: .75rem;
}

/* PRÁCTICAS */

.lista-practicas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: auto;
}

.practica {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--borde);
  border-radius: 18px;
  background: white;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.practica:hover {
  transform: translateY(-4px);
  border-color: #c9b9e8;
  box-shadow: var(--sombra);
}

.numero {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--fondo-suave);
  color: var(--morado-oscuro);
  font-weight: 700;
}

.practica small {
  display: block;
  color: var(--texto-suave);
  font-size: .62rem;
  letter-spacing: 1px;
}

.practica strong {
  display: block;
  font-size: 1rem;
}

.practica b {
  margin-left: auto;
  color: var(--morado);
  font-size: 1.25rem;
}

.nota-rutas {
  max-width: 1100px;
  margin: 25px auto 0;
  color: var(--texto-suave);
  font-size: .85rem;
}

/* PIE DE PÁGINA */

.pie {
  padding: 45px 8%;
  text-align: center;
  background: #302b43;
  color: white;
}

.pie p {
  color: #d4cfe0;
  margin: 8px 0;
}

.pie small {
  color: #b8b1c8;
}

.volver {
  display: block;
  color: #e4d9ff;
  margin-top: 15px;
  font-size: .9rem;
}

/* TABLET Y CELULAR */

@media (max-width: 1050px) {
  .encabezado {
    padding-inline: 5%;
  }

  .navegacion {
    gap: 12px;
  }

  .navegacion a {
    font-size: .78rem;
  }

  .portada,
  .seccion {
    padding-inline: 7%;
  }
}

@media (max-width: 780px) {
  .encabezado {
    padding: 15px 6%;
  }

  .menu-toggle {
    display: block;
  }

  .navegacion {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 6% 24px;
    background: var(--fondo);
    border-bottom: 1px solid var(--borde);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .navegacion.mostrar {
    display: flex;
  }

  .navegacion a {
    padding: 10px 4px;
    font-size: .92rem;
  }

  .navegacion .nav-practicas {
    text-align: center;
    margin-top: 5px;
  }

  .portada {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 75px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .portada-contenido {
    margin: auto;
  }

  .portada-contenido > p {
    margin: auto;
  }

  .acciones {
    justify-content: center;
  }

  .portada-visual {
    max-width: 330px;
    margin-top: 20px;
  }

  .marco-foto {
    height: 350px;
  }

  .seccion {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .dos-columnas {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .foto-seccion {
    height: 320px;
  }

  .tarjetas.tres,
  .tarjetas.dos {
    grid-template-columns: 1fr;
  }

  .lista-practicas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.7rem;
  }

  .lista-practicas {
    grid-template-columns: 1fr;
  }

  .tarjeta {
    padding: 23px;
  }

  .nota-foto {
    right: -5px;
  }
}