:root {
  --bg: #f5f2f9;
  --surface: #fcfaff;
  --surface-strong: #ffffff;
  --text: #2f2439;
  --muted: #5f536a;
  --primary: #8f69bf;
  --primary-dark: #64117b;
  --accent: #aa89df;
  --border: #e7daf7;
  --shadow: 0 18px 45px -30px rgba(61, 29, 88, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #f7f3fb 0%, #f1ebf9 45%, #ece4f5 100%);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(5px);
}

body::before {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(143, 105, 191, 0.25), transparent 68%);
  top: -100px;
  right: -60px;
}

body::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(170, 137, 223, 0.24), transparent 72%);
  left: -70px;
  bottom: 20%;
}

.hero {
  padding: 1.25rem 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

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

.hero-content {
  margin-top: 4.25rem;
  max-width: 760px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  max-width: 16ch;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin-bottom: 1.65rem;
}

.photo-placeholder {
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  padding: 0;
  margin-top: 2.6rem;
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.28rem;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 22px -15px rgba(70, 31, 109, 0.75);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 26px -16px rgba(70, 31, 109, 0.8);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2.8rem;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.2rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.9rem;
}

.section p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.card ul {
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.card li::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  left: 0;
  top: 0.52rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.schedule-title {
  text-align: center;
}

.schedule-subtitle {
  margin: 0 auto 0.8rem;
  max-width: 54ch;
}

.schedule-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.legend-chip {
  width: 28px;
  height: 18px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #efe1ff 0%, #e6d2ff 100%);
}

.schedule-table-wrap {
  overflow-x: auto;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.5rem;
}

.schedule-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0.35rem;
}

.schedule-table thead th {
  background: #f0e5ff;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  padding: 0.75rem 0.4rem;
  border-radius: 10px;
}

.schedule-table tbody th,
.schedule-table tbody td {
  text-align: center;
  padding: 0.66rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.schedule-table tbody th {
  font-weight: 700;
  color: var(--text);
  min-width: 84px;
}

.schedule-table td {
  color: #7a6f86;
  font-weight: 600;
}

.schedule-table td.available {
  background: linear-gradient(135deg, #ead8ff 0%, #e2ccff 100%);
  color: var(--primary-dark);
}

.schedule-note {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.note-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}

.schedule-note p {
  margin: 0;
}

.item {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.38rem;
}

.contact {
  text-align: left;
}

.whatsapp {
  margin-top: 1rem;
  background: linear-gradient(135deg, #2ea162 0%, #23844f 100%);
}

.contact-detail {
  margin-top: 0.9rem;
  font-weight: 600;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 1rem;
}

[data-reveal] {
  animation: fade-up 0.8s both;
}

#perfil[data-reveal] {
  animation-delay: 0.08s;
}

#formacion[data-reveal] {
  animation-delay: 0.16s;
}

#horarios[data-reveal] {
  animation-delay: 0.24s;
}

#contacto[data-reveal] {
  animation-delay: 0.32s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .photo-placeholder {
    min-height: 360px;
    margin-top: 0;
  }

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

@media (max-width: 680px) {
  .hero {
    padding-top: 1rem;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-content {
    margin-top: 2rem;
  }

  .schedule-note {
    flex-direction: column;
    align-items: flex-start;
  }
}
