* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff7fb;
  color: #222;
}

:root {
  --rosado-claro: #fff0f7;
  --rosado-medio: #d8a7c7;
  --rosado-fuerte: #b85c91;
  --morado: #8b3f6f;
  --morado-oscuro: #66003d;
  --azul-texto: #242744;
  --gris-texto: #555;
}

/* HEADER */
header {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #d8a7c7, #9b4f82);
  color: white;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 70px;
  border-bottom-right-radius: 70px;
}

/* MENÚ */
nav {
  width: 100%;
  padding: 25px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(139, 63, 111, 0.60);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 5;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.logo img {
  width: 58px;
  height: 58px;
  max-width: 58px;
  max-height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: 0.3s;
}

nav a:hover {
  color: #ffd6ec;
}

/* PRESENTACIÓN */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 25px 90px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 62px;
  font-weight: 800;
  margin-bottom: 22px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero p {
  max-width: 950px;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
}

.btn {
  margin-top: 38px;
  background: var(--morado-oscuro);
  color: white;
  border: none;
  padding: 14px 44px;
  border-radius: 35px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 18px rgba(102, 0, 61, 0.25);
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  background: #7a004c;
}

.triangulo {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 170px;
  background: #fff7fb;
  clip-path: polygon(0 20%, 50% 100%, 100% 20%, 100% 100%, 0 100%);
}

/* SECCIONES */
section {
  padding: 85px 7%;
}

.titulo {
  color: var(--azul-texto);
  text-align: center;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.subtitulo {
  text-align: center;
  font-size: 21px;
  margin-bottom: 80px;
  color: #333;
}

/* INTERESES */
.intereses {
  min-height: 680px;
  padding-bottom: 120px;
  background: #fff7fb;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  text-align: center;
  align-items: stretch;
}

.card {
  background: white;
  padding: 38px 28px;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(139, 63, 111, 0.15);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 34px rgba(139, 63, 111, 0.22);
}

.card .icono {
  font-size: 48px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #111;
}

.card p {
  font-size: 20px;
  line-height: 1.55;
  color: #333;
}

/* RAMAS */
.ramas {
  min-height: 480px;
  margin-top: 60px;
  background-color: #fff0f7;
  background-image: radial-gradient(#f3a8c4 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 105px 8%;
  border-radius: 45px;
  margin-left: 5%;
  margin-right: 5%;
  text-align: center;
}

.ramas-texto {
  max-width: 900px;
}

.ramas h2 {
  color: #38415e;
  font-size: 43px;
  font-weight: 800;
  margin-bottom: 28px;
}

.ramas p {
  color: #555;
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* CURSOS */
.cursos {
  min-height: auto;
  background: #fff7fb;
  padding-bottom: 120px;
}

.curso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 55px;
  text-align: center;
  margin-top: 75px;
}

.curso {
  background: white;
  border-radius: 28px;
  padding: 35px 25px;
  box-shadow: 0 10px 28px rgba(139, 63, 111, 0.15);
  transition: 0.3s;
}

.curso:hover {
  transform: translateY(-8px);
}

.curso .libro {
  font-size: 45px;
  margin-bottom: 20px;
}

.curso h3 {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
  color: #111;
}

.curso p {
  font-size: 19px;
  line-height: 1.6;
}

.resaltado {
  color: var(--rosado-fuerte);
  font-weight: 800;
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, #b879a2, #8b3f6f);
  color: white;
  padding: 90px 7% 40px;
  min-height: 360px;
  border-top-left-radius: 55px;
  border-top-right-radius: 55px;
}

footer h2 {
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 50px;
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 42px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}

.footer-menu a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
}

.footer-menu a:hover {
  color: #ffd6ec;
}

footer hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

.redes {
  text-align: center;
}

.redes p {
  font-size: 20px;
  margin-bottom: 22px;
  font-weight: 600;
}

.redes-botones {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.redes-botones a {
  display: inline-block;
  background: #fff0f7;
  color: var(--morado-oscuro);
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(102, 0, 61, 0.20);
  transition: 0.3s;
}

.redes-botones a:hover {
  background: var(--morado-oscuro);
  color: white;
  transform: translateY(-3px);
}

/* CELULAR */
@media (max-width: 900px) {
  nav {
    padding: 22px 25px;
    flex-direction: column;
    gap: 22px;
  }

  .logo {
    font-size: 20px;
    white-space: normal;
    text-align: center;
  }

  nav ul {
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .cards,
  .curso-grid {
    grid-template-columns: 1fr;
  }

  .ramas {
    margin-left: 15px;
    margin-right: 15px;
    padding: 70px 25px;
  }

  .footer-menu {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .redes-botones {
    flex-direction: column;
    align-items: center;
  }

  .redes-botones a {
    width: 220px;
  }
}