:root {
  --teal: #06a6a0;
  --teal-dark: #047d78;
  --teal-soft: #d7f4f1;
  --gold: #f5b400;
  --orange: #f39a1c;
  --ink: #0f2f2d;
  --slate: #4b5d5a;
  --sand: #f7f4ef;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(8, 48, 45, 0.16);
}

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

body {
  margin: 0;
  font-family: "Poppins", "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #e8fbf8 0%, #ffffff 45%, #f5f2ea 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 5vw;
  font-size: 0.85rem;
  color: var(--slate);
  background: var(--white);
}

.top-bar__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(4, 125, 120, 0.08);
}

.logo {
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .logo-img {
    height: 46px;
  }
}

.footer-logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--slate);
}

.nav-links a:hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(4, 125, 120, 0.25);
  background: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 0.55rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal-dark);
  border-radius: 999px;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.ghost-button {
  border: 1px solid rgba(4, 125, 120, 0.3);
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: var(--teal-dark);
  cursor: pointer;
}

.cart-button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.cart-button.is-pulsing {
  animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(6, 166, 160, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(6, 166, 160, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(6, 166, 160, 0.2);
  }
}

.cart-badge {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
}

.whatsapp-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  background: #08783d;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.whatsapp-fab:hover {
  background: #075e32;
}

.whatsapp-fab:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.whatsapp-fab.whatsapp-fab--inline {
  position: static;
  z-index: auto;
  display: flex;
  width: max-content;
  margin: 1rem 0 0 auto;
  box-shadow: none;
}

@media (max-width: 720px) {
  .whatsapp-fab {
    right: 14px;
    bottom: 14px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

.hero {
  position: relative;
  overflow: visible;
  background: #f6fbfa;
  padding: 80px 6vw 46px;
  scroll-margin-top: 120px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(980px, 92vw);
  height: 420px;
  transform: translateX(-50%);
  background: url("/static/images/hero-medical-bg.svg") center/contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__content h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  color: #0e2e2b;
  margin: 0 0 12px;
}

.hero__content p {
  font-size: 18px;
  color: #5f7c79;
  margin: 0 0 20px;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  color: #0f6f69;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-guided {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  margin-bottom: 0.8rem;
}

.hero-guided__btn {
  padding: 0.55rem 1rem;
  font-weight: 700;
}

.hero-guided small {
  color: var(--slate);
}

.hero__search {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 30px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(15, 47, 45, 0.08);
  width: 100%;
}

.guided-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1750;
  background: rgba(15, 47, 45, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.guided-backdrop[hidden] {
  display: none !important;
}

.guided-modal {
  width: min(820px, 100%);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.guided-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.guided-modal__header h3 {
  margin: 0;
}

.guided-step {
  display: none;
}

.guided-step.is-active {
  display: block;
}

.guided-step h4 {
  margin: 0 0 0.7rem;
}

.guided-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.guided-chip {
  border: 1px solid rgba(4, 125, 120, 0.25);
  background: #f6fbfa;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.guided-chip:hover {
  border-color: var(--teal);
}

.guided-chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.guided-modal__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

.hero__search.is-focused {
  border-color: rgba(6, 166, 160, 0.4);
  box-shadow: 0 0 0 4px rgba(6, 166, 160, 0.13), 0 10px 30px rgba(0, 0, 0, 0.08);
}

.d-none {
  display: none !important;
}

.search-helper-error {
  margin: 0.6rem 0 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
}

.search-helper {
  background: linear-gradient(135deg, rgba(4, 125, 120, 0.08), rgba(243, 154, 28, 0.08));
  border: 1px solid rgba(4, 125, 120, 0.2);
  border-radius: 16px;
  padding: 0.9rem;
}

.section--search-helper {
  padding-top: 0.5rem;
  padding-bottom: 1.4rem;
}

.section--search-helper .search-helper {
  max-width: 980px;
  margin: 0 auto;
  background: transparent;
  border: none;
  padding: 0;
}

.search-helper h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--ink);
}

.search-helper p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.search-helper__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.selector-btn {
  border: 1px solid rgba(4, 125, 120, 0.18);
  background: rgba(255, 255, 255, 0.98);
  color: var(--teal-dark);
  border-radius: 14px;
  min-height: 56px;
  width: 100%;
  margin-bottom: 0;
  padding: 0.7rem 1rem;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 20px rgba(8, 48, 45, 0.06);
  transition: all 0.2s ease, border-color 0.2s ease;
}

.emoji-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  font-style: normal;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color", sans-serif;
  font-size: 1.05em;
  vertical-align: -0.08em;
}

.selector-btn:hover {
  border-color: rgba(4, 125, 120, 0.4);
  background: rgba(4, 125, 120, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(8, 48, 45, 0.1);
}

.search-helper__sub {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.45rem;
}

.search-helper__sub-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.search-helper__chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.suboption-btn {
  border: 1px solid rgba(15, 47, 45, 0.2);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  height: 48px;
  margin-bottom: 8px;
  padding: 0.45rem 0.8rem;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.suboption-btn:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.selector-btn.active,
.suboption-btn.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.suboptions__more {
  margin-top: 0.35rem;
  border: 1px solid rgba(15, 47, 45, 0.14);
  border-radius: 12px;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.7);
}

.suboptions__more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal-dark);
}

.suboptions__filter {
  width: 100%;
  margin: 0.6rem 0;
  border: 1px solid rgba(15, 47, 45, 0.2);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
}

.search-helper__next {
  margin: 0;
  font-size: 0.84rem;
  color: var(--slate);
  display: none;
}

.search-helper__next.is-visible {
  display: block;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  align-items: end;
}

.search-row--primary {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(200px, 1.25fr) minmax(130px, 0.7fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.search-row input,
.search-row select {
  flex: 1;
  border: 1px solid rgba(15, 47, 45, 0.12);
  outline: none;
  font-size: 16px;
  padding: 0 14px;
  border-radius: 10px;
  min-height: 56px;
  height: 56px;
}

.search-row input[type="search"]::-webkit-search-cancel-button,
.search-row input[type="search"]::-webkit-search-decoration,
.search-row input[type="search"]::-webkit-search-results-button,
.search-row input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.search-row input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

.autocomplete input {
  padding-right: 2.5rem;
  width: 100%;
}

.autocomplete {
  position: relative;
  width: 100%;
}

.search-label .autocomplete {
  width: 100%;
}

.autocomplete .input-clear {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.autocomplete.has-value .input-clear {
  opacity: 1;
  pointer-events: auto;
}

.input-clear {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 47, 45, 0.08);
  color: var(--slate);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.input-clear:hover {
  background: rgba(4, 125, 120, 0.2);
  color: var(--teal-dark);
}

.search-summary {
  margin-bottom: 1rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.results-map {
  background: var(--white);
  border-radius: 20px;
  padding: 0.6rem;
  box-shadow: var(--shadow);
  margin: 1.2rem 0 1.8rem;
}

.results-map__summary {
  display: grid;
  gap: 0.2rem;
  margin: 1rem 0 0.6rem;
  color: var(--ink);
}

.results-map__summary span {
  color: var(--slate);
  font-size: 0.92rem;
}

.results-map__inner {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  touch-action: pan-x pan-y;
}

.price-marker {
  background: transparent;
  border: none;
}

.price-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: #0b807b;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(4, 90, 86, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  font-variant-numeric: tabular-nums;
}

.price-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 12px;
  height: 12px;
  background: #0b807b;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateX(-50%) rotate(-45deg);
}

.search-label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--slate);
  flex: 1;
}

.search-row--primary .search-label {
  min-width: 0;
}

.search-label select {
  background: var(--white);
}

.search-help-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--slate);
}

.search-flow-note {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--slate);
}

.search-flow-note.is-visible {
  color: var(--teal-dark);
  font-weight: 600;
}

#search-radius-input.is-highlight {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(6, 166, 160, 0.18);
}

.hero__search input {
  flex: 1;
  border: 1px solid #e6e6e6;
  outline: none;
  font-size: 16px;
  padding: 0 14px;
  min-height: 56px;
  height: 56px;
  border-radius: 10px;
}

.hero__search input.input-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.hero__search .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--teal);
  color: var(--white);
  height: 56px;
  min-height: 56px;
  border-radius: 10px;
  font-size: 16px;
  padding: 0 26px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.cta-band {
  background: var(--teal);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 6vw;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.section {
  padding: 3rem 6vw;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section__header h2 {
  margin: 0;
}

.pill-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill {
  padding: 10px 18px;
  border-radius: 20px;
  background: #e6f3f2;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover {
  background: #cfe8e6;
  transform: translateY(-1px);
}

.pill--teal {
  background: var(--teal);
  color: var(--white);
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

  .card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.2s ease;
    animation: rise 0.6s ease both;
  }
  .card__image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #edf7f6;
    border: 1px solid rgba(6, 166, 160, 0.12);
  }
  .card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }

.card:hover {
  transform: translateY(-4px);
}

.grid .card:nth-child(2) { animation-delay: 0.05s; }
.grid .card:nth-child(3) { animation-delay: 0.1s; }
.grid .card:nth-child(4) { animation-delay: 0.15s; }
.grid .card:nth-child(5) { animation-delay: 0.2s; }
.grid .card:nth-child(6) { animation-delay: 0.25s; }
.grid .card:nth-child(7) { animation-delay: 0.3s; }
.grid .card:nth-child(8) { animation-delay: 0.35s; }
.grid .card:nth-child(9) { animation-delay: 0.4s; }
.grid .card:nth-child(10) { animation-delay: 0.45s; }
.grid .card:nth-child(11) { animation-delay: 0.5s; }
.grid .card:nth-child(12) { animation-delay: 0.55s; }

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag {
  background: rgba(6, 166, 160, 0.12);
  color: var(--teal-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.distance-pill {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(243, 154, 28, 0.15);
  color: var(--orange);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.price {
  font-weight: 700;
  color: var(--orange);
}

.card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.account {
  padding-bottom: 4rem;
}

.section__subtitle {
  color: var(--slate);
  margin-top: 0.4rem;
}

.account-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.5rem;
}

.form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-card form {
  display: grid;
  gap: 0.9rem;
}

.captcha {
  display: flex;
  justify-content: flex-start;
}

.form-card label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.form-card input {
  border: 1px solid rgba(15, 47, 45, 0.12);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.form-card button {
  border: none;
  background: var(--teal);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.form-card .link--small {
  margin-top: 0.6rem;
  display: inline-block;
}

.account__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.account .section__header {
  flex-wrap: wrap;
}

.account .section__header p {
  max-width: 560px;
}

.link--small {
  font-size: 0.85rem;
}

.captcha {
  width: 100%;
  overflow: hidden;
}

@media (max-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account__summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .form-card {
    padding: 1.1rem;
  }

  .account__summary {
    padding: 1rem;
  }

  .account .section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .captcha {
    transform: scale(0.92);
    transform-origin: left top;
  }
}

.account__layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(260px, 360px) 1fr;
  align-items: start;
}

.account__profile {
  position: sticky;
  top: 1.5rem;
}

.account__row {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.orders-list {
  margin-top: 2rem;
}

.orders-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1rem;
}

.order-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-card__meta {
  display: grid;
  gap: 0.3rem;
  color: var(--slate);
  font-size: 0.9rem;
}

.order-card__items {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--slate);
  font-size: 0.9rem;
}

.order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.invoice {
  padding-bottom: 4rem;
}

.invoice__panel {
  background: var(--white);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.invoice__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(15, 47, 45, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}

.invoice-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.4rem;
}

.invoice__meta {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  color: var(--slate);
}

.invoice__table {
  display: grid;
  gap: 0.8rem;
}

.invoice__row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 90px 110px 110px;
  gap: 0.6rem;
  align-items: center;
  border-bottom: 1px solid rgba(15, 47, 45, 0.08);
  padding-bottom: 0.6rem;
}

.invoice__row--head {
  font-weight: 700;
  color: var(--deep);
}

@media (max-width: 900px) {
  .invoice__row {
    grid-template-columns: 1fr 90px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .invoice__print,
  .ghost-button,
  .cart-button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page {
    box-shadow: none;
  }

  .invoice__panel {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

.order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

@media (max-width: 980px) {
  .account__layout {
    grid-template-columns: 1fr;
  }

  .account__profile {
    position: static;
  }
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  font-weight: 600;
}

.alert--error {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}

.alert--success {
  background: rgba(6, 166, 160, 0.15);
  color: var(--teal-dark);
}

.muted {
  color: var(--slate);
}

.status {
  font-weight: 700;
  color: var(--teal-dark);
}

.about-hero {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #0e8f8a, #0b6e6a);
}

.about-hero__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  opacity: 0.35;
}

.about-hero__image--fallback {
  background: radial-gradient(circle at 20% 30%, #1bb8b2, #0b6e6a 70%);
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.about-hero__content {
  max-width: 920px;
  width: 100%;
  color: #fff;
}

.about-hero__content h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-hero__content p {
  margin: 0;
  font-size: 1.06rem;
}

.about-block {
  padding-top: 2rem;
  padding-bottom: 0;
}

.about-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}

.about-card h2 {
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
}

.about-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.about-side-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #eef8f7, #d9ecea);
}

.about-side-image--fallback {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.4rem;
  padding: 1rem;
  text-align: center;
  color: var(--teal-dark);
}

.about-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--slate);
}

.about-list--ordered {
  padding-left: 1.3rem;
}

.about-highlight {
  margin: 0;
  font-weight: 700;
  color: var(--teal-dark);
}

.about-contact {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(6, 166, 160, 0.12);
  color: var(--teal-dark);
  font-weight: 600;
}

.about-card--soft {
  background: linear-gradient(180deg, #ffffff, #f4fbfa);
}

.about-card--center {
  text-align: center;
}

.card__location {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  font-size: 0.82rem;
  color: var(--slate);
}

.card__location span {
  background: rgba(6, 166, 160, 0.1);
  color: var(--teal-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8rem;
  color: var(--slate);
}

.card__chips span {
  background: rgba(243, 154, 28, 0.15);
  color: var(--orange);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.card__type {
  margin: -0.1rem 0 0.35rem;
}

.card__type span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(4, 125, 120, 0.12);
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.card__type .emoji-icon {
  margin-right: 0.15rem;
}

.card__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate);
}

.cta-button {
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.cta-button.is-added {
  background: var(--teal);
  color: var(--white);
}

.cta-button--light {
  background: var(--white);
  color: var(--teal-dark);
}

.cta-button--small {
  padding: 0.5rem 1rem;
}

.link {
  color: var(--teal-dark);
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  background: var(--sand);
  border-radius: 28px;
  margin: 0 6vw 3rem;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.checks li::before {
  content: "●";
  color: var(--teal);
  margin-right: 0.6rem;
}

.stats {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.stat {
  background: var(--white);
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stat span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
}

.product-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-detail__card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.product-detail__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-detail > * { min-width: 0; }

.purchase-conditions {
  min-width: 0;
  margin: 1.25rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 47, 45, 0.15);
  font-size: 0.875rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: var(--slate);
  overflow-wrap: anywhere;
}

.purchase-conditions h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.purchase-conditions ul { margin: 0; padding-left: 1.1rem; }
.purchase-conditions li + li { margin-top: 0.5rem; }
.purchase-conditions p { margin: 0.75rem 0; }
.purchase-conditions a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.purchase-conditions__link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
.purchase-conditions strong { font-weight: 600; }
.purchase-conditions__details { margin-top: 0.5rem; }
.purchase-conditions__details > summary {
  min-height: 44px;
  padding: 0.65rem 0;
  cursor: pointer;
  color: var(--teal-dark);
  font-weight: 600;
}
.purchase-conditions__details p:last-child { margin-bottom: 0.5rem; }
.purchase-conditions :is(a, summary):focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }

.site-footer {
  margin-top: auto;
  padding: 2.2rem 6vw 1.4rem;
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 1.3rem;
}

.site-footer__top {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
}

.site-footer__top > * { min-width: 0; overflow-wrap: anywhere; }

.legal-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}

.legal-acceptance input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 3px;
  accent-color: var(--teal-dark);
}

.legal-acceptance a { text-decoration: underline; }

.site-footer h4 {
  margin: 0 0 0.7rem;
}

.site-footer p {
  margin: 0 0 0.42rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__legal {
  grid-column: 1 / -1;
  margin: 0.5rem -6vw -1.4rem;
  padding: 1.15rem 6vw 1rem;
  background: #ffffff;
  border-top: 1px solid rgba(15, 47, 45, 0.08);
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.site-footer .site-footer__grant {
  margin: 0;
  max-width: 1120px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
}

.site-footer__funding-logo {
  display: block;
  width: min(100%, 900px);
  height: auto;
  margin: 0 auto;
}

.site-footer__funding-logo--mobile {
  display: none;
}

.site-footer__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: rgba(15, 47, 45, 0.72);
}

.site-footer__meta small {
  font-size: 0.78rem;
}

.site-footer .site-footer__credit {
  margin: 0;
  max-width: 100%;
  color: #6b777c;
  font: 400 11px/1.6 "Segoe UI", sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}

.cookies-floating-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1600;
  border: 1px solid rgba(15, 47, 45, 0.3);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.cookies-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(15, 47, 45, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookies-backdrop[hidden],
.cookies-floating-btn[hidden] {
  display: none !important;
}

.cookies-modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.cookies-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.cookies-modal__header h3 {
  margin: 0;
}

.cookies-close {
  border: none;
  background: rgba(15, 47, 45, 0.08);
  color: var(--ink);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

.cookies-modal__intro {
  margin: 0;
  color: var(--slate);
}

.cookies-groups {
  display: grid;
  gap: 0.55rem;
}

.cookies-group {
  border: 1px solid rgba(15, 47, 45, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookies-group strong {
  display: block;
  margin-bottom: 0.1rem;
}

.cookies-group small {
  color: var(--slate);
}

.cookies-group input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
}

.cookies-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.empty-state {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.empty-state--alt {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid rgba(4, 125, 120, 0.12);
  background: linear-gradient(135deg, rgba(6, 166, 160, 0.08), rgba(255, 255, 255, 0.9));
}

.empty-state__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(6, 166, 160, 0.15);
  color: var(--teal-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.empty-state--alt h3 {
  margin: 0 0 0.4rem;
}

.empty-state--alt p {
  margin: 0;
  color: var(--slate);
}

.local-search-notice {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
  scroll-margin-top: 140px;
  padding: 1.25rem;
  border: 2px solid #cf850b;
  border-left-width: 6px;
  border-radius: 8px;
  background: #fff7df;
  color: #302b1e;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.local-search-notice__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffdf84;
  color: #704000;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.local-search-notice__body { min-width: 0; }
.local-search-notice__label {
  margin: 0 0 0.35rem;
  color: #734000;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}
.local-search-notice h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.local-search-notice__copy {
  margin: 0.5rem 0 0;
  color: #4a4335;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.local-search-notice__copy strong { font-weight: 600; }
.local-search-notice__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.local-search-notice__cities li { max-width: 100%; }
.local-search-notice__city-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.5rem;
  min-height: 44px;
  max-width: 100%;
  padding: 0.5rem 0;
  color: #005d58;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}
.local-search-notice__city-name {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.local-search-notice__distance {
  color: #5a503e;
  font-size: 0.8125rem;
  font-weight: 400;
  white-space: nowrap;
}
.local-search-notice__city-link:hover { color: #003d39; }
.local-search-notice__city-link:focus-visible,
.local-search-notice__contact:focus-visible,
.local-search-notice__more summary:focus-visible {
  outline: 2px solid #005d58;
  outline-offset: 3px;
}
.local-search-notice__more summary {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 0.65rem 0;
  color: #704000;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.local-search-notice__note {
  margin: 0.25rem 0 0;
  color: #665944;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.local-search-notice__contact { text-decoration: underline; text-underline-offset: 3px; }
#servicios { scroll-margin-top: 140px; }

@media (max-width: 600px) {
  .local-search-notice {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.9rem;
    border-left-width: 5px;
  }
  .local-search-notice__icon { width: 28px; height: 28px; font-size: 1.25rem; }
  .local-search-notice h3 { font-size: 1.125rem; }
  .local-search-notice__cities { display: grid; grid-template-columns: minmax(0, 1fr); }
}

.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 2rem;
}

.filters input,
.filters select {
  flex: 1;
  min-width: 180px;
  border: 1px solid rgba(15, 47, 45, 0.12);
  outline: none;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: var(--white);
}

.filters input[name="service"] {
  flex: 2;
  min-width: 260px;
}


.autocomplete {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid rgba(15, 47, 45, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow-y: auto;
  z-index: 2000;
  display: none;
}

.autocomplete-list.is-open {
  display: block;
}

.autocomplete-option {
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  line-height: 1.2rem;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
  background: var(--teal-soft);
}

.autocomplete-option.is-disabled {
  color: var(--slate);
  cursor: default;
  background: rgba(15, 47, 45, 0.04);
}

.autocomplete-option--fallback {
  display: grid;
  gap: 0.25rem;
  background: #f2fffc;
  border-top: 1px solid rgba(0, 135, 128, 0.12);
  min-height: 56px;
  align-content: center;
  text-align: left;
}

.autocomplete-option--fallback strong {
  color: var(--teal-dark);
}

.autocomplete-option--fallback span {
  color: var(--slate);
  font-size: 0.86rem;
}

.autocomplete-option .match {
  color: var(--teal-dark);
  font-weight: 700;
}

@media (max-width: 720px) {
  .site-footer {
    padding-top: 1.7rem;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer__grant {
    font-size: 0.76rem;
  }

  .site-footer__legal {
    padding-bottom: 5.6rem;
  }

  .site-footer__funding-logo--desktop {
    display: none;
  }

  .site-footer__funding-logo--mobile {
    display: block;
    width: min(100%, 360px);
  }

  .cookies-floating-btn {
    left: 14px;
    bottom: 14px;
  }

  .cookies-backdrop {
    align-items: end;
    padding: 0.6rem;
  }

  .cookies-modal {
    width: 100%;
    max-height: 68vh;
    border-radius: 16px 16px 10px 10px;
    padding: 0.9rem;
    gap: 0.7rem;
  }

  .cookies-modal__intro {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .cookies-group {
    padding: 0.55rem 0.65rem;
  }

  .cookies-group small {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .cookies-actions {
    gap: 0.45rem;
  }

  .cookies-actions .ghost-button,
  .cookies-actions .cart-button {
    width: 100%;
    justify-content: center;
  }

  .autocomplete-list {
    max-height: 50vh;
  }
  .autocomplete-option {
    font-size: 0.92rem;
  }
  .autocomplete-option--fallback {
    padding: 0.85rem 0.95rem;
    min-height: 64px;
  }

  .guided-backdrop {
    padding: 0.6rem;
    align-items: end;
  }

  .guided-modal {
    border-radius: 16px 16px 10px 10px;
    max-height: 78vh;
    overflow: auto;
  }

  .guided-grid {
    grid-template-columns: 1fr;
  }

  .guided-modal__actions {
    flex-wrap: wrap;
  }

  .guided-modal__actions .ghost-button,
  .guided-modal__actions .cart-button {
    width: 100%;
    justify-content: center;
  }

  .results-map__inner {
    height: 240px;
  }
}

@media (max-width: 820px) {
  .nav-bar { gap: 6px; padding: 12px; }
  .nav-bar .logo { flex: 0 0 60px; }
  .nav-bar .logo-img { width: 60px; height: 44px; }
  .nav-bar .menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; }
  .nav-bar .nav-actions { gap: 6px; margin-left: auto; min-width: 0; }
  .nav-actions .ghost-button {
    width: 66px; min-height: 44px; padding: 6px; font-size: 13px;
    display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2;
  }
  .nav-actions .cart-button {
    width: 90px; min-height: 44px; padding: 6px; gap: 5px;
    justify-content: center; font-size: 13px; white-space: nowrap;
  }
  .top-bar a { overflow-wrap: anywhere; min-width: 0; }
  .hero {
    padding: 42px 6vw 50px;
  }

  .hero::after {
    top: 62%;
    height: 300px;
    opacity: 0.12;
  }

  .hero__content h1 {
    font-size: 34px;
    line-height: 1.16;
    max-width: 100%;
  }

  .hero__content p {
    font-size: 16px;
  }

  .hero__search {
    padding: 0.9rem;
    border-radius: 22px;
    gap: 1rem;
  }

  .search-row,
  .search-row--primary {
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .search-row button {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    font-size: 1.05rem;
  }

  .hero__search input,
  .hero__search select {
    width: 100%;
    font-size: 1.02rem;
    padding: 0.75rem 0.9rem;
  }

  .input-clear {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 821px) {
  .search-helper__chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section--search-helper {
    padding-top: 0.25rem;
  }

  .search-helper__grid {
    grid-template-columns: 1fr;
  }

  .selector-btn {
    font-size: 16px;
    min-height: 52px;
  }
}

.filters input,
.filters select {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 47, 45, 0.12);
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: start;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: 2.25rem 2rem 3rem;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.checkout > * { min-width: 0; }
.checkout__heading h1 { margin: 0; font-size: 1.5rem; line-height: 1.3; font-weight: 650; }
.checkout__heading p { margin: 0.6rem 0 0; color: var(--slate); font-size: 0.9375rem; }
.checkout__summary > .purchase-conditions { margin: 1.5rem 0 0; }

.checkout__panel {
  background: var(--white);
  padding: 1.6rem;
  border: 1px solid rgba(15, 47, 45, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(8, 48, 45, 0.07);
  display: grid;
  gap: 1rem;
  align-content: start;
}
.checkout__panel > h3 { margin: 0; font-size: 1.1rem; font-weight: 650; }
.checkout__panel .cta-button { min-height: 44px; font-family: inherit; font-size: 0.9375rem; font-weight: 600; text-align: center; }

.checkout__form {
  display: grid;
  gap: 0.8rem;
}

.checkout__note {
  background: rgba(6, 166, 160, 0.12);
  color: var(--teal-dark);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-weight: 600;
}

.checkout__form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.checkout__form .legal-acceptance { display: flex; align-items: flex-start; gap: 0.65rem; }
.checkout__form .legal-acceptance span { min-width: 0; overflow-wrap: anywhere; }

.checkout__form input {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 47, 45, 0.1);
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

.checkout__form input[readonly] {
  background: rgba(15, 47, 45, 0.05);
  color: var(--deep);
}

.form-message {
  margin: 0;
  color: var(--teal-dark);
  font-weight: 600;
}

.checkout__items {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.checkout__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 1rem 1.2rem;
  gap: 1rem;
  border: 1px solid rgba(15, 47, 45, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(8, 48, 45, 0.05);
}

.checkout__item-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.checkout__item-main > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.checkout__item-main strong { font-weight: 600; }
.checkout [data-remove-item] { border: 0; background: transparent; padding: 0.25rem; color: var(--slate); font: inherit; font-size: 0.8125rem; text-decoration: underline; cursor: pointer; }

.checkout__thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(15, 47, 45, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout__item-actions {
  display: grid;
  gap: 0.4rem;
  justify-items: end;
  text-align: right;
}

.checkout__line-total {
  font-weight: 700;
  color: var(--deep);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 47, 45, 0.06);
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
}

.qty-control button {
  border: none;
  background: var(--white);
  color: var(--deep);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 47, 45, 0.12);
}

.qty-control input {
  width: 42px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 600;
  color: var(--deep);
}

.qty-control input:focus {
  outline: none;
}

.checkout__item small {
  display: block;
  color: var(--slate);
  margin-top: 0.25rem;
}

@media (max-width: 700px) {
  .checkout__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .checkout__item-main {
    width: 100%;
  }

  .checkout__item-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-items: start;
    text-align: left;
  }

  .checkout__line-total {
    align-self: center;
  }
  .checkout .qty-control { gap: 0.125rem; padding: 0.125rem; }
  .checkout .qty-control button { width: 44px; height: 44px; }
  .checkout .qty-control input { width: 36px; height: 44px; }
  .checkout [data-remove-item] { min-height: 44px; }
}

.checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.order-confirmation {
  display: grid;
  gap: 1.5rem;
}

.order-confirmation__panel {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.order-confirmation__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-confirmation__header h2 {
  margin: 0 0 0.4rem;
}

.order-confirmation__status {
  background: rgba(6, 166, 160, 0.12);
  color: var(--teal-dark);
  padding: 0.6rem 1rem;
  border-radius: 14px;
  min-width: 140px;
  text-align: center;
}

.order-confirmation__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.order-confirmation__items {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.order-confirmation__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 166, 160, 0.06);
  padding: 0.9rem 1rem;
  border-radius: 14px;
}

.order-confirmation__item small {
  display: block;
  color: var(--slate);
}

.order-confirmation__actions {
  margin-top: 1rem;
}

.legal-copy {
  line-height: 1.6;
}

.legal-copy h3,
.legal-copy h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.55rem;
}

.legal-copy p {
  margin: 0 0 0.8rem;
  color: var(--slate);
}

.legal-copy ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
  color: var(--slate);
}

.legal-copy li {
  margin-bottom: 0.35rem;
}

.legal-terms { max-width: 960px; margin-inline: auto; }
.legal-terms__header { margin-bottom: 2rem; }
.legal-terms__header h1 { margin: 0 0 0.75rem; font-size: 2rem; line-height: 1.2; }
.legal-terms__header p { color: var(--slate); line-height: 1.6; }
.legal-terms__version { font-size: 0.875rem; }
.legal-terms .legal-copy h2 { margin: 2rem 0 0.85rem; font-size: 1.4rem; line-height: 1.35; }
.legal-terms .legal-copy h3 { font-size: 1.05rem; line-height: 1.45; }
.legal-terms .legal-copy a { color: var(--teal-dark); text-decoration: underline; overflow-wrap: anywhere; }
.legal-terms #cancelaciones-devoluciones { scroll-margin-top: 120px; }

@media (max-width: 600px) {
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .legal-terms__header h1 { font-size: 1.65rem; }
  .checkout { padding: 1.5rem 1rem 2rem; gap: 1.5rem; }
  .checkout__panel { padding: 1.25rem; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-bar {
    position: relative;
    gap: 1rem;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(15, 47, 45, 0.12);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.8rem;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 1300;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 0.45rem 0.25rem;
    font-weight: 700;
  }
  .nav-actions {
    margin-left: auto;
  }
  .hero__search {
    flex-direction: column;
    border-radius: 20px;
  }
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__search button {
    width: 100%;
  }
  .split {
    margin: 0 5vw 3rem;
  }
  .checkout {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-side-image {
    min-height: 220px;
  }
}
