/* =====================================================================
   Thomas Alonso Barbería
   Paleta tomada del logo: negro + oro rosa. El sitio es oscuro a propósito
   (es la identidad de la marca), por eso no hay modo claro.
   Formas: botones y chips = pastilla, tarjetas = 16px, campos = 10px.
   ===================================================================== */

:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --bg-raise: #111113;
  --surface: #161619;
  --surface-2: #1d1d21;
  --surface-3: #26262b;
  --line: rgba(241, 236, 232, 0.09);
  --line-2: rgba(241, 236, 232, 0.17);
  --text: #f1ece8;
  --text-2: #bfb7b1;
  --text-3: #918a85;
  --accent: #d9a38b;
  --accent-hi: #ebc2ae;
  --accent-lo: #a96f58;
  --accent-ink: #1b120e;
  --accent-soft: rgba(217, 163, 139, 0.12);
  --accent-line: rgba(217, 163, 139, 0.45);
  --danger: #ef9a8a;

  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --nav-h: 60px;

  /* capas */
  --z-nav: 20;
  --z-menu: 30;
  --z-dialog: 40;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

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

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- tipografía */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.h2 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.02;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.lead {
  color: var(--text-2);
  max-width: 54ch;
  margin: 1.25rem 0 0;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- botones */

.btn {
  --h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: var(--h);
  padding: 0 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 0.97rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn i {
  font-size: 1.15em;
}

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

.btn-primary:hover {
  background: var(--accent-hi);
}

.btn-primary:hover .ph-arrow-right {
  transform: translateX(3px);
}

.btn .ph-arrow-right {
  transition: transform 0.25s var(--ease);
}

.btn-ghost {
  background: rgba(241, 236, 232, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(241, 236, 232, 0.09);
  border-color: rgba(241, 236, 232, 0.28);
}

.btn-sm {
  --h: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.btn.is-loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}

.btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent-ink);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

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

/* ---------------------------------------------------------------- navegación */

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  pointer-events: none;
}

.nav-bar {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter), 1100px);
  height: var(--nav-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 10px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(17, 17, 19, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-solid .nav-bar {
  background: rgba(17, 17, 19, 0.92);
  border-color: var(--line-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(241, 236, 232, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
}

.nav-menu {
  pointer-events: auto;
  display: none;
  width: min(100% - 2 * var(--gutter), 1100px);
  margin: 8px auto 0;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(17, 17, 19, 0.97);
}

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 1.05rem;
}

.nav-menu a + a {
  border-top: 1px solid var(--line);
}

.nav.is-open .nav-menu {
  display: block;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-media img {
  object-position: 60% 50%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 12, 13, 0.94) 0%, rgba(12, 12, 13, 0.72) 42%, rgba(12, 12, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 12, 13, 0.35) 0%, transparent 30%, transparent 62%, var(--bg) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: calc(var(--nav-h) + 76px);
  padding-bottom: clamp(40px, 7vh, 72px);
}

.hero h1 {
  font-size: clamp(3.4rem, 8.4vw, 7.4rem);
  line-height: 0.96;
  max-width: 11ch;
}

.hero h1 em {
  display: inline-block;
  padding-bottom: 0.04em;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.hero-sub {
  color: var(--text-2);
  font-size: 1.15rem;
  max-width: 40ch;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn-ghost {
  background: rgba(12, 12, 13, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-emblem {
  width: clamp(140px, 13vw, 184px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

@media (max-width: 760px) {
  .hero-inner {
    justify-content: flex-end;
    padding-top: calc(var(--nav-h) + 56px);
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(12, 12, 13, 0.45) 0%, rgba(12, 12, 13, 0.7) 45%, var(--bg) 100%);
  }
  .hero-bottom {
    grid-template-columns: 1fr;
  }
  .hero-emblem {
    display: none;
  }
  .hero-ctas .btn {
    flex: 1 1 auto;
  }
}

/* ---------------------------------------------------------------- horarios */

.facts {
  border-block: 1px solid var(--line);
  background: var(--bg-raise);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
  padding: 30px 28px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
}

.fact span {
  color: var(--text-3);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fact {
    padding: 22px 16px;
  }
  .fact:nth-child(3) {
    border-left: 0;
  }
  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------------------------------------------------------------- secciones */

.section {
  padding-block: clamp(80px, 11vw, 136px);
}

/* servicios */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.services-media {
  position: sticky;
  top: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}

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

.service-list {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.service h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.service p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 0.98rem;
}

.service-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.88rem;
}

.service-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.service-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-media {
    position: relative;
    top: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  .service {
    grid-template-columns: 1fr;
  }
  .service-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* trabajos */
.work-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(200px, 22vw, 300px));
  grid-template-areas:
    'a a b b c'
    'a a d e e';
  gap: 12px;
}

.bento figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.bento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.bento figure:hover img {
  transform: scale(1.035);
}

.bento .a { grid-area: a; }
.bento .b { grid-area: b; }
.bento .c { grid-area: c; }
.bento .d { grid-area: d; }
.bento .e { grid-area: e; }

.work-foot {
  margin-top: 28px;
}

@media (max-width: 760px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 300px repeat(2, 180px);
    grid-template-areas:
      'a a'
      'b c'
      'd e';
  }
}

/* reservas */
.booking-section {
  background: var(--bg-raise);
  border-block: 1px solid var(--line);
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.booking-intro {
  position: sticky;
  top: 110px;
}

.perks {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.perks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-2);
}

.perks i {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
}

.perks strong {
  display: block;
  color: var(--text);
  font-weight: 500;
}

.booking-manage {
  margin-top: 32px;
  color: var(--text-3);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .booking-intro {
    position: static;
  }
  /* En el celular el turnero va primero: los beneficios ya se explican en el resto del sitio. */
  .booking-intro .perks {
    display: none;
  }
  .booking-manage {
    margin-top: 16px;
  }
}

/* ubicación */
.location {
  position: relative;
  padding-block: clamp(80px, 11vw, 136px);
}

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 40%, rgba(217, 163, 139, 0.08), transparent 55%),
    var(--surface);
  height: clamp(440px, 52vw, 560px);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.88) brightness(0.95);
}

.location-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(420px, calc(100% - 48px));
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(17, 17, 19, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.location-card dl {
  margin: 22px 0 26px;
  display: grid;
  gap: 14px;
}

.location-card dt {
  font-size: 0.85rem;
  color: var(--text-3);
}

.location-card dd {
  margin: 2px 0 0;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .map-wrap {
    height: 300px;
  }
  .location-card {
    position: static;
    width: 100%;
    margin-top: 12px;
    padding: 24px 20px;
  }
}

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line);
  padding-top: 64px;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-3);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--text-2);
}

.footer a {
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0;
  color: var(--text-3);
  max-width: 30ch;
}

.footer-word {
  margin: 56px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 13.2vw, 12.5rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 163, 139, 0.32);
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------- movimiento */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .hero [data-enter] {
    animation: enter 1.1s var(--ease) both;
    animation-delay: calc(120ms + var(--d, 0) * 110ms);
  }
  .hero-media img {
    animation: settle 2.4s var(--ease) both;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes settle {
  from {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
