:root {
  --color-hueso: #F7F3EE;
  --color-arena: #D7C1A7;
  --color-cafe: #533C2C;
  --color-grafito: #2B2623;
  --color-azul: #1E2F42;
  --color-arcilla: #A56150;
  --color-superficie: #FFFFFF;
  --shadow-primary: 0 12px 26px rgba(30, 47, 66, .18);
  --shadow-card: 0 8px 22px rgba(43, 38, 35, .06);
  --radius-card: 20px;
  --font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-hueso);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-hueso);
  color: var(--color-grafito);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
}

body::selection {
  background: rgba(215, 193, 167, .7);
  color: var(--color-cafe);
}

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

img,
svg {
  display: block;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 16px 18px calc(28px + env(safe-area-inset-bottom));
}

.hero {
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(132px, 42vw);
  margin: 0 auto 10px;
}

.brand img {
  width: 100%;
  height: auto;
}

.hero h1 {
  margin: 0;
  color: var(--color-cafe);
  font-size: clamp(13px, 4.2vw, 19px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  white-space: nowrap;
}

.hero__text {
  max-width: 380px;
  margin: 7px auto 0;
  color: rgba(43, 38, 35, .76);
  font-size: clamp(14.8px, 3.9vw, 16px);
  font-weight: 400;
  line-height: 1.32;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(83, 60, 44, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .56);
  color: rgba(83, 60, 44, .86);
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.chip--active {
  background: var(--color-cafe);
  border-color: var(--color-cafe);
  color: #fff;
}

.chip[data-chip-tone="business"].chip--active {
  background: var(--color-azul);
  border-color: var(--color-azul);
}

.chip[data-chip-tone="home"].chip--active {
  background: var(--color-arcilla);
  border-color: var(--color-arcilla);
}

.link-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}

.link-group {
  display: grid;
  gap: 10px;
  scroll-margin-top: 24px;
}

.link-group__title {
  margin: 0 0 1px;
  color: rgba(83, 60, 44, .72);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-align: left;
}

#personalizacion {
  scroll-margin-top: 24px;
}

button.link-card {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.link-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 72px;
  padding: 13px 14px;
  overflow: hidden;
  border-radius: var(--radius-card);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--card-accent, rgba(83, 60, 44, .18));
  opacity: .88;
}

.link-card:active {
  transform: scale(.988);
}

.link-card:focus-visible {
  outline: 3px solid rgba(30, 47, 66, .26);
  outline-offset: 3px;
}

.link-card--primary {
  min-height: 82px;
  border: 0;
  background: var(--color-azul);
  color: var(--color-superficie);
  box-shadow: var(--shadow-primary);
}

.link-card--primary::before {
  display: none;
}

.link-card--secondary {
  border: 1px solid rgba(83, 60, 44, .14);
  background: rgba(255, 255, 255, .82);
  color: var(--color-cafe);
  box-shadow: var(--shadow-card);
}

.link-card--business {
  --card-accent: var(--color-azul);
}

.link-card--design {
  --card-accent: var(--color-cafe);
}

.link-card--fabrics {
  --card-accent: var(--color-arena);
}

.link-card--home {
  --card-accent: var(--color-arcilla);
}

.link-card--whatsapp {
  --card-accent: rgba(83, 60, 44, .54);
}

.link-card--whatsapp-catalog {
  --card-accent: var(--color-arena);
  min-height: 98px;
  border-color: #E7DED4;
  border-radius: 24px;
}

.link-card--advisor {
  --card-accent: rgba(83, 60, 44, .62);
  min-height: 88px;
  border-color: #E7DED4;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(43, 38, 35, .045);
}

.link-card--promos {
  --card-accent: var(--color-arena);
}

.link-card--visit {
  --card-accent: rgba(83, 60, 44, .44);
}

.link-card__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: currentColor;
  background: rgba(83, 60, 44, .06);
}

.link-card--primary .link-card__icon {
  background: rgba(255, 255, 255, .08);
}

.link-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.link-card__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.link-card__title {
  color: currentColor;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.18;
}

.link-card__desc {
  color: rgba(43, 38, 35, .66);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.28;
}

.link-card--primary .link-card__desc {
  color: rgba(255, 255, 255, .78);
}

.link-card__arrow {
  justify-self: end;
  color: currentColor;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  opacity: .72;
}

.promo-link {
  margin-top: 16px;
  text-align: center;
}

.promo-link p {
  margin: 0;
  color: rgba(43, 38, 35, .66);
  font-size: 14px;
  line-height: 1.5;
}

.promo-link a {
  color: var(--color-cafe);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.is-sheet-open {
  overflow: hidden;
}

.advisor-sheet[hidden] {
  display: none;
}

.advisor-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.advisor-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
}

.advisor-sheet__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 82vh;
  padding: 18px 24px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 30px 30px 0 0;
  background: var(--color-hueso);
  box-shadow: 0 -18px 40px rgba(43, 38, 35, .18);
  animation: sheet-enter 180ms ease both;
}

.advisor-sheet__close {
  position: absolute;
  top: 14px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(83, 60, 44, .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .74);
  color: var(--color-cafe);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.advisor-sheet__handle {
  display: block;
  width: 42px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(83, 60, 44, .24);
}

.advisor-sheet h2 {
  margin: 0;
  color: var(--color-cafe);
  font-size: clamp(22px, 5.8vw, 24px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.advisor-sheet__intro {
  margin: 8px 0 19px;
  color: rgba(43, 38, 35, .7);
  font-size: 14.5px;
  line-height: 1.45;
}

.advisor-options {
  display: grid;
  gap: 11px;
}

.advisor-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #E7DED4;
  border-radius: 19px;
  background: #fff;
  color: var(--color-cafe);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.advisor-option__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(83, 60, 44, .06);
  color: var(--option-accent, var(--color-cafe));
}

.advisor-option__icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.advisor-option--business {
  --option-accent: var(--color-azul);
  border-color: rgba(30, 47, 66, .24);
  box-shadow: 0 8px 22px rgba(30, 47, 66, .08);
}

.advisor-option--business .advisor-option__icon {
  background: rgba(30, 47, 66, .08);
}

.advisor-option--home {
  --option-accent: var(--color-arcilla);
}

.advisor-option--design {
  --option-accent: var(--color-cafe);
}

.advisor-option--visit {
  --option-accent: var(--color-arena);
}

.advisor-option--quick {
  --option-accent: #6C625B;
}

.advisor-option__copy {
  display: grid;
  gap: 3px;
}

.advisor-option__copy span {
  color: var(--color-cafe);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.18;
}

.advisor-option__copy small {
  color: rgba(43, 38, 35, .66);
  font-size: 12.4px;
  line-height: 1.25;
}

.advisor-option__arrow {
  justify-self: end;
  font-size: 17px;
  opacity: .68;
}

.advisor-sheet__microcopy {
  margin: 16px 0 0;
  color: rgba(43, 38, 35, .58);
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}

@keyframes sheet-enter {
  from {
    transform: translateY(12px);
    opacity: .85;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(83, 60, 44, .12);
  text-align: center;
}

.footer p {
  margin: 0;
  color: rgba(43, 38, 35, .64);
  font-size: 11.8px;
  font-weight: 400;
  line-height: 1.55;
}

.social {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 13px;
}

.social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(83, 60, 44, .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--color-cafe);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.social a:active {
  transform: scale(.94);
}

.social a:focus-visible {
  outline: 3px solid rgba(30, 47, 66, .24);
  outline-offset: 3px;
}

.social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.social [href*="facebook"] svg,
.social [data-cta-id="social-facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.advisor-option:active {
  transform: scale(.988);
}

.advisor-option:focus-visible,
.advisor-sheet__close:focus-visible {
  outline: 3px solid rgba(30, 47, 66, .24);
  outline-offset: 3px;
}

.link-card,
.hero,
.promo-link,
.footer {
  animation: soft-enter 180ms ease both;
}

.link-card:nth-child(1) { animation-delay: 10ms; }
.link-card:nth-child(2) { animation-delay: 20ms; }
.link-card:nth-child(3) { animation-delay: 30ms; }
.link-card:nth-child(4) { animation-delay: 40ms; }
.link-card:nth-child(5) { animation-delay: 50ms; }
.link-card:nth-child(6) { animation-delay: 60ms; }
.link-card:nth-child(7) { animation-delay: 70ms; }

@keyframes soft-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .link-card:hover {
    transform: translateY(-1px);
  }

  .link-card--secondary:hover {
    border-color: rgba(83, 60, 44, .22);
    box-shadow: 0 10px 26px rgba(43, 38, 35, .08);
  }

  .link-card--primary:hover {
    box-shadow: 0 14px 30px rgba(30, 47, 66, .2);
  }

  .social a:hover {
    background: rgba(255, 255, 255, .9);
    border-color: rgba(83, 60, 44, .22);
  }
}

@media (min-width: 560px) {
  .advisor-sheet {
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .advisor-sheet__panel {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(440px, 100%);
    max-height: min(82vh, 720px);
    border-radius: 30px;
  }
}

@media (max-width: 374px) {
  .page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .link-card {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 9px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .link-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .link-card__title {
    font-size: 15px;
  }

  .link-card__desc {
    font-size: 12px;
  }
}

@media (min-width: 560px) {
  body {
    display: flex;
    justify-content: center;
  }

  .page {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
