:root {
  --color-primary: #D4AF37;
  --color-bg: #000000;
  --color-surface: #18181B;
  --color-surface-soft: #101014;
  --color-text: #FFFFFF;
  --color-muted: #C9C9C9;
  --color-border: rgba(212, 175, 55, 0.28);
  --container: min(1280px, calc(100% - 48px));
  --section-space: clamp(72px, 8vw, 128px);
  --radius-card: 16px;
  --shadow-gold: 0 22px 70px rgba(212, 175, 55, 0.14);
  --font-main: "Mendl Sans", "Google Sans Flex", "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--color-primary);
  color: var(--color-bg);
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.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;
}

.section {
  padding-block: var(--section-space);
  overflow: hidden;
}

.section__header {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 58px);
  text-align: center;
}

.section__line {
  display: block;
  width: 92px;
  height: 2px;
  margin: 18px auto;
  background: var(--color-primary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 750;
  line-height: 1.15;
}

p {
  color: var(--color-muted);
}

.hero {
  position: relative;
  min-height: 700px;
  isolation: isolate;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.68) 38%, rgba(0, 0, 0, 0.18) 100%),
    url("../images/hero/hero-fondo.png") center / cover no-repeat;
}

.hero__backdrop {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--color-bg) 100%);
}

.hero__content {
  padding-block: 96px;
}

.hero__logo {
  width: clamp(240px, 35vw, 436px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--color-text);
  font-size: clamp(1.18rem, 2.3vw, 1.72rem);
  font-weight: 500;
}

.hero__actions,
.location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  border-radius: 999px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-bg);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #E1C257;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.22);
}

.button--glass {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.button--glass:hover,
.button--glass:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

.button--outline {
  border-color: rgba(255, 255, 255, 0.54);
  background: transparent;
  color: var(--color-text);
}

.button--outline:hover,
.button--outline:focus-visible {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.08);
}

.button--small {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 0.88rem;
}

.services {
  background: linear-gradient(180deg, #000 0%, #080808 100%);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card,
.location-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.location-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-gold);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 360ms ease;
}

.service-card:hover img {
  transform: scale(1.035);
}

.service-card__body {
  min-height: 192px;
  position: relative;
  padding: 28px 28px 30px;
}

.service-card__body p {
  margin-bottom: 0;
  font-size: 1.03rem;
}

.service-card__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.service-card__head h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 1.95rem);
}

.icon-badge {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.11);
  color: var(--color-primary);
}

.icon-badge svg,
.icon-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.moments {
  background: #050505;
}

.moments__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery-item {
  grid-column: span 2;
  grid-row: span 2;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.gallery-item--banner {
  grid-column: 1 / -1;
  grid-row: span 1;
}

.gallery-item--square {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--small {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item--wide {
  grid-column: span 6;
  grid-row: span 1;
}

.gallery-item:nth-child(8),
.gallery-item:nth-child(11) {
  grid-column: span 2;
}

.gallery-item:nth-child(12),
.gallery-item:nth-child(13) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

.gallery-item:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: 1 / 2;
}

.gallery-item:nth-child(4) {
  grid-column: 5 / 7;
  grid-row: 2 / 3;
}

.gallery-item:nth-child(5) {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
}

.gallery-item:nth-child(6) {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}

.gallery-item:nth-child(7) {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
}

.gallery-item:nth-child(8) {
  grid-column: 5 / 7;
  grid-row: 3 / 4;
}

.gallery-item:nth-child(9) {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}

.gallery-item:nth-child(10) {
  grid-column: 4 / 5;
  grid-row: 4 / 5;
}

.gallery-item:nth-child(11) {
  grid-column: 5 / 7;
  grid-row: 4 / 5;
}

.gallery-item:nth-child(12) {
  grid-column: 1 / 3;
  grid-row: 5 / 7;
}

.gallery-item:nth-child(13) {
  grid-column: 3 / 5;
  grid-row: 5 / 7;
}

.gallery-item:nth-child(14) {
  grid-column: 5 / 7;
  grid-row: 5 / 7;
}

.gallery-item:nth-child(15) {
  grid-column: 1 / 7;
  grid-row: 7 / 8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-item:nth-child(1) img {
  object-position: center top;
}

.gallery-item:nth-child(3) img,
.gallery-item:nth-child(4) img,
.gallery-item:nth-child(14) img {
  object-position: center top;
}

.gallery-item:nth-child(15) img {
  object-position: center center;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.locations {
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 34%),
    #000;
}

.locations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.location-card {
  display: flex;
  min-height: 308px;
  flex-direction: column;
  padding: 24px;
}

.location-card h3 {
  color: var(--color-text);
}

.location-card p {
  margin-bottom: 14px;
}

.location-card p:nth-of-type(2) {
  margin-bottom: 24px;
  font-size: 0.93rem;
}

.location-card__actions {
  display: grid;
  margin-top: auto;
  gap: 10px;
}

.location-card__actions .button {
  width: 100%;
}

.card-line {
  display: block;
  width: 100%;
  height: 1px;
  margin: 4px 0 18px;
  background: rgba(212, 175, 55, 0.72);
}

.instagram {
  background: #080808;
}

.instagram__handles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  color: var(--color-muted);
  font-weight: 600;
}

.instagram__handles a:hover {
  color: var(--color-primary);
}

.instagram__handles span {
  color: var(--color-primary);
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.instagram__post {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.instagram__post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.instagram__post:hover img {
  transform: scale(1.04);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  padding-top: 68px;
}

.footer__content {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.footer__intro {
  text-align: left;
}

.footer__logo {
  width: 210px;
  margin-bottom: 24px;
}

.footer p {
  max-width: 520px;
  margin-bottom: 8px;
}

.footer__intro p:first-of-type {
  color: var(--color-primary);
}

.footer__branches-wrap h2 {
  margin-bottom: 20px;
  font-size: clamp(1.45rem, 2.4vw, 1.75rem);
  color: var(--color-text);
}

.footer__branches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.footer-card {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: var(--color-surface-soft);
}

.footer-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.footer-card__actions {
  display: flex;
  gap: 10px;
}

.icon-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  background: rgba(212, 175, 55, 0.14);
  color: var(--color-primary);
}

.footer__bottom {
  margin-top: 42px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom p {
  margin: 0 auto;
  font-size: 0.92rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .services__grid,
  .locations__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__content {
    grid-template-columns: minmax(260px, 0.8fr) minmax(380px, 1.2fr);
    gap: 42px;
  }

  .moments__grid {
    grid-auto-rows: 150px;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100% - 32px, 720px);
    --section-space: 72px;
    --radius-card: 14px;
  }

  .hero {
    min-height: 680px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.92) 72%, #000 100%),
      url("../images/hero/hero-fondo.png") center / cover no-repeat;
  }

  .hero__logo {
    margin-inline: auto;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .instagram__handles {
    justify-content: center;
  }

  .moments__grid {
    grid-auto-rows: 124px;
  }

  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item--banner,
  .gallery-item--wide {
    grid-column: 1 / -1;
    grid-row: span 1;
  }

  .gallery-item--square {
    grid-column: span 3;
    grid-row: span 2;
  }

  .gallery-item--small,
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(11),
  .gallery-item:nth-child(12),
  .gallery-item:nth-child(13) {
    grid-column: span 3;
    grid-row: span 1;
  }

  .instagram__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__intro,
  .footer__branches-wrap h2 {
    text-align: center;
  }

  .footer__logo {
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 640px;
  }

  .hero__content {
    padding-block: 72px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .services__grid,
  .locations__grid {
    grid-template-columns: 1fr;
  }

  .service-card__body {
    min-height: auto;
  }

  .moments__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 148px;
    gap: 12px;
  }

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--banner,
  .gallery-item--square,
  .gallery-item--small,
  .gallery-item:nth-child(n),
  .gallery-item:nth-child(8),
  .gallery-item:nth-child(11),
  .gallery-item:nth-child(12),
  .gallery-item:nth-child(13) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(3n + 1) {
    grid-row: span 2;
  }

  .instagram__grid {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  :root {
    --container: min(100% - 24px, 380px);
  }

  h2 {
    font-size: 2rem;
  }

  .hero__lead {
    font-size: 1.05rem;
  }

  .instagram__grid,
  .moments__grid {
    grid-auto-rows: 132px;
  }

  .location-card,
  .service-card__body {
    padding: 20px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
