/* =========================================================
   Garten Barber Club — Landing page
   Design tokens sourced from the official brand book
   (Garten Barberclub Brand Book, V1.0 Oct 2023).
   Theme is locked to light / natural tones only: the brand
   book explicitly states the identity avoids black and dark,
   opaque colors, so no dark-mode variant is offered here.
   ========================================================= */

@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JF Bergins";
  src: url("../fonts/JFBergins-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JF Bergins SemiCondensed";
  src: url("../fonts/JFBergins-SemiCondensed.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Brand primaries (always present, 60/30/10 base) */
  --verde-pino: #436718;
  --verde-pino-dark: #32500f;
  --crema-almendra: #f0e6d0;

  /* Brand secondaries (max 2 in use at once) */
  --nuez: #b08243;
  --naranja-calabaza: #d88219;

  /* Neutrals derived from the cream, not brand swatches */
  --paper: #faf6ec;
  --paper-alt: #f0e6d0;
  --ink: #33321f;
  --ink-muted: #5c5a44;
  --hairline: rgba(67, 103, 24, 0.16);

  /* Shape system: soft radius for containers, pill for interactive */
  --radius-panel: 24px;
  --radius-panel-inner: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 24px 48px -24px rgba(51, 50, 31, 0.28);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --max-w: 1240px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Onest", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: "JF Bergins", "Onest", sans-serif;
  font-weight: 400;
  margin: 0;
  color: var(--verde-pino);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JF Bergins SemiCondensed", "Onest", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease-soft), background-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--verde-pino);
  color: var(--crema-almendra);
}

.btn-primary:hover {
  background: var(--verde-pino-dark);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--verde-pino);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  border-color: var(--verde-pino);
  background: rgba(67, 103, 24, 0.06);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(240, 230, 208, 0.7);
  flex-shrink: 0;
}

.btn-primary .btn-icon {
  background: rgba(240, 230, 208, 0.22);
}

.btn-icon svg {
  width: 14px;
  height: 14px;
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
}

.nav {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  background: rgba(250, 246, 236, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px -20px rgba(51, 50, 31, 0.35);
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 32px;
}

.nav-logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-links a {
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--naranja-calabaza);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-soft);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--verde-pino);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle .icon-line {
  transition: transform 0.35s var(--ease-soft), opacity 0.35s var(--ease-soft);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .icon-line--top {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .icon-line--mid {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .icon-line--bottom {
  transform: translateY(-5px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(250, 246, 236, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-soft);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: "JF Bergins", sans-serif;
  font-size: 1.8rem;
  color: var(--verde-pino);
  text-decoration: none;
  padding: 10px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft);
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.26s; }

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* ---------- Section rhythm ---------- */
section {
  padding-block: 64px;
}

@media (min-width: 900px) {
  section {
    padding-block: 100px;
  }
}

#ubicacion,
.cta-band-section {
  padding-block: 48px;
}

@media (min-width: 900px) {
  #ubicacion,
  .cta-band-section {
    padding-block: 72px;
  }
}

.eyebrow {
  display: inline-block;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 72px;
  padding-bottom: 56px;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 88px;
  }
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.9rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-copy p {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  color: var(--verde-pino);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease-soft);
}

.hero-secondary-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-secondary-link:hover {
  border-color: var(--verde-pino);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--paper-alt);
  padding: 10px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-panel-inner);
}

.hero-media-badge {
  position: absolute;
  left: 26px;
  bottom: 26px;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-panel-inner);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  max-width: 220px;
}

.hero-media-badge strong {
  display: block;
  font-family: "JF Bergins", sans-serif;
  font-size: 1.5rem;
  color: var(--verde-pino);
}

.hero-media-badge span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------- Trust strip ---------- */
.trust {
  padding-block: 48px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.trust-row {
  display: grid;
  gap: 32px;
}

@media (min-width: 700px) {
  .trust-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .trust-item {
    padding-inline: 32px;
    border-left: 1px solid var(--hairline);
  }
  .trust-item:first-child {
    border-left: none;
    padding-left: 0;
  }
}

.trust-item strong {
  display: block;
  font-family: "JF Bergins", sans-serif;
  font-size: 1.7rem;
  color: var(--verde-pino);
  margin-bottom: 4px;
}

.trust-item span {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* ---------- UVP / story ---------- */
.story {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.story h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 20px;
}

.story p {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 58ch;
  margin-inline: auto;
}

.story-media {
  margin-top: 48px;
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--paper-alt);
  padding: 10px;
}

.story-media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-panel-inner);
}

/* ---------- Servicios bento ---------- */
.services-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.services-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(220px, auto));
  }
  .bento-tile--corte {
    grid-column: span 7;
    grid-row: span 2;
  }
  .bento-tile--manicure {
    grid-column: span 5;
    grid-row: span 1;
  }
  .bento-tile--rostro {
    grid-column: span 5;
    grid-row: span 1;
  }
  .bento-tile--productos {
    grid-column: 8 / span 5;
    grid-row: 2;
  }
}

.bento-tile {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

.bento-tile--flat {
  padding: 28px;
}

.bento-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Text sits in a solid "contenedor" per the brand book (no gradients allowed,
   no black/dark-opaque tones per brand personality: use the brand's own
   verde pino, never an invented near-black neutral) */
.bento-tile--photo > div {
  width: 100%;
  background: rgba(50, 80, 15, 0.93);
  padding: 20px 26px;
}

.bento-tile--photo h3,
.bento-tile--photo p {
  color: var(--crema-almendra);
}

.bento-tile--flat {
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  background: var(--paper-alt);
}

.bento-tile h3 {
  font-family: "JF Bergins", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.bento-tile--flat h3 {
  color: var(--verde-pino);
}

.bento-tile--flat p {
  color: var(--ink-muted);
}

.bento-tile p {
  font-size: 0.94rem;
  max-width: 34ch;
}

/* ---------- Ubicación ---------- */
.location-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }
}

.location-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}

.location-copy p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 44ch;
  margin-bottom: 28px;
}

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

.btn-map {
  display: inline-flex;
  align-items: center;
  font-family: "Onest", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  color: var(--verde-pino);
  text-decoration: none;
  min-height: 44px;
  transition: border-color 0.3s var(--ease-soft), background-color 0.3s var(--ease-soft);
}

.btn-map:hover {
  border-color: var(--verde-pino);
  background: rgba(67, 103, 24, 0.06);
}

.location-map {
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--paper-alt);
  padding: 10px;
}

.location-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius-panel-inner);
  display: block;
}

@media (min-width: 900px) {
  .location-map iframe {
    height: 420px;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--paper-alt);
  border-radius: var(--radius-panel);
  margin-inline: 20px;
  padding: 48px 32px;
  text-align: center;
}

@media (min-width: 900px) {
  .cta-band {
    margin-inline: 40px;
    padding: 72px 32px;
  }
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.cta-band .btn {
  font-size: 1.05rem;
  padding: 16px 30px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--verde-pino);
  color: var(--crema-almendra);
  padding-block: 72px 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

.footer-logo {
  height: 40px;
  margin-bottom: 18px;
}

.footer-claim {
  font-family: "JF Bergins", sans-serif;
  font-size: 1.3rem;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 230, 208, 0.7);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  text-decoration: none;
  color: var(--crema-almendra);
  font-size: 0.96rem;
  margin-bottom: 10px;
  opacity: 0.92;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(240, 230, 208, 0.35);
  margin: 0;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(240, 230, 208, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-pino);
  color: var(--crema-almendra);
  border: 3px solid var(--crema-almendra);
  box-shadow: 0 10px 24px rgba(50, 80, 15, 0.45);
  transition: transform 0.3s var(--ease-soft), background-color 0.3s var(--ease-soft);
}

.whatsapp-fab:hover {
  background: var(--verde-pino-dark);
  transform: translateY(-2px);
}

.whatsapp-fab:active {
  transform: scale(0.96);
}

.whatsapp-fab svg {
  width: 26px;
  height: 26px;
}

@media (min-width: 800px) {
  .whatsapp-fab {
    right: 32px;
    bottom: 32px;
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .nav-toggle .icon-line, .mobile-menu, .mobile-menu a {
    transition: none !important;
  }
}
