:root {
  --teal: #4fb3b4;
  --teal-dark: #2d7f80;
  --teal-soft: #e6f5f5;
  --lilac: #9b86c4;
  --lilac-soft: #f2eef9;
  --ink: #2f3a3d;
  --muted: #66767a;
  --line: #dbe7e8;
  --bg: #fbfdfd;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 14px rgb(45 127 128 / 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--teal-dark);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

em {
  color: var(--teal-dark);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

.button {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.button:hover {
  background: var(--teal-dark);
}

.button-outline {
  background: transparent;
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 2px var(--teal);
}

.button-outline:hover {
  color: #fff;
}

/* Header */

.site-header {
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.6rem;
  padding-bottom: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--lilac);
  color: #fff;
  font: 600 1.2rem/1 var(--serif);
  letter-spacing: 0.04em;
}

.brand-name {
  display: block;
  font: 600 1.15rem/1.1 var(--serif);
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.brand-mn {
  display: none;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
}

.site-nav a {
  flex: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
}

.site-nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
}

@media (min-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .site-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .header-top {
    flex: 1;
    padding: 0.8rem 0;
  }

  .site-nav {
    padding: 0;
  }

  .brand-mn {
    display: inline;
  }

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

/* Sections */

.section {
  padding: 2.5rem 0;
}

.lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--muted);
}

/* Home: categories */

.categories {
  display: grid;
  gap: 1rem;
  padding-top: 1.25rem;
}

.category {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 80% center;
}

.category-body {
  padding: 1rem 1.25rem 1.25rem;
}

.category h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.category h2 em {
  display: block;
}

.category ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category li a {
  display: block;
  font-size: 0.82rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  text-decoration: none;
}

@media (min-width: 700px) {
  .categories {
    grid-template-columns: 1fr 1fr;
  }
}

/* Home: feature cards */

.features {
  display: grid;
  gap: 1rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
}

.feature img {
  width: 130px;
  height: 130px;
  margin-bottom: 0.75rem;
}

.feature h3 {
  margin-bottom: 0.1rem;
}

.feature .kicker {
  margin: 0;
  color: var(--teal-dark);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}

.feature .tag {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.feature p {
  flex: 1;
  font-size: 0.95rem;
}

.feature .more {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
}

@media (min-width: 600px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tratamientos */

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.tabs .container {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  scrollbar-width: none;
}

.tabs a {
  flex: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--lilac-soft);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.tabs a:hover {
  background: var(--lilac);
  color: #fff;
}

@media (min-width: 860px) {
  .tabs {
    top: 4.3rem;
  }

  html {
    scroll-padding-top: 8rem;
  }
}

.treatments-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .treatments-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }

  .treatments-layout .consultas {
    position: sticky;
    margin-top: 2rem;
    top: 8rem;
  }
}

.treatment {
  padding: 2rem 0 0;
}

.treatment > img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  aspect-ratio: 607 / 220;
  object-fit: cover;
}

.treatment h2 {
  color: var(--teal-dark);
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.panel h3 {
  color: var(--lilac);
  font-style: italic;
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.items > li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.items > li:last-child {
  border-bottom: 0;
}

.items .name {
  font-weight: 700;
}

.items .note {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
}

.items ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.items ul li::marker {
  color: var(--teal);
}

.items p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.items p strong {
  color: var(--ink);
}

details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.3rem;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

.consultas {
  text-align: center;
  background: var(--lilac-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.consultas img {
  width: 120px;
  margin: 0 auto 0.75rem;
}

.consultas p {
  margin: 0.3rem 0;
}

.consultas .button {
  margin-top: 0.75rem;
}

/* Patricia */

.cv-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .cv-layout {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
}

.credential {
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.credential img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.credential h1 {
  font-size: 1.5rem;
}

.credential h1 small {
  display: block;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--muted);
  margin-top: 0.3rem;
}

.credential h2 {
  font-size: 1.2rem;
  color: var(--lilac);
  margin-top: 1.5rem;
  text-align: left;
}

.credential ul {
  text-align: left;
  padding-left: 1.2rem;
  margin: 0;
  font-size: 0.95rem;
}

.credential li {
  margin-bottom: 0.35rem;
}

.letter {
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
}

.letter .signature {
  display: block;
  text-align: right;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--lilac);
}

.timeline {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.timeline .milestone::before {
  background: var(--lilac);
  box-shadow: 0 0 0 4px var(--lilac-soft);
}

.timeline h3 {
  margin-bottom: 0.2rem;
  color: var(--teal-dark);
}

.timeline p {
  margin: 0 0 0.5rem;
}

.highlight {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid var(--lilac);
  padding-left: 1rem;
  color: var(--muted);
}

.checklist {
  padding-left: 1.2rem;
}

.checklist li::marker {
  color: var(--teal);
}

/* Footer */

.site-footer {
  margin-top: 3rem;
  background: var(--teal-dark);
  color: #e9f6f6;
  padding: 2.5rem 0 1.5rem;
}

.site-footer a {
  color: #fff;
}

.site-footer h2 {
  color: #fff;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.contact-list .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.contact-list address {
  font-style: normal;
}

.site-footer .button {
  background: #fff;
  color: var(--teal-dark);
}

.map {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: var(--radius);
}

.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.2);
  font-size: 0.8rem;
  opacity: 0.8;
  text-align: center;
}

@media (min-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
  }
}
