:root {
  --ml-navy: #0a192f;
  --ml-ivory: #fbfbfb;
  --ml-gold: #d4af37;
}

body { background: var(--ml-ivory); }

.brand-strip {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #c5a368;
  background: var(--ml-navy);
  color: #f0d49e;
  text-align: center;
  text-transform: uppercase;
  font: 400 clamp(10px, 1.1vw, 15px)/1.4 Georgia, serif;
  letter-spacing: .25em;
}

.brand-strip span { padding-inline: .3em; }

.site-header {
  --header-gold: #efd59e;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  min-height: 95px;
  gap: 0 clamp(14px, 2.4vw, 38px);
  height: auto;
  padding: 0 clamp(16px, 4vw, 64px);
  border-bottom: 3px double #c5a368;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 160' preserveAspectRatio='none' fill='none' stroke='%23c5a368' stroke-opacity='.22'%3E%3Cpath d='M0 160C185 12 276 132 560 4M132 160C331 129 357 24 492 0'/%3E%3C/svg%3E") right bottom / min(65%, 760px) 100% no-repeat,
    var(--ml-navy);
  color: var(--ml-ivory);
  backdrop-filter: none;
}

.site-header .brand {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: clamp(90px, 11.5vw, 157px);
  padding: 11px 10px 13px;
  border: 2px solid #c5a368;
  border-top: 0;
  border-radius: 0 0 40% 40%;
  background: #fbf8f1;
  mix-blend-mode: normal;
}

.site-header .brand img {
  mix-blend-mode: multiply;
  transform: scale(.88);
}
.site-header nav {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  gap: clamp(14px, 2.8vw, 46px);
  font: 400 clamp(16px, 1.75vw, 25px)/1.2 Georgia, serif;
}

.site-header nav a {
  padding: 8px 0;
  white-space: nowrap;
}

.site-header nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--header-gold);
  opacity: 0;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
body:not(:has(main section[id]:target)) .site-header nav a[href="#inicio"],
body:has(#inicio:target) .site-header nav a[href="#inicio"],
body:has(#tienda:target) .site-header nav a[href="#tienda"],
body:has(#tratamientos:target) .site-header nav a[href="#tratamientos"],
body:has(#maite:target) .site-header nav a[href="#maite"] {
  color: var(--header-gold);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
body:not(:has(main section[id]:target)) .site-header nav a[href="#inicio"]::after,
body:has(#inicio:target) .site-header nav a[href="#inicio"]::after,
body:has(#tienda:target) .site-header nav a[href="#tienda"]::after,
body:has(#tratamientos:target) .site-header nav a[href="#tratamientos"]::after,
body:has(#maite:target) .site-header nav a[href="#maite"]::after {
  opacity: 1;
}

.header-book {
  grid-column: 3;
  grid-row: 1;
  padding: 11px clamp(14px, 2vw, 31px);
  border: 1px solid #e6c98c;
  border-radius: 999px;
  background: linear-gradient(#f0d59d, #c9a363);
  color: var(--ml-navy);
  font: 600 clamp(16px, 1.65vw, 23px)/1.2 Georgia, serif;
  white-space: nowrap;
}

.header-book:hover { background: #f1d69f; }

.site-header a:focus-visible,
.site-header button:focus-visible { outline: 2px solid var(--header-gold); outline-offset: 3px; }

.preview-note {
  padding-block: 5px;
  background: #16384a;
  font-size: 12px;
}

.hero { background: var(--ml-ivory); }
.hero h1 {
  font-size: clamp(38px, 4.3vw, 70px);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.hero h1 em { display: block; font-style: normal; }
.hero-image img { object-position: 43% center; }
.hero-image::after { background: linear-gradient(90deg, var(--ml-ivory), transparent 13%); }
.hero .button { border-radius: 999px; }
.dark,
.hero .dark,
.about-copy .button,
.shop-tools .cart-button,
.product-add,
.cart-float {
  border-color: var(--ml-navy);
  background: var(--ml-navy);
  color: var(--ml-gold);
}
.dark:hover,
.hero .dark:hover,
.about-copy .button:hover,
.shop-tools .cart-button:hover,
.product-add:hover,
.cart-float:hover { border-color: #142b44; background: #142b44; color: var(--ml-gold); }
.hero .dark:focus-visible { outline: 2px solid var(--ml-navy); outline-offset: 3px; }

.hero-copy::before,
.hero-copy::after,
.treatment-card-with-detail::after {
  content: '';
  position: absolute;
  background: #ae8950;
  mask: url('assets/rama-botanica-oliva.svg') center / contain no-repeat;
  pointer-events: none;
}
.hero-copy::before,
.hero-copy::after { width: clamp(52px, 9vw, 140px); aspect-ratio: 8 / 7; opacity: .38; }
.hero-copy::before { top: 12px; left: 12px; transform: rotate(180deg); }
.hero-copy::after { right: 14px; bottom: 12px; }
.treatment-card-with-detail::after { width: 74px; aspect-ratio: 8 / 7; right: 7px; bottom: 6px; opacity: .28; }
@media (max-width: 680px) {
  .hero-copy::before { top: 4px; left: 4px; }
  .hero-copy::after { right: 5px; bottom: 3px; }
  .hero-copy::before, .hero-copy::after { opacity: .25; }
}

.treatment-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1480px;
  margin-inline: auto;
}

.treatment-list .treatment-card-with-detail,
.treatment-list .treatment-card-with-detail:first-child {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
}

.treatment-list .treatment-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
  object-fit: contain;
  background: #f2eee7;
}

.treatment-list .treatment-card-with-detail > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.treatment-list .treatment-card-actions { margin-top: auto; }

@media (max-width: 1040px) {
  .treatment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .treatment-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 12px; }
  .hero h1 { font-size: clamp(36px, 8vw, 52px); }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 67px auto;
    gap: 5px 12px;
    padding: 0 4% 8px;
    position: relative;
  }

  .site-header .brand {
    grid-row: 1;
    width: 74px;
    padding: 7px 6px 8px;
  }

  .site-header .header-book { grid-column: 2; justify-self: end; }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 0 clamp(10px, 4vw, 27px);
    font-size: clamp(15px, 3.8vw, 20px);
  }

}

/* Recorrido de la portada */
.home-section-intro {
  color: #0b3042;
}
.home-section-intro h2 {
  margin: 0 0 15px;
  font: 400 clamp(34px, 4.25vw, 64px)/1.08 Georgia, serif;
  letter-spacing: -.035em;
}
.home-section-intro > p {
  max-width: 45ch;
  margin: 0;
  font: 400 clamp(16px, 1.5vw, 20px)/1.6 var(--sans);
}
.treatments {
  padding-block: clamp(46px, 6vw, 92px);
  background: var(--ml-ivory);
}
.treatments-intro.home-section-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.treatments-intro.home-section-intro::before {
  content: '';
  display: block;
  width: 54px;
  height: 2px;
  margin: 0 auto 20px;
  background: #ae8950;
}
.treatments-intro.home-section-intro > p {
  margin-inline: auto;
}
.treatment-list h3 {
  color: #0b3042;
  font-family: Georgia, serif;
  font-weight: 400;
}
.treatment-list .treatment-card-with-detail,
.treatment-list .treatment-card-with-detail:first-child,
.product {
  border-color: #e2d8c8;
  box-shadow: 0 4px 12px rgb(0 0 0 / 3%);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 110px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 94px);
  background: #eaf1f4;
}
.about .maite-photo {
  max-height: 560px;
  margin: 0;
  aspect-ratio: 4 / 5;
  object-position: center top;
  border: 1px solid #dac6a1;
  border-radius: 16px;
}
.about .about-copy {
  margin: 0;
  padding: 0;
  border: 0;
}
.about .about-copy h2 { margin-top: 0; }
.about .about-copy > p { color: #173548; }
.about .about-copy .about-subtitle {
  margin-bottom: 14px;
  font-weight: 700;
}
.about-credentials-card {
  margin-top: 23px;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid #e2d1a6;
  border-radius: 16px;
  background: #fdfbf7;
  box-shadow: 0 8px 24px #0b304212;
}
.about .about-credentials-title {
  margin: 0 0 8px;
  font: 400 25px/1.2 Georgia, serif;
  color: #0b3042;
}
.about-credentials {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
}
.about-credentials li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-block: 11px;
}
.about-credentials li + li { border-top: 1px solid #eadfc9; }
.about-credentials li:last-child { padding-bottom: 0; }
.about-credentials li > span { justify-self: center; }
.about-credentials .credential-icon {
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  padding: 7px;
  border: 1px solid #d9bd86;
  border-radius: 50%;
  background: #f6ead1;
  color: #805b24;
}
.about .about-credentials p {
  max-width: none;
  margin: 2px 0 0;
  color: #173548;
  font-size: 15px;
  line-height: 1.45;
}
.about-copy .button {
  border-radius: 999px;
}

.shop-banner {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(16px, 5vw, 76px);
  background: linear-gradient(110deg, #fbf8f1, #eaf0f3);
}
.shop-banner .home-section-intro {
  padding-block: clamp(36px, 6vw, 86px);
}
.shop-banner .home-section-intro h2 { font-size: clamp(36px, 4.7vw, 68px); }
.shop .shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  border-color: #d5b886;
  padding-bottom: 10px;
}
.shop-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.shop-tools .cart-button {
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 999px;
}
.shop-tools .cart-button svg { display: block; }

.shop .shop-show-all {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
  border-color: #0b3042;
  border-radius: 999px;
  color: #0b3042;
}
.shop .shop-show-all[hidden] { display: none; }

@media (min-width: 1200px) {
  .shop .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.shop .product-focus {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f1ece1;
  color: #173548;
  font-size: 13px;
  line-height: 1.35;
}

.professional {
  padding-block: clamp(72px, 9vw, 136px);
  scroll-margin-top: 24px;
  background: var(--ml-navy);
}
.professional .home-section-intro { color: var(--ml-ivory); }
.professional .home-section-intro h2 { margin-inline: auto; max-width: 25ch; }
.professional .home-section-intro > p { margin-inline: auto; }
.professional .button {
  margin-top: 25px;
  border: 1px solid #e4c688;
  border-radius: 999px;
  background: #e4c688;
  color: var(--ml-navy);
}
.professional .button:hover { background: #f3d9a5; }

.faq {
  padding-block: clamp(44px, 6vw, 90px);
  scroll-margin-top: 24px;
  background: var(--ml-ivory);
}
.faq .home-section-intro h2 { margin-top: 0; }
.faq summary { color: #0b3042; }
.faq a { color: #0b3042; text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 680px) {
  .about, .shop-banner { grid-template-columns: minmax(0, 1fr); }
  .about .about-copy { grid-row: 1; }
  .shop-banner .home-section-intro { padding-block: 10px 6px; }
  .shop-tools { margin-left: 0; }
}

.testimonials {
  padding-block: clamp(46px, 6vw, 86px);
  background: var(--ml-navy);
}
.testimonials .home-section-intro { color: var(--ml-ivory); text-align: center; }

.site-footer { background: var(--ml-navy); color: var(--ml-ivory); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  max-width: 1480px;
  margin: clamp(24px, 3vw, 38px) auto 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid #d9bd86;
  border-radius: 14px;
  background: #fff;
  color: #173548;
}
.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}
.testimonial-rating span {
  color: #a87b18;
  font-size: 19px;
  letter-spacing: .07em;
}
.testimonial-card blockquote {
  margin: 0;
  color: #2d3748;
  line-height: 1.65;
}
.testimonial-card figcaption {
  margin-top: auto;
  font-weight: 700;
}
@media (max-width: 760px) {
  .testimonial-grid { grid-template-columns: minmax(0, 1fr); }
}
