/* ============================== TOKENS ============================== */
:root {
  --purple-900: #3a2466;
  --purple-700: #5b3a96;
  --purple-500: #7c5dc4;
  --purple-300: #a78bfa;
  --purple-100: #e8def6;
  --purple-50:  #f4eefc;

  --green-500: #5fc8a8;
  --green-300: #8fdcbf;
  --green-100: #d4f1e2;

  --pink-500:  #ff6b8a;
  --pink-300:  #ffb0c2;
  --pink-100:  #ffe1e8;

  --yellow-500:#f4b740;
  --yellow-300:#fad880;
  --yellow-100:#fff3d6;

  --blue-500:  #7bb8e0;
  --blue-100:  #d6ecf8;

  --orange-100:#ffe3c6;

  --rose-100:  #ffe0e9;
  --rose-300:  #f7a8c0;
  --rose-500:  #c25278;

  --ink:       #2a1e4f;
  --ink-soft:  #6b5f8a;

  --bg:        #fbf7f3;
  --bg-card:   #ffffff;

  --shadow-sm: 0 4px 14px rgba(58, 36, 102, 0.08);
  --shadow-md: 0 10px 30px rgba(58, 36, 102, 0.12);
  --shadow-lg: 0 20px 50px rgba(58, 36, 102, 0.18);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --font-sans: 'Quicksand', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: 'Fraunces', 'Quicksand', serif;
  --font-hand: 'Caveat', cursive;
}

/* ============================== RESET ============================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(167, 139, 250, .08) 0, transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(255, 107, 138, .06) 0, transparent 40%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--purple-900); line-height: 1.15; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans);
  font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple-700);
  color: #fff;
  box-shadow: 0 8px 22px rgba(91, 58, 150, .35);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--purple-900); box-shadow: 0 12px 28px rgba(91, 58, 150, .45); }
.btn-primary:active { transform: translateY(0); }

/* ============================== HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 243, .85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(91, 58, 150, .08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding: .9rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--purple-900); letter-spacing: -.01em;
}
.brand-role {
  font-size: .65rem; letter-spacing: .28em;
  color: var(--purple-500); font-weight: 600; margin-top: 4px;
}

.primary-nav { display: flex; align-items: center; gap: 1.4rem; }
.primary-nav a {
  font-weight: 500; font-size: .93rem; color: var(--ink-soft);
  position: relative; padding: .35rem 0;
  transition: color .15s ease;
}
.primary-nav a:hover { color: var(--purple-700); }
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--purple-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.menu-toggle span {
  width: 26px; height: 2.5px; background: var(--purple-700); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  padding: 1rem 4%;
  background: var(--bg);
  border-top: 1px solid rgba(91, 58, 150, .08);
  flex-direction: column; gap: .9rem;
}
.mobile-nav a { color: var(--ink); font-weight: 500; padding: .4rem 0; }
.mobile-nav.open { display: flex; }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem; align-items: center;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-500);
  letter-spacing: .12em;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--purple-900);
  position: relative;
  display: inline-block;
}
.doodle-heart {
  position: absolute; right: -1rem; top: 1.6rem;
  transform: rotate(-15deg);
}
.hero-lead {
  margin-top: 1.2rem;
  font-size: 1.18rem; color: var(--ink-soft);
  max-width: 30rem; line-height: 1.55;
}
.hero-card {
  margin-top: 1.8rem;
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  max-width: 33rem;
  box-shadow: var(--shadow-md);
}
.hero-card-icon {
  flex: none; width: 44px; height: 44px;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  display: grid; place-items: center;
}
.hero-card p { font-weight: 500; font-size: .98rem; line-height: 1.45; }

.hero-image {
  position: relative;
}
.hero-photo {
  border-radius: 50% 50% 48% 52% / 56% 50% 50% 44%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--purple-100);
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 6px solid #fff;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-quote-card {
  position: absolute;
  right: -1rem; bottom: -1rem;
  width: 200px; height: 180px;
  display: grid; place-items: center;
  padding: 0 2.2rem; text-align: center;
}
.hero-quote-card .heart-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 8px 16px rgba(126, 200, 148, .35));
}
.hero-quote-card p {
  position: relative; z-index: 1;
  font-family: var(--font-hand);
  font-size: 1.15rem; line-height: 1.2;
  color: var(--purple-900);
  font-weight: 600;
}

.hero-divider {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 60px;
}

/* ============================== SECTION TITLE ============================== */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: .04em;
  color: var(--purple-900);
  margin-bottom: 2.4rem;
  font-weight: 700;
}
.section-title.left { text-align: left; }

/* ============================== ÁREAS ============================== */
.areas { padding: 4rem 0 3.5rem; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.area-card {
  border-radius: var(--radius-md);
  padding: 1.6rem 1.1rem 1.4rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: .8rem;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(255, 255, 255, .6);
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-icon {
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: .2rem;
}
.area-card h3 {
  font-size: .8rem;
  letter-spacing: .12em;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--purple-900);
  margin-bottom: .2rem;
}
.area-card p {
  font-size: .8rem; line-height: 1.45;
  color: var(--ink-soft);
}

.area-purple { background: var(--purple-100); }
.area-purple .area-icon { background: var(--purple-500); }
.area-green { background: var(--green-100); }
.area-green .area-icon { background: var(--green-300); }
.area-yellow { background: var(--yellow-100); }
.area-yellow .area-icon { background: var(--yellow-300); }
.area-pink { background: var(--rose-100); }
.area-pink .area-icon { background: var(--rose-300); }
.area-blue { background: var(--blue-100); }
.area-blue .area-icon { background: #b5e0f1; }
.area-orange { background: var(--orange-100); }
.area-orange .area-icon { background: var(--yellow-300); }

/* ============================== PROCESS + LOCATIONS ============================== */
.process-section {
  padding: 3.5rem 0 4rem;
}
.process-grid {
  display: grid;
  grid-template-columns: 1.1fr .6fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.process-left .section-title.left { color: var(--purple-700); margin-bottom: 1.6rem; }

.steps { display: flex; flex-direction: column; gap: 1.1rem; }
.steps li {
  display: flex; align-items: flex-start; gap: 1rem;
}
.step-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .07);
}
.step-purple { background: var(--purple-500); }
.step-green  { background: var(--green-500); }
.step-yellow { background: var(--yellow-500); }
.step-pink   { background: var(--pink-500); }
.step-blue   { background: var(--blue-500); }
.steps h3 {
  font-family: var(--font-sans); font-size: 1rem;
  color: var(--purple-900); font-weight: 700;
  margin-bottom: .2rem;
}
.steps p { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }

.process-middle {
  display: grid; place-items: center;
  padding-top: 2rem;
}
.brain-doodle { width: 100%; max-width: 200px; height: auto; }

.process-right .section-title { color: var(--purple-700); text-align: left; margin-bottom: 1.6rem; }
.location-card {
  display: flex; gap: 1rem;
  background: #f3edfb;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}
.location-photo {
  flex: none; width: 88px; height: 88px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}
.location-clinic {
  background-image: url('assets/Logotransparente.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.location-home {
  background-image: url('https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=400&q=80');
}
.location-body h3 {
  font-family: var(--font-sans); font-size: .92rem;
  letter-spacing: .08em; font-weight: 700;
  color: var(--purple-900); margin-bottom: .35rem;
}
.location-body > p {
  font-size: .88rem; color: var(--ink-soft); line-height: 1.45;
  margin-bottom: .7rem;
}
.location-address {
  display: flex; gap: .4rem; align-items: flex-start;
  font-size: .85rem; color: var(--ink); line-height: 1.4;
}
.location-address strong { color: var(--purple-900); display: block; margin-bottom: .15rem; }

/* ============================== ABOUT ============================== */
.about-section {
  padding: 3rem 0 4rem;
}
.about-grid {
  display: grid;
  grid-template-columns: .7fr 1.2fr 1fr;
  gap: 2.2rem;
  align-items: start;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
  border: 5px solid #fff;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-text .section-title.left { color: var(--purple-700); margin-bottom: 1.2rem; font-size: 1.5rem; }
.about-text p {
  font-size: .98rem; color: var(--ink); line-height: 1.65;
  margin-bottom: .9rem;
}
.about-text strong { color: var(--purple-900); }
.credentials {
  margin-top: 1.4rem;
  display: flex; align-items: flex-start; gap: .85rem;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: .9rem; line-height: 1.45;
}
.credentials strong { color: #fff; }

.about-quote {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem 7rem;
  box-shadow: var(--shadow-sm);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4.5rem; line-height: .5;
  color: var(--purple-500);
  display: inline-block;
}
.quote-mark.close {
  position: absolute; right: 1.4rem; bottom: 6rem;
  transform: translateY(50%);
}
.about-quote p {
  font-family: var(--font-hand);
  font-size: 1.4rem; line-height: 1.25;
  color: var(--purple-900);
  font-weight: 600;
  padding: .4rem 0;
}
.rainbow {
  position: absolute; right: .8rem; bottom: 1rem;
  width: 130px;
}

/* ============================== FOOTER ============================== */
.site-footer {
  background: linear-gradient(135deg, #7c5dc4, #5b3a96 65%, #432673);
  color: #fff;
  padding: 2.5rem 0 1.4rem;
  margin-top: 1rem;
  border-radius: 36px 36px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .8fr;
  gap: 2rem; align-items: center;
}
.footer-cta {
  display: flex; gap: 1rem; align-items: center;
}
.cta-icon {
  flex: none; width: 64px; height: 64px;
  background: rgba(255, 255, 255, .15);
  border-radius: 18px;
  display: grid; place-items: center;
}
.footer-cta h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  color: #fff; font-weight: 700; margin-bottom: .25rem;
  line-height: 1.25;
}
.footer-cta p {
  font-size: .9rem; color: rgba(255, 255, 255, .85);
  line-height: 1.45;
}
.footer-contact h3 {
  color: #fff; font-family: var(--font-display);
  font-size: 1rem; letter-spacing: .12em; margin-bottom: .8rem;
}
.footer-contact ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .92rem; color: #fff;
  transition: opacity .15s ease;
}
.footer-contact a:hover { opacity: .85; }

.footer-promise {
  position: relative;
  background: rgba(255, 255, 255, .1);
  border: 1.5px dashed rgba(255, 255, 255, .35);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.2rem; line-height: 1.2;
  color: #fff;
}
.promise-heart {
  position: absolute; top: -28px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  background: var(--purple-700);
  border-radius: 50%; padding: 6px;
}
.footer-tagline {
  text-align: center;
  margin-top: 2rem;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: #fff;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
}
.heart-tiny { display: inline-flex; }

/* ============================== FLOATING WHATSAPP ============================== */
.float-whatsapp {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  z-index: 100;
  transition: transform .2s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid rgba(37, 211, 102, .4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.4);  opacity: 0; }
}

/* ============================== ANIMATIONS ============================== */
@media (prefers-reduced-motion: no-preference) {
  .area-card, .location-card, .steps li, .about-photo, .about-quote, .hero-card {
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .area-card.in-view, .location-card.in-view, .steps li.in-view,
  .about-photo.in-view, .about-quote.in-view, .hero-card.in-view {
    opacity: 1; transform: none;
  }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .hero-quote-card { right: 0; bottom: -1rem; width: 170px; height: 150px; }
  .hero-quote-card p { font-size: 1rem; }

  .areas-grid { grid-template-columns: repeat(3, 1fr); }

  .process-grid { grid-template-columns: 1fr; }
  .process-middle { padding: 1rem 0; }
  .brain-doodle { max-width: 160px; }

  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-quote { grid-column: span 2; padding-bottom: 7rem; }
  .about-photo { max-width: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }
  .footer-promise { margin-top: 1rem; }
}

@media (max-width: 640px) {
  .container { width: 92%; }
  .hero { padding: 2rem 0 3rem; }
  .hero-title { font-size: 2.8rem; }
  .doodle-heart { right: 0; top: .8rem; }
  .hero-lead { font-size: 1rem; }
  .hero-card { padding: 1rem; }
  .hero-card p { font-size: .9rem; }
  .hero-photo { max-width: 340px; margin: 0 auto; }
  .hero-quote-card { width: 140px; height: 130px; right: -10px; bottom: -10px; padding: 0 1.4rem; }
  .hero-quote-card p { font-size: .9rem; }

  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .area-card { padding: 1.2rem .8rem; }
  .area-icon { width: 64px; height: 64px; }
  .area-icon svg { width: 44px; height: 44px; }
  .area-card h3 { font-size: .72rem; }
  .area-card p { font-size: .76rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-quote { grid-column: span 1; }
  .about-photo { max-width: 240px; margin: 0 auto; }
  .about-quote p { font-size: 1.2rem; }
  .rainbow { width: 100px; }

  .footer-tagline { font-size: 1.15rem; flex-wrap: wrap; }
  .site-footer { border-radius: 28px 28px 0 0; }
  .float-whatsapp { width: 52px; height: 52px; }
}
