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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-2));
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-3);
}
h1 {
  font-size: var(--fs-2xl);
  font-weight: var(--w-bold);
}
h2 {
  font-size: var(--fs-xl);
  font-weight: var(--w-bold);
}
h3 {
  font-size: var(--fs-lg);
  font-weight: var(--w-semibold);
}
p {
  margin: 0 0 var(--sp-2);
}
a {
  color: var(--highlight);
}

/* The phrases the spec writes in italics */
.hl {
  color: var(--highlight);
  font-style: normal;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: var(--w-semibold);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:focus-visible,
.nav a:focus-visible,
.carousel button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--amber-dark);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--navy);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}
.btn svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-4);
  background: var(--navy);
}
.site-header .logo img {
  display: block;
  height: 60px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  margin: 0 auto;
}
.nav a,
.site-header .btn {
  white-space: nowrap;
}
.nav a {
  color: var(--bg-white);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: var(--w-semibold);
  letter-spacing: 0.06em;
  padding: var(--sp-1) 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  border-bottom-color: var(--amber);
}
.nav a.current {
  color: var(--blue);
}
.nav a:not(.btn) {
  position: relative;
}
.nav a:not(.btn) + a:not(.btn) {
  margin-left: var(--sp-4);
}
/* the bar sits outside the link so its hover underline doesn't reach it */
.nav a:not(.btn) + a:not(.btn)::before {
  content: '|';
  position: absolute;
  left: calc(-1 * var(--sp-2));
  transform: translateX(-50%);
  color: var(--gray);
  font-weight: var(--w-regular);
}
.langs {
  display: flex;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: var(--w-semibold);
  letter-spacing: 0.06em;
}
.langs a {
  color: var(--gray);
  text-decoration: none;
  padding: var(--sp-1) 6px;
}
.langs a + a {
  border-left: 1px solid var(--gray);
}
.langs a:hover,
.langs a[aria-current] {
  color: var(--bg-white);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: var(--sp-1);
  color: var(--bg-white);
  cursor: pointer;
}
.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Two columns, the drawing and the content, centred together on wide screens */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--content-max) + 2 * var(--sp-6)));
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--sp-6);
}
.path-art {
  position: relative;
}
.path-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.path-line path {
  fill: var(--sand);
}
/* site.js sizes and places the scenes and the plants */
.path-scene,
.path-tree,
.path-deco {
  position: absolute;
  height: auto;
}
.path-scene {
  z-index: 1;
}
.content {
  padding: 0 var(--sp-6);
}
.section {
  max-width: var(--content-max);
  padding: var(--sp-12) 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.lead p {
  font-size: var(--fs-lg);
  line-height: 1.5;
  text-align: justify;
}
.lead .cta,
.lead .tagline {
  text-align: center;
}
.lead .cta {
  margin: var(--sp-4) 0;
}
.lead .tagline {
  color: var(--highlight);
  font-weight: var(--w-bold);
  font-style: italic;
}
#propuesta h2 {
  line-height: 1.4;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Services */
.services-intro p {
  font-size: var(--fs-lg);
  line-height: 1.5;
}
.service {
  margin-top: var(--sp-6);
  font-size: 1.25rem;
}
.service ~ .service {
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(91, 163, 221, 0.35);
}
.service h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem);
}
.service h3 {
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.service .num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #dcebf7;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
}
.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service li {
  position: relative;
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-1);
}
.service li::before {
  content: '';
  position: absolute;
  left: var(--sp-1);
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.service-app {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-6);
  align-items: center;
}
/* the note sits beside the phone's bottom-left corner */
.service-app .phone {
  grid-row: 1 / 3;
  grid-column: 2;
}
.app-note {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  max-width: 34ch;
  margin: 0;
  text-align: right;
  color: var(--gray-text);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

/* Phone mockup with its carousel */
/* short enough to fit under the header on a laptop screen */
.phone {
  --h: min(520px, calc(100svh - var(--header-h) - 2 * var(--sp-4)));
  height: var(--h);
  width: calc(var(--h) * 9 / 17);
  padding: 12px;
  border-radius: 40px;
  background: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  width: 70px;
  height: 20px;
  border-radius: 10px;
  background: var(--navy);
  z-index: 2;
}
.carousel {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-white);
}
.slides {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 48px 14px 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--fs-xs);
  line-height: 1.35;
}
.app-title {
  font-family: var(--font-head);
  font-weight: var(--w-bold);
  font-size: var(--fs-sm);
  margin-bottom: 4px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tile {
  aspect-ratio: 6 / 5;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: var(--w-semibold);
  font-size: 0.8rem;
  hyphens: manual;
}
.tile i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}
.tile i svg {
  width: 18px;
  height: 18px;
}
.tile:nth-child(2) i {
  background: var(--amber);
}
.tile:nth-child(3) i {
  background: var(--navy);
}
.tile:nth-child(4) i {
  background: var(--gray);
}
.tile:nth-child(5) i {
  background: var(--blue-text);
}
.tile:nth-child(6) i {
  background: var(--amber-dark);
}
.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: var(--w-semibold);
}
.notice svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--amber-dark);
}
.notice small {
  display: block;
  font-weight: var(--w-regular);
  color: var(--text-soft);
}
.carousel-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.carousel-nav button {
  border: 0;
  background: none;
  padding: 4px;
  cursor: pointer;
  color: var(--navy);
}
.carousel-nav .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--line);
}
.carousel-nav .dot[aria-current='true'] {
  background: var(--navy);
}
.carousel-nav .arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Footer strip */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: var(--sp-4) var(--sp-4);
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-3) var(--sp-6);
  font-size: var(--fs-sm);
}
.site-footer a {
  color: #fff;
}
.site-footer .privacy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer .social {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.site-footer .social a {
  display: inline-flex;
}
.site-footer .social svg {
  width: 26px;
  height: 26px;
}
.site-footer .credit {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-xs);
  opacity: 0.75;
}
.site-footer blockquote {
  margin: 0;
  text-align: right;
  color: var(--blue);
  font-style: italic;
  font-weight: var(--w-bold);
  font-size: var(--fs-base);
  text-wrap: balance;
}
.site-footer blockquote cite {
  display: block;
  font-size: var(--fs-xs);
  font-style: normal;
  opacity: 0.8;
}

/* Booking page */
.agenda {
  max-width: 1280px;
  margin: 0 auto;
}
.agenda .section {
  max-width: none;
  padding-top: var(--sp-6);
}
.cal-embed {
  min-height: 640px;
  margin-top: var(--sp-6);
}
/* Cal.com draws its booker at a fixed, small size; zoom scales the whole iframe. Its
   three-column layout needs about 950 px inside, so only on wide screens. */
@media (min-width: 1300px) {
  .cal-embed {
    zoom: 1.1;
  }
}
/* Safari zooms the iframe's page as well, so the booker outgrows its frame and scrolls
   (only Safari supports this font keyword) */
@supports (font: -apple-system-body) {
  .cal-embed {
    zoom: 1;
  }
}
.cal-fallback {
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

/* Drawings between sections, phones only */
.scene {
  display: none;
}

@media (max-width: 900px) {
  #propuesta h2 br {
    display: none;
  }
  :root {
    --header-h: 72px;
  }
  .site-header {
    padding: 0 var(--gutter);
    gap: var(--sp-2);
  }
  .site-header .logo {
    min-width: 0;
  }
  .site-header .logo img {
    height: 42px;
    max-width: 100%;
    object-fit: contain;
    object-position: left;
  }
  .menu-toggle {
    display: block;
    margin-left: 0;
  }
  .langs {
    margin-left: auto;
    font-size: var(--fs-xs);
    letter-spacing: 0.02em;
  }
  .langs a {
    padding: var(--sp-1) 4px;
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    align-items: center;
    padding: var(--sp-1) var(--gutter) var(--sp-3);
    background: var(--navy);
  }
  .nav a:not(.btn) + a:not(.btn) {
    margin-left: 0;
  }
  .nav a:not(.btn) + a:not(.btn)::before {
    content: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: var(--sp-2) 0;
  }
  .site-header .btn-whatsapp {
    display: none;
  }
  .nav .btn-whatsapp {
    display: inline-flex;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    margin-top: var(--sp-2);
  }
  .nav .btn-whatsapp svg {
    width: 2rem;
    height: 2rem;
  }
  .lead p {
    text-align: left;
  }
  .layout {
    display: block;
    padding-left: 0;
  }
  .path-art {
    display: none;
  }
  .content {
    padding: 0 var(--gutter);
  }
  .section {
    padding: var(--sp-8) 0;
  }
  .scene {
    display: block;
    margin: var(--sp-4) auto 0;
  }
  .scene img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
  .scene-pair {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    align-items: flex-end;
  }
  .scene-pair img {
    margin: 0;
    max-width: calc(50% - var(--sp-1));
  }
  .service .num {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.75rem;
  }
  .service-app {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .service-app .phone,
  .app-note {
    grid-row: auto;
    grid-column: auto;
  }
  .app-note {
    justify-self: center;
    text-align: center;
  }
  .site-footer {
    grid-template-columns: 1fr;
    padding: var(--sp-4) var(--gutter);
  }
  .site-footer .credit {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-xs);
  opacity: 0.75;
}
.site-footer blockquote {
    text-align: left;
  }
}
@media (min-width: 901px) {
  .nav .btn-whatsapp {
    display: none;
  }
}

/* FAQ: the pill under the header (home page) and the page */
.faq-pill {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: var(--sp-4);
}
@media (max-width: 900px) {
  .faq-pill {
    right: var(--gutter);
  }
}
.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--highlight);
  box-shadow: var(--shadow);
  color: var(--bg-white);
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: var(--w-semibold);
  text-decoration: none;
  white-space: nowrap;
}
.pill:hover {
  background: var(--navy);
}
.legal.faq .section {
  max-width: 820px;
  margin: 0 auto;
  padding-top: var(--sp-4);
}
.faq > .pill {
  margin-top: var(--sp-6);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: var(--w-semibold);
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
  color: var(--blue);
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding-bottom: var(--sp-2);
  line-height: 1.6;
}
.faq-answer p,
.faq-answer ul {
  margin: 0 0 var(--sp-3);
}
.faq-answer ul {
  padding-left: 1.25rem;
}
.faq-answer li + li {
  margin-top: var(--sp-1);
}
.faq-more {
  margin-top: var(--sp-8);
}

/* Privacy notice (under construction for now) */
.legal .section {
  min-height: calc(100svh - var(--header-h) - 9rem);
  padding-top: var(--sp-6);
}
