/* ═══════════════════════════════════════════════════════════
   Podología Mar Navarro · Demo Syncor
   Paleta: crema porcelana + verde salvia profundo + terracota
   ═══════════════════════════════════════════════════════════ */

:root {
  --cream:      #faf6f0;
  --cream-2:    #f3ecdf;
  --ink:        #1e2b26;
  --ink-soft:   #47554f;
  --sage-900:   #1f4038;
  --sage-700:   #2d5c50;
  --sage-500:   #4a7f70;
  --sage-300:   #a9c6bb;
  --sage-200:   #cdded6;
  --sage-100:   #e4eee9;
  --terra:      #c96f4a;
  --terra-soft: #f0d9cd;
  --wa:         #23a55c;
  --wa-dark:    #1c8a4c;
  --radius:     18px;
  --shadow:     0 18px 50px -18px rgba(31, 64, 56, .25);
  --font-d:     "Fraunces", Georgia, serif;
  --font-b:     "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-d); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.18rem; font-weight: 600; }
h1 em { font-style: italic; color: var(--sage-700); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .9rem;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sage-900); color: var(--cream); box-shadow: 0 10px 26px -10px rgba(31,64,56,.55); }
.btn--primary:hover { background: var(--sage-700); }
.btn--ghost { background: transparent; color: var(--sage-900); border: 1.5px solid var(--sage-300); }
.btn--ghost:hover { border-color: var(--sage-700); background: var(--sage-100); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 26px -10px rgba(35,165,92,.55); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--big { font-size: 1.05rem; padding: 1rem 2rem; }

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(31,64,56,.08);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__brand { display: flex; align-items: center; gap: .65rem; }
.nav__logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--sage-900);
  color: var(--cream);
  border-radius: 12px;
}
.nav__logo svg { width: 22px; height: 22px; }
.nav__name { font-family: var(--font-d); font-size: 1.12rem; font-weight: 600; line-height: 1.1; display: flex; flex-direction: column; }
.nav__name em { font-family: var(--font-b); font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-500); }
.nav__links { display: flex; gap: 1.7rem; margin-left: auto; font-size: .92rem; font-weight: 500; }
.nav__links a { color: var(--ink-soft); transition: color .15s; }
.nav__links a:hover { color: var(--sage-900); }
.nav__cta { padding: .6rem 1.2rem; font-size: .88rem; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 9.5rem 1.5rem 5rem;
  overflow: hidden;
}
.hero__deco { position: absolute; inset: 0; pointer-events: none; color: var(--sage-500); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob--1 { width: 480px; height: 480px; background: var(--sage-200); top: -140px; right: -120px; }
.blob--2 { width: 420px; height: 420px; background: var(--terra-soft); bottom: -180px; left: -140px; }
.hero__arc { position: absolute; width: 620px; top: -80px; right: -100px; }
.hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 4rem;
  align-items: center;
}
.hero__sub { font-size: 1.12rem; color: var(--ink-soft); margin: 1.3rem 0 2rem; max-width: 34rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
.hero__badges li { display: flex; align-items: center; gap: .5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); flex: none; }

/* Chat mockup */
.hero__card { display: flex; justify-content: center; }
.chat {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.6deg);
}
.chat__head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.2rem;
  background: var(--sage-900);
  color: var(--cream);
}
.chat__avatar {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-500);
  font-weight: 700; font-size: .85rem;
}
.chat__head strong { display: block; font-size: .92rem; }
.chat__head small { font-size: .74rem; opacity: .75; }
.chat__body { padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--cream-2); }
.msg {
  max-width: 85%;
  padding: .6rem .9rem;
  border-radius: 14px;
  font-size: .86rem;
  line-height: 1.45;
}
.msg--in { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 2px 6px rgba(31,64,56,.07); }
.msg--out { background: #d7f5e2; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat__note {
  padding: .8rem;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sage-700);
  background: #fff;
}

/* ── Secciones base ── */
.section { padding: 5.5rem 1.5rem; }
.section--tinted { background: var(--cream-2); }
.section__inner { max-width: 1180px; margin: 0 auto; }
.section__head { max-width: 40rem; margin-bottom: 3rem; }
.section__sub { color: var(--ink-soft); font-size: 1.05rem; margin-top: 1rem; }

/* ── Servicios ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.scard {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: 0 6px 24px -14px rgba(31,64,56,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.scard__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--sage-100);
  color: var(--sage-700);
  margin-bottom: 1.2rem;
}
.scard__icon svg { width: 26px; height: 26px; }
.scard h3 { margin-bottom: .55rem; }
.scard p { font-size: .93rem; color: var(--ink-soft); }

/* ── Cómo funciona ── */
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.how__step { position: relative; padding-top: .4rem; }
.how__num {
  font-family: var(--font-d);
  font-size: 3.4rem;
  font-weight: 500;
  color: var(--terra);
  opacity: .85;
  line-height: 1;
  display: block;
  margin-bottom: .9rem;
}
.how__step h3 { margin-bottom: .5rem; }
.how__step p { font-size: .95rem; color: var(--ink-soft); }

/* ── Cita ── */
.cita > .section__inner {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 4rem;
  align-items: start;
}
.cita__text { padding-top: 1.4rem; }
.cita__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cita__points { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.cita__points li {
  display: flex; align-items: center; gap: .7rem;
  font-weight: 500; font-size: .97rem;
}
.cita__points li::before {
  content: "";
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  background: var(--sage-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232d5c50" stroke-width="3" stroke-linecap="round"><path d="M5 13l4 4 10-10"/></svg>') center/12px no-repeat;
}
.cita__form {
  background: #fff;
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.cita__form label { display: flex; flex-direction: column; gap: .45rem; font-size: .88rem; font-weight: 600; }
.cita__form input,
.cita__form select,
.cita__form textarea {
  font: inherit;
  font-weight: 400;
  padding: .8rem 1rem;
  border: 1.5px solid var(--sage-200);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  appearance: none;
}
.cita__form textarea { resize: vertical; min-height: 5.5rem; }
.cita__form select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2347554f" stroke-width="2.4" stroke-linecap="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 15px;
}
.cita__form input:focus, .cita__form select:focus, .cita__form textarea:focus { border-color: var(--sage-500); }
.cita__form .btn { justify-content: center; }
.cita__alt { text-align: center; font-size: .87rem; color: var(--ink-soft); }
.cita__alt a { font-weight: 700; color: var(--sage-700); }

/* Calendario de disponibilidad */
.calendar {
  padding: 1.15rem;
  border: 1px solid var(--sage-200);
  border-radius: 16px;
  background: var(--cream);
}
.calendar__top {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.calendar__top h3 { text-align: center; font-size: 1.15rem; }
.calendar__nav {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--sage-200);
  border-radius: 50%;
  background: #fff;
  color: var(--sage-900);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.calendar__nav:hover:not(:disabled) { background: var(--sage-100); }
.calendar__nav:disabled { opacity: .35; cursor: not-allowed; }
.calendar__weekdays,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
}
.calendar__weekdays { margin-bottom: .35rem; }
.calendar__weekdays span {
  text-align: center;
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.calendar__day,
.calendar__blank {
  min-height: 2.55rem;
  display: grid;
  place-items: center;
}
.calendar__day {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}
.calendar__day:hover:not(:disabled) { background: var(--sage-100); border-color: var(--sage-300); }
.calendar__day:disabled { color: #a7b4ae; cursor: not-allowed; }
.calendar__day.is-today { border-color: var(--terra); font-weight: 700; }
.calendar__day.is-selected { background: var(--sage-900); border-color: var(--sage-900); color: #fff; font-weight: 700; }
.slots {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sage-200);
}
.slots__empty,
.slots__label { color: var(--ink-soft); font-size: .86rem; }
.slots__label { font-weight: 700; margin-bottom: .7rem; }
.slots__list { display: flex; flex-wrap: wrap; gap: .55rem; }
.slot {
  padding: .55rem .8rem;
  border: 1px solid var(--sage-300);
  border-radius: 9px;
  background: #fff;
  color: var(--sage-900);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.slot:hover { background: var(--sage-100); }
.slot.is-selected { background: var(--terra); border-color: var(--terra); color: #fff; }
.booking__fields { display: flex; flex-direction: column; gap: 1.1rem; }
.booking__fields small { color: var(--ink-soft); font-weight: 400; }
.booking__status { min-height: 1.35rem; text-align: center; font-size: .88rem; font-weight: 600; }
.booking__status.is-error { color: #a54831; }
.booking__status.is-success { padding: .8rem 1rem; border-radius: 12px; background: var(--sage-100); color: var(--sage-900); }

/* ── Nosotros ── */
.about__inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.about__frame {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: visible;
}
.about__illus {
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: var(--sage-100);
}
.about__badge {
  position: absolute;
  right: -18px; bottom: 24px;
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.3;
  text-align: center;
  padding: .9rem 1.1rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px -12px rgba(201,111,74,.6);
  transform: rotate(3deg);
}
.about__text p { color: var(--ink-soft); margin-top: 1.1rem; max-width: 34rem; }
.about__text h2 { margin-top: 0; }
.about__loc {
  display: flex; align-items: center; gap: .6rem;
  margin-top: 1.8rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--sage-900);
}
.about__loc svg { flex: none; color: var(--terra); }

/* ── Contacto ── */
.contact__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact__list { display: flex; flex-direction: column; gap: 1.3rem; margin: 2rem 0 2.2rem; }
.contact__list strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-500); margin-bottom: .2rem; }
.contact__list span { font-size: 1rem; }
.contact__list a { font-weight: 600; color: var(--sage-900); border-bottom: 1.5px solid var(--sage-300); }
.contact__map {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  background: var(--sage-100);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ── CTA final ── */
.cta {
  margin: 0 1.5rem 5rem;
}
.cta__inner {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--sage-900);
  color: var(--cream);
  border-radius: 28px;
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169,198,187,.28), transparent 65%);
  top: -180px; right: -120px;
}
.cta__inner h2 { position: relative; }
.cta__inner p { position: relative; margin: 1rem auto 2rem; opacity: .85; max-width: 28rem; }
.cta__inner .btn { position: relative; }

/* ── Footer ── */
.footer { padding: 2.2rem 1.5rem; border-top: 1px solid rgba(31,64,56,.1); }
.footer__inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.footer__demo strong { color: var(--terra); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══ Responsive ═══ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding-top: 7.5rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .how__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cita > .section__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .cita__inner, .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__media { order: -1; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    box-shadow: 0 20px 40px -20px rgba(31,64,56,.3);
    padding: .5rem 0;
  }
  .nav__links.is-open a { padding: .9rem 1.5rem; border-bottom: 1px solid rgba(31,64,56,.06); }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
  .hero__btns .btn { width: 100%; justify-content: center; }
  .cita__form { padding: 1.6rem; }
  .calendar { padding: .85rem; }
  .calendar__day, .calendar__blank { min-height: 2.35rem; }
  .calendar__weekdays span { font-size: .6rem; }
  .footer__inner { flex-direction: column; }
  .about__badge { right: 4px; }
}
