:root {
  --rosa-polvo: #d9a5b3;
  --lavanda: #d2c0f4;
  --beige: #f2e1d9;
  --azul: #8fa6c9;
  --gris-suave: #f5f6fb;
  --gris-texto: #2f2f3a;
  --blanco: #ffffff;
  --sombra-suave: 0 24px 48px rgba(50, 60, 90, 0.12);
  --transicion: 0.3s ease-in-out;
  --max-width: 1180px;
  --radius-grande: 32px;
  --radius-medio: 20px;
  --radius-peque: 12px;
  --fuente-principal: "Poppins", "Montserrat", "Segoe UI", sans-serif;
  --fuente-secundaria: "Lora", "Georgia", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fuente-principal);
  background: radial-gradient(circle at 20% 20%, rgba(210, 192, 244, 0.25), transparent 60%),
              radial-gradient(circle at 80% 0%, rgba(217, 165, 179, 0.25), transparent 50%),
              linear-gradient(135deg, #faf5f6, #f8f6fb);
  color: var(--gris-texto);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-medio);
}

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

h1, h2, h3, h4 {
  font-family: var(--fuente-secundaria);
  color: var(--gris-texto);
  margin: 0 0 16px;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(16px);
  background: rgba(248, 246, 251, 0.86);
  border-bottom: 1px solid rgba(143, 166, 201, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--gris-texto);
}

.brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lavanda), var(--rosa-polvo));
  color: var(--blanco);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: var(--sombra-suave);
}

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

nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transicion), color var(--transicion), box-shadow var(--transicion);
}

nav a:hover,
nav a:focus {
  background: rgba(217, 165, 179, 0.14);
  color: #67344a;
  box-shadow: 0 10px 20px rgba(217, 165, 179, 0.2);
}

nav a.activo {
  background: linear-gradient(135deg, rgba(210, 192, 244, 0.25), rgba(217, 165, 179, 0.26));
  border: 1px solid rgba(143, 166, 201, 0.4);
  color: #45355c;
  box-shadow: inset 0 0 0 1px rgba(143, 166, 201, 0.18);
}

.nav-toggle {
  display: none;
  background: linear-gradient(135deg, var(--lavanda), var(--rosa-polvo));
  color: var(--blanco);
  border: none;
  border-radius: var(--radius-peque);
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicion);
}

.nav-toggle:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(47, 47, 58, 0.85);
  margin-bottom: 32px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.boton-primario,
.boton-secundario {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transicion), box-shadow var(--transicion), background var(--transicion), color var(--transicion);
}

.boton-primario {
  background: linear-gradient(135deg, var(--lavanda), var(--rosa-polvo));
  color: var(--blanco);
  box-shadow: var(--sombra-suave);
}

.boton-primario:hover {
  transform: translateY(-4px);
}

.boton-secundario {
  background: rgba(143, 166, 201, 0.12);
  color: #42556e;
  border: 1px solid rgba(143, 166, 201, 0.4);
}

.boton-secundario:hover {
  background: rgba(143, 166, 201, 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 165, 179, 0.14);
  color: #67344a;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(47, 47, 58, 0.7);
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--blanco);
  border-radius: var(--radius-grande);
  padding: 32px;
  box-shadow: var(--sombra-suave);
  border: 1px solid rgba(143, 166, 201, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px rgba(70, 80, 110, 0.18);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(210, 192, 244, 0.12), rgba(217, 165, 179, 0.05));
  opacity: 0;
  transition: opacity var(--transicion);
  z-index: 0;
}

.card:hover::after {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  background: rgba(143, 166, 201, 0.18);
  color: #42556e;
}

.card h3 {
  margin-bottom: 12px;
}

.lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: rgba(47, 47, 58, 0.75);
}

.lista li::before {
  content: "•";
  color: var(--lavanda);
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(3px);
}

.cta-section {
  background: linear-gradient(135deg, rgba(210, 192, 244, 0.7), rgba(217, 165, 179, 0.7));
  border-radius: var(--radius-grande);
  padding: clamp(48px, 8vw, 64px);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(0);
}

.cta-section::before {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -60px;
}

.cta-section::after {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: -40px;
}

.cta-section h2 {
  color: var(--blanco);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin-bottom: 32px;
}

.cta-section .boton-primario {
  background: var(--blanco);
  color: #4c3461;
  box-shadow: 0 20px 40px rgba(58, 26, 91, 0.25);
}

.testimonial {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-grande);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(143, 166, 201, 0.22);
  box-shadow: var(--sombra-suave);
}

.testimonial img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
}

.quote {
  font-style: italic;
  color: rgba(47, 47, 58, 0.8);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tab {
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(143, 166, 201, 0.12);
  color: #42556e;
  font-weight: 500;
  transition: background var(--transicion), color var(--transicion), transform var(--transicion);
}

.tab:hover,
.tab.activo {
  background: linear-gradient(135deg, rgba(210, 192, 244, 0.4), rgba(217, 165, 179, 0.4));
  color: #3a2a4e;
  transform: translateY(-2px);
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-medio);
  overflow: hidden;
  background: var(--blanco);
  box-shadow: var(--sombra-suave);
}

.table thead {
  background: rgba(143, 166, 201, 0.14);
}

.table th,
.table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(143, 166, 201, 0.12);
}

.table tr:last-child td {
  border-bottom: none;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(143, 166, 201, 0.16);
  color: #42556e;
  font-size: 0.86rem;
  font-weight: 500;
}

.formulario {
  background: var(--blanco);
  padding: 40px;
  border-radius: var(--radius-grande);
  box-shadow: var(--sombra-suave);
  border: 1px solid rgba(143, 166, 201, 0.15);
  display: grid;
  gap: 20px;
}

.form-grupo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-weight: 600;
  color: rgba(47, 47, 58, 0.9);
}

input,
textarea,
select {
  font: inherit;
  padding: 16px 18px;
  border-radius: var(--radius-peque);
  border: 1px solid rgba(143, 166, 201, 0.38);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color var(--transicion), box-shadow var(--transicion), transform var(--transicion);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(210, 192, 244, 0.8);
  box-shadow: 0 0 0 4px rgba(210, 192, 244, 0.25);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-info {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--blanco);
  border-radius: var(--radius-medio);
  padding: 24px 28px;
  border: 1px solid rgba(143, 166, 201, 0.16);
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 48px rgba(70, 80, 110, 0.16);
}

.faq-item h3 {
  margin-bottom: 12px;
}

.blog-card {
  display: grid;
  gap: 20px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(47, 47, 58, 0.6);
}

.badge-categoria {
  background: rgba(217, 165, 179, 0.16);
  color: #67344a;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
}

.table-content {
  margin: 20px 0;
  padding: 18px 24px;
  background: rgba(143, 166, 201, 0.12);
  border-radius: var(--radius-medio);
  border: 1px solid rgba(143, 166, 201, 0.18);
}

.curso-card {
  display: grid;
  gap: 16px;
}

.curso-card img {
  border-radius: var(--radius-medio);
  height: 220px;
  object-fit: cover;
}

.timeline {
  position: relative;
  padding-left: 36px;
  border-left: 2px solid rgba(143, 166, 201, 0.3);
  display: grid;
  gap: 20px;
}

.timeline-item {
  position: relative;
  padding-left: 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavanda), var(--rosa-polvo));
  border: 2px solid var(--blanco);
  left: -43px;
  top: 4px;
  box-shadow: 0 0 0 6px rgba(210, 192, 244, 0.18);
}

.etiqueta-dia {
  font-weight: 600;
  color: #45355c;
  margin-bottom: 8px;
  display: block;
}

.footer {
  background: rgba(245, 246, 251, 0.92);
  border-top: 1px solid rgba(143, 166, 201, 0.18);
  padding: 60px 0 32px;
  margin-top: 96px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-brand p {
  color: rgba(47, 47, 58, 0.7);
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: rgba(47, 47, 58, 0.7);
  transition: color var(--transicion), transform var(--transicion);
}

.footer-links a:hover {
  color: #45355c;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(47, 47, 58, 0.6);
  font-size: 0.9rem;
}

.social {
  display: flex;
  gap: 14px;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(217, 165, 179, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #67344a;
  transition: transform var(--transicion), box-shadow var(--transicion);
}

.social a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(217, 165, 179, 0.35);
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 480px);
  background: var(--blanco);
  border-radius: var(--radius-grande);
  box-shadow: 0 32px 60px rgba(50, 60, 90, 0.24);
  padding: 24px 28px;
  border: 1px solid rgba(143, 166, 201, 0.2);
  display: grid;
  gap: 16px;
  z-index: 9999;
}

.cookie-banner p {
  margin: 0;
  color: rgba(47, 47, 58, 0.75);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions button {
  flex: 1;
  min-width: 120px;
}

.cookie-oculta {
  display: none;
}

.highlight {
  background: linear-gradient(120deg, rgba(217, 165, 179, 0.28), rgba(143, 166, 201, 0.28));
  border-radius: var(--radius-medio);
  padding: 28px;
  border: 1px solid rgba(143, 166, 201, 0.15);
  box-shadow: var(--sombra-suave);
}

blockquote {
  margin: 0;
  padding: 24px 32px;
  background: rgba(210, 192, 244, 0.18);
  border-left: 4px solid var(--lavanda);
  border-radius: 16px;
  font-style: italic;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 0 60px;
  }

  .hero-visual {
    order: -1;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 5%;
    background: rgba(248, 246, 251, 0.94);
    padding: 24px;
    border-radius: var(--radius-grande);
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(143, 166, 201, 0.18);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transform-origin: top right;
    transform: scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transicion), transform var(--transicion);
  }

  nav.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav a {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 72px 0;
  }

  .card {
    padding: 28px;
  }

  .cta-section {
    padding: 48px 28px;
  }

  .footer-top {
    gap: 24px;
  }

  .cookie-banner {
    padding: 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}