:root {
  --background: #fafafa;
  --foreground: #080808;
  --accent: #d1ae7d;
  --muted: #5c5c5c;
  --border: rgb(8 8 8 / 0.1);
  --card-width: 448px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
}

svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: currentColor;
}

::selection {
  background: color-mix(in oklab, var(--accent) 35%, transparent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn--accent {
  background: var(--accent);
  color: var(--background);
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  padding-bottom: 2.5rem;
}

.backdrop {
  display: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--card-width);
}

/* From 448px up: floating card over the blurred hero photo. */
@media (min-width: 448px) {
  .page {
    align-items: center;
    padding: 3rem 1.5rem;
  }

  .backdrop {
    display: block;
    position: absolute;
    inset: -40px;
    background: url("assets/hero-600.webp") center / cover;
    filter: blur(40px);
  }

  .backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.4);
  }

  .card {
    overflow: hidden;
    padding-bottom: 2rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--background);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darkens the photo behind the logo, then fades into the page background. */
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0.65),
    rgb(0 0 0 / 0.45) 60%,
    var(--background)
  );
}

.hero__brand {
  position: relative;
  /* Nudged up: the bottom of the photo fades out, so the visible dark area
     is centered higher than the box. */
  margin-top: -1.25rem;
  line-height: 0;
  animation: fade-in-up 0.6s ease-out both;
}

.hero__logo {
  display: block;
  height: 4rem;
  width: auto;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.6));
}

/* ---------- Intro ---------- */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: -0.5rem;
  padding: 0 1rem;
  text-align: center;
}

.bio {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bio span {
  display: block;
}

.lead {
  max-width: 22rem;
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

.promo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
}

.promo svg {
  color: var(--accent);
  font-size: 1rem;
}

/* ---------- Links ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 0 1rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  touch-action: manipulation;
  transition:
    border-color 0.15s,
    opacity 0.15s,
    transform 0.15s;
}

.link:hover {
  border-color: var(--accent);
}

.link:active {
  transform: scale(0.99);
}

.link__icon {
  display: flex;
  color: var(--accent);
  font-size: 1.125rem;
}

/* Icon width + gap, so the label stays visually centered. */
.link__label {
  flex: 1;
  padding-right: 2.125rem;
  text-align: center;
}

.link--highlight {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--background);
}

.link--highlight:hover {
  opacity: 0.9;
}

.link--highlight .link__icon {
  color: var(--background);
}

/* Tienda online + its WhatsApp, styled as one split button. */
.link-split {
  display: flex;
}

.link-split .link {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.link-split__side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  border: 1px solid var(--accent);
  border-left: 1px solid rgb(250 250 250 / 0.45);
  border-radius: 0 2px 2px 0;
  background: var(--accent);
  color: var(--background);
  font-size: 1.25rem;
  touch-action: manipulation;
  transition: opacity 0.15s;
}

.link-split__side:hover {
  opacity: 0.9;
}

/* Reservas / Consultas: three compact tiles per row. */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.875rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.tile:hover {
  border-color: var(--accent);
}

.tile:active {
  transform: scale(0.98);
}

.tile__icon {
  display: flex;
  color: var(--accent);
  font-size: 1.125rem;
}

.tile__sub {
  font-weight: 400;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Newsletter ---------- */

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  text-align: center;
}

.newsletter__title {
  font-size: 1rem;
  font-weight: 600;
}

.newsletter__lead,
.newsletter__consent {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.newsletter__consent {
  font-size: 0.75rem;
}

.newsletter__consent a {
  transition: color 0.15s;
}

.newsletter__consent a:hover {
  color: var(--accent);
}

.newsletter__form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.newsletter__form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgb(8 8 8 / 0.2);
  border-radius: 2px;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
}

.newsletter__form input[type="email"]::placeholder {
  color: var(--muted);
}

.newsletter__form input[type="email"]:focus {
  border-color: var(--accent);
  outline: none;
}

.newsletter__form input[aria-invalid="true"] {
  border-color: #dc2626;
}

.newsletter__error {
  color: #dc2626;
  font-size: 0.75rem;
}

.newsletter__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.newsletter__success svg {
  color: var(--accent);
  font-size: 1.25rem;
}

/* `hidden` must win over the display rules above. */
[hidden] {
  display: none !important;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.social {
  display: flex;
  gap: 1.25rem;
}

.social a {
  display: flex;
  color: var(--muted);
  font-size: 1.375rem;
  transition: color 0.15s;
}

.social a:hover {
  color: var(--accent);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer__links a {
  text-decoration: underline;
  text-decoration-color: rgb(8 8 8 / 0.25);
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.footer__links a:hover {
  color: var(--accent);
}

/* ---------- Motion ---------- */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand {
    animation: none;
  }

  .link,
  .link-split__side,
  .tile,
  .btn {
    transition: none;
  }
}
