:root {
  --c1: #feacba;
  --c2: #fc77af;
  --c3: #7648c5;
  --c4: #421773;
  --c5: #1da374;
  --c6: #6fe869;
  --text: #2c2040;
  --bg: #fff7fb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
  color: var(--c4);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.3;
}

p,
li,
label,
input,
select,
textarea {
  font-size: 1rem;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 2px solid #f1d7ea;
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--c4);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--c4);
  color: var(--white);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  font-weight: 600;
  color: var(--c4);
  font-size: 0.95rem;
}

.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  min-width: 220px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(66, 23, 115, 0.15);
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.submenu a:hover {
  background: #f9ebf4;
}

.btn {
  display: inline-block;
  background: var(--c2);
  color: var(--white);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  background: var(--c4);
}

.hero {
  padding: 2rem 0 1rem;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #fdeaf4);
  min-height: 340px;
}

.slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.pexels.com/photos/3662630/pexels-photo-3662630.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.slide {
  display: none;
  position: relative;
  z-index: 1;
  padding: 2rem;
  min-height: 340px;
  border-radius: 20px;
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: min(42%, 320px);
}

.slide.active {
  display: block;
}

.slide h2 {
  margin: 0 0 0.5rem;
  color: var(--c4);
}

.slide p,
.slide .btn {
  max-width: 62%;
}

.slide-prenatal {
  background-image: linear-gradient(135deg, #fff 0%, #fdeaf4 58%, rgba(255, 255, 255, 0.84) 100%),
    url("assets/prenatal.svg");
}

.slide-acompanamiento {
  background-image: linear-gradient(135deg, #fff 0%, #f4edff 58%, rgba(255, 255, 255, 0.84) 100%),
    url("assets/odraoropeza.svg");
}

.slide-lactancia {
  background-image: linear-gradient(135deg, #fff 0%, #eafdf3 58%, rgba(255, 255, 255, 0.84) 100%),
    url("assets/lactancia.svg");
}

.slide-recursos {
  background-image: linear-gradient(135deg, #fff 0%, #e8fff2 58%, rgba(255, 255, 255, 0.84) 100%),
    url("assets/biblioteca.svg");
}

.slide-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7b7d6;
  border: 0;
}

.dot.active {
  background: var(--c3);
}

.section {
  padding: 2.8rem 0;
}

.section h2,
.section h3 {
  color: var(--c4);
  margin-top: 0;
}

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

.card {
  background: var(--white);
  border: 1px solid #edd8eb;
  border-radius: 16px;
  padding: 1rem;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: #faf4fc;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
}

.card h3 {
  margin-top: 0;
}

.card h2 {
  margin-top: 0;
}

.workshops-grid .card {
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.workshops-grid .card img {
  height: 270px;
  background: transparent;
  padding: 0;
  animation: floatUpDown 3.8s ease-in-out infinite;
}

.workshops-grid .card h2,
.workshops-grid .card h3,
.workshops-grid .card p {
  text-align: center;
}

.workshops-grid .card .btn {
  margin: 0 auto;
}

.centered-highlight {
  text-align: center;
  background: linear-gradient(135deg, #fff, #effff7);
  border-radius: 16px;
  padding: 1.5rem;
}

.centered-highlight .about-image {
  width: auto;
  height: 30vh;
  max-width: 100%;
  margin: 0 auto 1rem;
  display: block;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.2rem;
  align-items: center;
}

.resources-grid .about-image {
  width: min(420px, 100%);
}

.resources-copy {
  background: var(--white);
  border: 1px solid #edd8eb;
  border-radius: 16px;
  padding: 1.2rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid #edd8eb;
  border-radius: 14px;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--c4);
  padding: 1rem 2.8rem 1rem 1rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: var(--c3);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1rem 1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-secondary {
  background: var(--c5);
}

.btn-secondary:hover {
  background: #15835b;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #d9bfd7;
  border-radius: 10px;
  font: inherit;
}

.site-footer {
  margin-top: 2rem;
  background: #f3e7f8;
  border-top: 2px solid #dec5e8;
}

.services-cta-inner {
  background: linear-gradient(135deg, #fff, #f7edff);
  border: 1px solid #dfc8ea;
  border-radius: 20px;
  padding: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.services-cta-inner p {
  margin: 0;
}

.services-cta-inner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 180px;
  white-space: nowrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-grid h4 {
  margin-top: 0;
  color: var(--c4);
}

.footer-brand-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-col img {
  width: min(220px, 90%);
  height: auto;
}

.footer-empty-col {
  min-height: 1px;
}

.copyright {
  border-top: 1px solid #d6bddf;
  text-align: center;
  padding: 0.9rem;
  font-size: 0.95rem;
}

blockquote {
  margin: 0;
  padding: 1rem;
  border-left: 4px solid var(--c5);
  background: #f2fff9;
  border-radius: 8px;
}

.testimonials-carousel {
  display: block;
}

.testimonials-viewport {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s ease;
}

.testimonial-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.testimonials-nav {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: var(--c3);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.testimonials-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-hero {
  background: linear-gradient(135deg, #fdeaf4, #eef8ff);
  padding: 2.5rem 0;
}

.page-hero.with-image {
  background-repeat: no-repeat;
  background-position: right 5% center;
  background-size: min(28%, 300px);
}

.hero-prenatal {
  background-image: linear-gradient(135deg, #fdeaf4, #eef8ff), url("assets/prenatal.svg");
}

.hero-lactancia {
  background-image: linear-gradient(135deg, #fdeaf4, #eef8ff), url("assets/lactancia.svg");
}

.hero-acompanamiento {
  background-image: linear-gradient(135deg, #fdeaf4, #eef8ff), url("assets/odraoropeza.svg");
}

.hero-servicios {
  background-image: linear-gradient(135deg, #fdeaf4, #eef8ff), url("assets/logo.webp");
}

.hero-recursos {
  background-image: linear-gradient(135deg, #fdeaf4, #eef8ff), url("assets/biblioteca.svg");
}

.notice {
  background: #ecfff6;
  border: 1px solid #bfe9d4;
  color: #1d6e4f;
  padding: 1rem;
  border-radius: 10px;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

.wa-float:hover {
  transform: translateY(-2px);
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 4%;
    background: var(--white);
    border: 1px solid #edd8eb;
    border-radius: 12px;
    width: min(320px, 92vw);
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list.open {
    display: flex;
  }

  .has-submenu .submenu {
    position: static;
    display: block;
    box-shadow: none;
    padding-left: 0;
    margin-top: 0.4rem;
    border: 0;
  }

  .slide {
    background-position: center bottom;
    background-size: 60%;
    padding-bottom: 8rem;
  }

  .slide p,
  .slide .btn {
    max-width: 100%;
  }

  .page-hero.with-image {
    background-position: right -30px bottom;
    background-size: 170px;
  }

  .header-inner {
    padding: 0.7rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  .card img {
    height: 150px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-slide {
    flex: 0 0 calc((100% - 1rem) / 2);
  }

  .services-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  html,
  body {
    font-size: 15px;
  }

  .container {
    width: min(1120px, 94%);
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .slide {
    padding: 1.2rem;
    padding-bottom: 7.4rem;
    min-height: 320px;
  }

  .footer-grid {
    padding: 1.4rem 0;
  }

  .centered-highlight .about-image {
    height: 24vh;
  }

  .testimonial-slide {
    flex: 0 0 100%;
  }

  .wa-float {
    width: 54px;
    height: 54px;
    right: 12px;
    bottom: 12px;
  }
}
