:root {
  --bg: #fbf7f0;
  --surface: #fffdf8;
  --surface-soft: #f2ebe0;
  --sage: #7f927d;
  --sage-dark: #516653;
  --beige: #dfd1be;
  --warm: #f7efe5;
  --charcoal: #2f3430;
  --text: #454a43;
  --muted: #77766f;
  --line: rgba(84, 93, 80, 0.16);
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(58, 66, 56, 0.12);
  --shadow-soft: 0 14px 36px rgba(58, 66, 56, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 1420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(223, 209, 190, 0.38), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, #fffdf8 42%, #f6efe6 100%);
  line-height: 1.65;
}

body,
button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(var(--max-width), calc(100% - clamp(2rem, 5vw, 6rem)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 210px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: var(--charcoal);
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--muted);
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  font-size: 0.94rem;
}

.menu a {
  color: var(--text);
  transition: color 0.2s ease;
}

.menu a:hover {
  color: var(--sage-dark);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(81, 102, 83, 0.22);
}

.btn-primary:hover {
  background: #465b48;
  box-shadow: 0 18px 34px rgba(81, 102, 83, 0.28);
}

.btn-secondary {
  border-color: rgba(81, 102, 83, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--sage-dark);
}

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

.btn-whatsapp {
  background: #1f8f5f;
  color: var(--white);
  box-shadow: 0 14px 28px rgba(31, 143, 95, 0.2);
}

.btn-whatsapp:hover {
  background: #197a50;
}

.hero {
  padding: clamp(1.7rem, 3.2vw, 2.6rem) 0 clamp(3rem, 5vw, 4.4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.84fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.panel-label,
.service-label {
  margin: 0 0 0.85rem;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 12.8ch;
  font-size: clamp(2.25rem, 4.45vw, 4.45rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
}

.hero-description {
  max-width: 700px;
  margin: 1.2rem 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.35rem 0 0.75rem;
}

.trust-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel,
.service-card,
.credentials-card,
.about-detail-card,
.contact-form,
.mini-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.15rem, 2vw, 1.6rem);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(242, 235, 224, 0.82)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-mark {
  display: grid;
  min-height: clamp(190px, 26vw, 250px);
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(81, 102, 83, 0.12);
}

.hero-mark img {
  width: min(250px, 78%);
  filter: saturate(0.94);
}

.hero-panel-copy {
  padding-top: 1.15rem;
}

.hero-panel h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.hero-list {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-list li::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--sage);
}

.section {
  padding: clamp(2.6rem, 4vw, 3.8rem) 0 clamp(2.2rem, 4vw, 4rem);
}

.hero + .section {
  padding-top: clamp(1.6rem, 2.5vw, 2.5rem);
}

.section-soft {
  background: rgba(242, 235, 224, 0.48);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p:not(.section-kicker),
.about-copy p,
.about-detail-card p,
.service-card p,
.step-card p,
.faq-list p,
.cta-copy p,
.contact-form p,
.credential-list span {
  color: var(--muted);
}

.section-heading p:not(.section-kicker) {
  max-width: 650px;
  margin: 1rem 0 0;
  font-size: 1.06rem;
}

.centered p:not(.section-kicker) {
  margin-left: auto;
  margin-right: auto;
}

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

.mini-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover,
.service-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.mini-card span,
.step-card span {
  color: var(--sage-dark);
  font-weight: 800;
}

.mini-card h3 {
  font-size: 1.35rem;
}

.service-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(232, 223, 210, 0.82));
  border-color: rgba(81, 102, 83, 0.28);
}

.service-card p:not(.service-label) {
  margin: 1rem 0 1.5rem;
}

.text-link {
  margin-top: auto;
  color: var(--sage-dark);
  font-weight: 800;
}

.text-link::after {
  content: " ->";
}

.about-grid,
.cta-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-copy p {
  margin: 1.2rem 0 0;
  font-size: 1.06rem;
}

.credentials-card {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.credentials-logo {
  width: min(260px, 82%);
  margin: 0 auto 1.6rem;
}

.credential-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential-list li {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.credential-list strong,
.credential-list span {
  display: block;
}

.credential-list strong {
  color: var(--charcoal);
}

.about-details {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 1.15rem;
  margin-top: 1.15rem;
}

.about-detail-card {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.detail-label {
  margin: 0 0 1rem;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.academic-card h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.license-line {
  margin: 0.35rem 0 0;
  color: var(--charcoal);
  font-size: 1.08rem;
}

.therapy-line {
  margin: 0.2rem 0 1.4rem;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 700;
}

.formation-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.formation-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--text);
}

.formation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.48rem;
  height: 0.48rem;
  border: 2px solid var(--sage-dark);
  border-radius: 50%;
}

.trajectory-card p:not(.detail-label) {
  margin: 0;
}

.trajectory-card p + p {
  margin-top: 1rem;
}

.step-card {
  padding: 1.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--warm);
}

.step-card p {
  margin: 0.75rem 0 0;
}

.faq-grid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem 1.2rem;
  color: var(--charcoal);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

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

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
}

.final-cta {
  padding: clamp(2.6rem, 4vw, 3.8rem) 0 clamp(2.2rem, 4vw, 4rem);
  background: var(--sage-dark);
  color: var(--white);
}

.final-cta .section-kicker,
.final-cta h2,
.final-cta .cta-copy p {
  color: var(--white);
}

.final-cta .section-kicker {
  opacity: 0.72;
}

.cta-copy p {
  max-width: 540px;
  margin: 1rem 0 0;
  font-size: 1.15rem;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  background: var(--surface);
  color: var(--text);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--charcoal);
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--charcoal);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(127, 146, 125, 0.16);
}

.contact-form .btn {
  width: 100%;
}

.contact-form p {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
}

.floating-whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: #1f8f5f;
  color: #fff;
  font-weight: 850;
  box-shadow: 0 18px 34px rgba(31, 143, 95, 0.28);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease, background 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  background: #197a50;
}

.floating-whatsapp.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1rem);
}

.site-footer {
  padding: 1.3rem 0 2.4rem;
  background: var(--sage-dark);
  color: rgba(255, 255, 255, 0.76);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.2rem;
}

.footer-content p {
  margin: 0;
}

.footer-content div {
  display: flex;
  gap: 1rem;
}

#inicio,
#problemas,
#servicios,
#sobre-andrea,
#como-funciona,
#faq,
#contacto {
  scroll-margin-top: 64px;
}

@media (max-width: 980px) {
  .nav {
    min-height: auto;
    padding: 0.8rem 0;
    flex-wrap: wrap;
  }

  .menu {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .desktop-btn {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .about-details,
  .cta-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  h1 {
    max-width: 13.5ch;
  }

  .problem-grid,
  .service-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section,
  .final-cta {
    padding-top: 8.6rem;
  }

  .hero + .section {
    padding-top: 8.6rem;
  }

  #inicio,
  #problemas,
  #servicios,
  #sobre-andrea,
  #como-funciona,
  #faq,
  #contacto {
    scroll-margin-top: 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1.2rem, var(--max-width));
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.76rem;
  }

  .menu {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .section,
  .final-cta {
    padding-top: 8.9rem;
  }

  .hero + .section {
    padding-top: 8.9rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.1rem, 10.5vw, 3rem);
  }

  .hero-actions,
  .final-cta .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .problem-grid,
  .service-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .mini-card {
    min-height: 122px;
  }

  .service-card {
    min-height: auto;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 4rem;
  }

  .floating-whatsapp {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
