/* ====== Tokens ====== */
:root{
  --bg-dark:#14100c;
  --bg-dark-2:#1c1611;
  --bg-dark-3:#241c15;
  --bg-light:#f3efe7;
  --bg-light-2:#eae4d7;
  --text-cream:#f4efe4;
  --text-cream-dim:#c9bfae;
  --text-ink:#1c1712;
  --text-ink-dim:#6b6255;
  --accent:#c69a5d;
  --accent-deep:#a97f45;
  --accent-pale:#e6c793;
  --line-dark:#332a21;
  --line-light:#ddd4c1;

  --avail-green:#4caf6e;
  --avail-yellow:#d9a934;
  --avail-red:#d9534f;

  --font-display:"Oswald", sans-serif;
  --font-body:"Inter", sans-serif;
  --font-script:"Cormorant Garamond", serif;

  --radius-sm:3px;
  --radius-md:6px;
  --ease:cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg-light);
  color:var(--text-ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;}
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}
@media(max-width:640px){ .wrap{padding:0 20px;} }

::selection{background:var(--accent);color:var(--bg-dark);}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}

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

.noise-overlay{
  position:fixed;inset:0;pointer-events:none;z-index:9999;
  opacity:.025;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ====== Pantalla de carga ====== */
.loading-screen{
  position:fixed;inset:0;z-index:9998;
  background:var(--bg-dark);
  display:flex;align-items:center;justify-content:center;
  transition:opacity .5s var(--ease), visibility .5s var(--ease);
}
.loading-screen.is-hidden{opacity:0;visibility:hidden;pointer-events:none;}
.loading-mark{color:var(--accent);animation:loadingPulse 1.1s ease-in-out infinite;}
.loading-mark--neutral{
  width:12px;height:12px;border-radius:50%;
  background:#8a8a8a;display:block;
  animation:loadingPulse 1.1s ease-in-out infinite;
}
.loading-logo{width:96px;height:96px;border-radius:50%;object-fit:cover;animation:loadingPulse 1.1s ease-in-out infinite;}
@keyframes loadingPulse{
  0%,100%{opacity:.35;transform:scale(.92);}
  50%{opacity:1;transform:scale(1);}
}

/* ====== Skeleton (mientras cargan los datos) ====== */
.skeleton{
  color:transparent !important;
  border-radius:4px;
  background:linear-gradient(90deg, rgba(244,239,228,.06) 25%, rgba(244,239,228,.16) 37%, rgba(244,239,228,.06) 63%);
  background-size:400% 100%;
  animation:shimmer 1.6s ease infinite;
  display:inline-block;
}
.skeleton-text{min-width:120px;}
@keyframes shimmer{
  0%{background-position:100% 50%;}
  100%{background-position:0 50%;}
}

/* ====== Scroll reveal ====== */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay:var(--d, 0ms);
}
.reveal--left{transform:translateX(-28px);}
.reveal--right{transform:translateX(28px);}
.reveal.is-visible{opacity:1;transform:none;}

/* ====== Entrada del hero ====== */
.hero-copy > *{
  opacity:0;
  transform:translateY(18px);
  animation:heroIn .7s var(--ease) forwards;
}
.hero-copy > .eyebrow{animation-delay:.15s;}
.hero-copy > h1{animation-delay:.28s;}
.hero-copy > .hero-lead{animation-delay:.44s;}
.hero-copy > .hero-actions{animation-delay:.58s;}
.hero-copy > .hero-trust{animation-delay:.7s;}
.hero-visual{
  opacity:0;
  transform:translateY(18px) scale(.97);
  animation:heroIn .8s var(--ease) forwards;
  animation-delay:.3s;
}
@keyframes heroIn{
  to{opacity:1;transform:none;}
}

/* ====== Dibujo de las ilustraciones SVG ====== */
.svg-draw-path{
  transition:stroke-dashoffset 1.6s var(--ease);
}

/* ====== Buttons ====== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:15px 30px;
  font-family:var(--font-display);
  font-size:.82rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  border-radius:var(--radius-sm);
  border:1px solid transparent;
  transition:transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-gold{background:var(--accent);color:var(--bg-dark);}
.btn-gold:hover{background:var(--accent-pale);transform:translateY(-1px);}
.btn-ghost{border-color:rgba(244,239,228,.35);color:var(--text-cream);}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent);}
.btn-ghost--light{border-color:rgba(28,23,18,.3);color:var(--text-ink);}
.btn-ghost--light:hover{border-color:var(--accent-deep);color:var(--accent-deep);}
.btn-sm{padding:11px 20px;font-size:.72rem;}
.btn-block{width:100%;}
.btn:disabled{opacity:.4;cursor:not-allowed;transform:none;}

/* ====== Header ====== */
.site-header{
  position:sticky;top:0;z-index:500;
  background:var(--bg-dark);
  border-bottom:1px solid var(--line-dark);
}
.header-inner{
  display:flex;align-items:center;gap:28px;
  height:78px;
}
.brand{display:flex;align-items:center;gap:10px;color:var(--accent);}
.brand-mark{color:var(--accent);display:flex;width:30px;height:30px;}
.brand-logo{width:30px;height:30px;border-radius:50%;object-fit:cover;}
.brand-text{
  font-family:var(--font-display);
  font-size:1.15rem;
  letter-spacing:.14em;
  color:var(--text-cream);
  line-height:1.1;
  display:flex;flex-direction:column;
}
.brand-text small{
  font-family:var(--font-body);
  font-size:.6rem;
  letter-spacing:.08em;
  color:var(--accent);
  text-transform:none;
  font-weight:500;
}
.main-nav{
  display:flex;gap:30px;margin-left:auto;
}
.main-nav a{
  font-family:var(--font-display);
  font-size:.8rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-cream-dim);
  position:relative;
  padding:4px 0;
  transition:color .2s var(--ease);
}
.main-nav a:hover{color:var(--accent);}
.header-cta{flex-shrink:0;}
.nav-toggle{
  display:none;flex-direction:column;gap:5px;
  background:none;border:none;padding:8px;margin-left:8px;
}
.nav-toggle span{width:22px;height:2px;background:var(--text-cream);}

@media(max-width:900px){
  .main-nav{
    position:fixed;inset:78px 0 0 0;
    background:var(--bg-dark);
    z-index:480;
    flex-direction:column;
    padding:30px 28px;gap:22px;
    transform:translateY(-8px);
    opacity:0;pointer-events:none;
    transition:opacity .25s var(--ease), transform .25s var(--ease);
  }
  .main-nav.is-open{opacity:1;pointer-events:auto;transform:translateY(0);}
  .main-nav a{font-size:1.1rem;}
  .header-cta{display:none;}
  .nav-toggle{display:flex;}
}

/* ====== Hero ====== */
.hero{
  position:relative;
  background:var(--bg-dark);
  color:var(--text-cream);
  overflow:hidden;
  padding:96px 0 80px;
}
.hero-stripes{
  position:absolute;inset:0;
  background:
    repeating-linear-gradient(115deg, transparent 0 140px, color-mix(in srgb, var(--accent) 5%, transparent) 140px 142px, transparent 142px 280px);
  pointer-events:none;
}
.hero.hero--photo::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--hero-photo-url);
  background-size:contain;background-position:center;background-repeat:no-repeat;
  opacity:.08;
  pointer-events:none;
}
.hero.hero--photo .hero-inner{position:relative;z-index:1;}
.hero-stripes.pattern-hex{
  background-image:
    repeating-linear-gradient(120deg, transparent 0 34px, color-mix(in srgb, var(--accent) 7%, transparent) 34px 36px, transparent 36px 70px),
    repeating-linear-gradient(60deg, transparent 0 34px, color-mix(in srgb, var(--accent) 7%, transparent) 34px 36px, transparent 36px 70px),
    repeating-linear-gradient(0deg, transparent 0 34px, color-mix(in srgb, var(--accent) 7%, transparent) 34px 36px, transparent 36px 70px);
  background-size: 60px 104px;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:60px;
  align-items:center;
}
.eyebrow{
  font-family:var(--font-display);
  color:var(--accent);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.8rem;
  margin:0 0 18px;
}
.hero h1{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.6rem, 5.2vw, 4.4rem);
  line-height:.98;
  letter-spacing:-.01em;
  text-transform:uppercase;
  margin:0 0 24px;
}
.hero h1 span{color:var(--accent);}
.hero-lead{
  max-width:440px;
  color:var(--text-cream-dim);
  font-size:1.05rem;
  margin:0 0 34px;
}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:36px;}
.hero-trust{display:flex;align-items:center;gap:12px;color:var(--text-cream-dim);font-size:.88rem;}
.stars{color:var(--accent);letter-spacing:2px;font-size:.9rem;}

.hero-visual{display:flex;justify-content:center;}
.hero-visual[hidden]{display:none;}
.visual-frame{
  position:relative;
  width:100%;max-width:340px;
  background:linear-gradient(160deg, var(--bg-dark-3), var(--bg-dark-2));
  border:1px solid var(--line-dark);
  border-radius:var(--radius-md);
  padding:20px;
}
.barber-illustration{width:100%;height:auto;color:var(--accent);}
.hero-logo-img{width:100%;height:auto;border-radius:50%;}
.illu-label{
  font-family:var(--font-display);
  font-size:9px;letter-spacing:.25em;
  fill:var(--accent);
  opacity:.7;
}
.visual-chip{
  position:absolute;left:-18px;bottom:-18px;
  background:var(--accent);color:var(--bg-dark);
  padding:14px 20px;border-radius:var(--radius-sm);
  display:flex;flex-direction:column;
  box-shadow:0 14px 30px rgba(0,0,0,.35);
}
.visual-chip strong{font-family:var(--font-display);font-size:.95rem;letter-spacing:.03em;text-transform:uppercase;}
.visual-chip span{font-size:.72rem;opacity:.75;}

@media(max-width:900px){
  .hero-inner{grid-template-columns:1fr;text-align:center;}
  .hero-lead{margin-left:auto;margin-right:auto;}
  .hero-actions{justify-content:center;}
  .hero-trust{justify-content:center;}
  .hero-visual{margin-top:20px;}
}

.hero-inner:has(.hero-visual[hidden]){grid-template-columns:1fr;max-width:680px;margin:0 auto;text-align:center;}
.hero-inner:has(.hero-visual[hidden]) .hero-lead{margin-left:auto;margin-right:auto;}
.hero-inner:has(.hero-visual[hidden]) .hero-actions{justify-content:center;}

/* ====== Section headings ====== */
.section-eyebrow{
  font-family:var(--font-display);
  color:var(--accent-deep);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.78rem;
  margin:0 0 10px;
  text-align:center;
}
.section-eyebrow--light{color:var(--accent);}
.section-title{
  font-family:var(--font-display);
  font-size:clamp(1.9rem, 3.2vw, 2.6rem);
  text-transform:uppercase;
  letter-spacing:-.01em;
  text-align:center;
  margin:0 0 54px;
  position:relative;
  padding-bottom:20px;
}
.section-title::after{
  content:"";
  position:absolute;left:50%;bottom:0;
  transform:translateX(-50%);
  width:52px;height:2px;
  background:var(--accent);
}
.section-title--light{color:var(--text-cream);}

/* ====== Services ====== */
.services{padding:100px 0;}
.services-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--line-light);
  border:1px solid var(--line-light);
}
.service-card{
  background:var(--bg-light);
  padding:38px 28px;
  text-align:center;
  position:relative;
  transition:background .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card::before{
  content:"";
  position:absolute;top:0;left:50%;
  width:0;height:2px;background:var(--accent);
  transform:translateX(-50%);
  transition:width .3s var(--ease);
}
.service-card:hover{
  background:var(--bg-light-2);
  transform:translateY(-6px);
  box-shadow:0 18px 34px rgba(28,23,18,.1);
  z-index:1;
}
.service-card:hover::before{width:100%;}
.service-icon{
  width:38px;height:38px;margin:0 auto 20px;
  color:var(--accent-deep);
}
.service-card h3{
  font-family:var(--font-display);
  font-size:1.02rem;
  text-transform:uppercase;
  letter-spacing:.03em;
  margin:0 0 10px;
}
.service-card p{
  color:var(--text-ink-dim);
  font-size:.88rem;
  margin:0 0 20px;
  min-height:44px;
}
.service-meta{
  display:flex;justify-content:space-between;align-items:baseline;
  border-top:1px solid var(--line-light);
  padding-top:14px;
  font-family:var(--font-display);
}
.service-meta span{font-size:.72rem;color:var(--text-ink-dim);font-family:var(--font-body);letter-spacing:.02em;}
.service-meta strong{color:var(--accent-deep);font-size:1.1rem;}

/* Negocios de clases: la carta de servicios es la sección más importante de la web,
   grande y con foto — sustituye a la cuadrícula fina de precios de arriba. */
.services-grid.gym-services-grid{
  display:grid;grid-template-columns:repeat(auto-fit, minmax(280px,1fr));gap:28px;
  background:none;border:none;
}
.gym-service-card{
  background:var(--bg-light);border-radius:var(--radius-md);overflow:hidden;
  box-shadow:0 18px 40px rgba(28,23,18,.14);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gym-service-card:hover{transform:translateY(-5px);box-shadow:0 26px 52px rgba(28,23,18,.18);}
.gym-service-photo{
  aspect-ratio:4/3;background-size:cover;background-position:center;background-color:var(--bg-dark-3);
  display:flex;align-items:center;justify-content:center;
}
.gym-service-photo-placeholder{
  font-family:var(--font-display);font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text-cream-dim);opacity:.65;
}
.gym-service-info{padding:22px 24px 26px;text-align:left;}
.gym-service-info h3{font-family:var(--font-display);font-size:1.35rem;margin:0 0 8px;text-transform:uppercase;letter-spacing:-.01em;}
.gym-service-instructor{font-size:.86rem;color:var(--text-ink-dim);margin:0;}
@media(max-width:520px){ .services-grid.gym-services-grid{grid-template-columns:1fr;} }

@media(max-width:900px){ .services-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:520px){ .services-grid{grid-template-columns:1fr;} }

/* ====== About ====== */
.about{background:var(--bg-dark);color:var(--text-cream);padding:100px 0;}
.about-inner{
  display:grid;grid-template-columns:.85fr 1.15fr;
  gap:64px;align-items:center;
}
.about-visual{position:relative;}
.portrait-illustration{width:100%;border-radius:var(--radius-md);border:1px solid var(--line-dark);color:var(--accent);}
.portrait-illustration rect{fill:var(--bg-dark-3);}
.about-logo{
  width:100%;aspect-ratio:5/6;object-fit:contain;padding:14%;
  border-radius:var(--radius-md);border:1px solid var(--line-dark);
  background:var(--bg-dark-3);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 30px 60px -20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.about-photo{
  width:100%;aspect-ratio:5/6;object-fit:cover;object-position:center 15%;
  border-radius:var(--radius-md);border:1px solid var(--line-dark);
  background:var(--bg-dark-3);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 30px 60px -20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.badge-experience{
  position:absolute;right:-16px;bottom:-16px;
  background:var(--accent);color:var(--bg-dark);
  width:88px;height:88px;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:0 14px 30px rgba(0,0,0,.35);
  text-align:center;line-height:1.1;
}
.badge-experience strong{font-family:var(--font-display);font-size:1.7rem;}
.badge-experience span{font-size:.62rem;letter-spacing:.03em;}

.about-copy .section-eyebrow,
.about-copy .section-title{text-align:left;}
.about-copy .section-title::after{left:0;transform:none;}
.about-copy p{color:var(--text-cream-dim);margin:0 0 16px;max-width:520px;}
.about-copy strong{color:var(--text-cream);}
.signature{
  font-family:var(--font-script);
  font-style:italic;
  font-size:2rem;
  color:var(--accent);
  margin:18px 0 34px;
}
.about-stats{display:flex;gap:40px;}
.about-stats strong{
  display:block;font-family:var(--font-display);
  font-size:1.7rem;color:var(--accent);
}
.about-stats span{font-size:.76rem;color:var(--text-cream-dim);letter-spacing:.03em;text-transform:uppercase;}

/* Profesores/monitores dentro de "Quiénes somos" (negocios de clases). */
.about-instructors-grid{
  grid-column:1/-1;
  display:grid;grid-template-columns:repeat(auto-fit, minmax(140px,1fr));gap:28px;
  margin-top:56px;padding-top:48px;border-top:1px solid var(--line-dark);
}
.instructor-card{text-align:center;}
.instructor-card-photo{
  width:104px;height:104px;margin:0 auto 14px;border-radius:50%;
  object-fit:cover;border:2px solid var(--accent);
}
.instructor-card-photo--empty{background:var(--bg-dark-3);}
.instructor-card strong{display:block;font-family:var(--font-display);font-size:.95rem;text-transform:uppercase;letter-spacing:.01em;color:var(--text-cream);}
.instructor-card span{display:block;font-size:.8rem;color:var(--text-cream-dim);margin-top:4px;}

@media(max-width:900px){
  .about-inner{grid-template-columns:1fr;}
  .about-copy .section-eyebrow,.about-copy .section-title{text-align:center;}
  .about-copy .section-title::after{left:50%;transform:translateX(-50%);}
  .about-copy p{margin-left:auto;margin-right:auto;}
  .about-stats{justify-content:center;flex-wrap:wrap;}
}

.about-inner:has(.about-visual[hidden]){grid-template-columns:1fr;max-width:680px;margin:0 auto;}
.about-inner:has(.about-visual[hidden]) .about-copy .section-eyebrow,
.about-inner:has(.about-visual[hidden]) .about-copy .section-title{text-align:center;}
.about-inner:has(.about-visual[hidden]) .about-copy .section-title::after{left:50%;transform:translateX(-50%);}
.about-inner:has(.about-visual[hidden]) .about-copy p{margin-left:auto;margin-right:auto;}
.about-inner:has(.about-visual[hidden]) .signature{text-align:center;}

/* ====== Booking ====== */
.booking{background:var(--bg-light-2);padding:100px 0;}
.booking-inner{
  display:grid;grid-template-columns:.8fr 1.2fr;
  gap:56px;align-items:flex-start;
}
.booking-intro .section-eyebrow,
.booking-intro .section-title{text-align:left;}
.booking-intro .section-title{color:var(--text-ink);}
.booking-intro .section-title::after{left:0;transform:none;}
.booking-lead{color:var(--text-ink-dim);max-width:380px;margin-bottom:26px;}
.booking-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;}
.booking-points li{display:flex;align-items:center;gap:12px;font-size:.92rem;}
.booking-points svg{width:20px;height:20px;color:var(--accent-deep);flex-shrink:0;}

.booking-widget{
  background:var(--bg-dark);
  border-radius:var(--radius-md);
  padding:36px;
  color:var(--text-cream);
  position:relative;
  border:1px solid var(--line-dark);
}
.bw-label{
  font-family:var(--font-display);
  font-size:.82rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--accent);
  margin:0 0 14px;
}
.bw-label span{color:var(--text-cream-dim);text-transform:none;font-family:var(--font-body);letter-spacing:0;font-size:.82rem;}
.bw-step{margin-bottom:30px;padding-bottom:30px;border-bottom:1px solid var(--line-dark);}
.bw-step:last-of-type{border-bottom:none;}

.service-select{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.svc-option{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  background:var(--bg-dark-2);border:1px solid var(--line-dark);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  font-size:.82rem;
  color:var(--text-cream-dim);
  transition:border-color .2s var(--ease), color .2s var(--ease);
}
.svc-option strong{color:var(--text-cream);font-weight:500;display:block;}
.svc-option em{font-style:normal;color:var(--accent);}
.svc-option:hover{border-color:color-mix(in srgb, var(--accent) 50%, transparent);}
.svc-option.is-selected{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 8%, transparent);}

.calendar-head{
  display:flex;align-items:center;justify-content:space-between;
  font-family:var(--font-display);letter-spacing:.05em;text-transform:uppercase;
  font-size:.85rem;margin-bottom:14px;
}
.cal-nav{
  background:none;border:1px solid var(--line-dark);color:var(--text-cream);
  width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;line-height:1;
  transition:border-color .2s var(--ease), color .2s var(--ease);
}
.cal-nav:hover{border-color:var(--accent);color:var(--accent);}
.cal-nav:disabled{opacity:.3;cursor:not-allowed;}
.calendar-weekdays{
  display:grid;grid-template-columns:repeat(7,1fr);
  font-size:.68rem;color:var(--text-cream-dim);
  text-align:center;margin-bottom:6px;letter-spacing:.05em;
}
.calendar-grid{
  display:grid;grid-template-columns:repeat(7,1fr);
  gap:4px;
}
.cal-day{
  aspect-ratio:1;
  display:flex;align-items:center;justify-content:center;
  background:var(--bg-dark-2);
  border:1px solid transparent;
  border-radius:50%;
  font-size:.82rem;
  color:var(--text-cream-dim);
  transition:border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.cal-day:not(:disabled):hover{border-color:var(--accent);color:var(--text-cream);}
.cal-day:disabled{opacity:.25;cursor:not-allowed;background:transparent;}
.cal-day.is-empty{visibility:hidden;}
.cal-day.avail-green{background:color-mix(in srgb, var(--avail-green) 38%, var(--bg-dark-2));}
.cal-day.avail-yellow{background:color-mix(in srgb, var(--avail-yellow) 42%, var(--bg-dark-2));}
.cal-day.avail-red{background:color-mix(in srgb, var(--avail-red) 40%, var(--bg-dark-2));}
.cal-day.is-selected{background:var(--accent);color:var(--bg-dark);font-weight:600;}
.cal-day.is-today{color:var(--accent);}

.cal-legend{
  display:flex;flex-wrap:wrap;gap:14px;
  margin-top:14px;font-size:.72rem;color:var(--text-cream-dim);
}
.cal-legend span{display:inline-flex;align-items:center;gap:6px;}
.cal-legend i{width:9px;height:9px;border-radius:50%;display:inline-block;}
.cal-legend .dot-green{background:var(--avail-green);}
.cal-legend .dot-yellow{background:var(--avail-yellow);}
.cal-legend .dot-red{background:var(--avail-red);}

.time-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.time-slot{
  background:var(--bg-dark-2);border:1px solid var(--line-dark);
  border-radius:var(--radius-sm);padding:11px 6px;
  font-size:.86rem;color:var(--text-cream-dim);
  transition:border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.time-slot:not(:disabled):hover{border-color:var(--accent);color:var(--text-cream);}
.time-slot.is-selected{background:var(--accent);color:var(--bg-dark);border-color:var(--accent);font-weight:600;}
.time-slot:disabled{opacity:.25;cursor:not-allowed;text-decoration:line-through;}
.time-slots-empty{color:var(--text-cream-dim);font-size:.86rem;grid-column:1/-1;}

.confirm-fields{display:grid;gap:12px;margin-bottom:18px;}
.confirm-fields input{
  background:var(--bg-dark-2);border:1px solid var(--line-dark);color:var(--text-cream);
  padding:13px 14px;border-radius:var(--radius-sm);font-size:.92rem;font-family:var(--font-body);
}
.confirm-fields input:focus{border-color:var(--accent);outline:none;}
.confirm-fields input:-webkit-autofill,
.confirm-fields input:-webkit-autofill:hover,
.confirm-fields input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--text-cream);
  -webkit-box-shadow:0 0 0px 1000px var(--bg-dark-2) inset;
  transition:background-color 9999s ease-in-out 0s;
  caret-color:var(--text-cream);
}
.confirm-fields input::placeholder{color:var(--text-cream-dim);}

.booking-summary{
  background:var(--bg-dark-2);border:1px dashed var(--line-dark);
  border-radius:var(--radius-sm);padding:14px 16px;margin-bottom:18px;
  font-size:.86rem;color:var(--text-cream-dim);display:none;
}
.booking-summary.is-visible{display:block;}
.booking-summary strong{color:var(--accent);}

.cs-week-nav{
  display:flex;align-items:center;justify-content:center;gap:16px;
  font-family:var(--font-display);letter-spacing:.05em;text-transform:uppercase;
  font-size:.85rem;color:var(--text-cream);margin-bottom:18px;
}
.class-schedule{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-bottom:22px;}
.cs-day-name{
  font-family:var(--font-display);text-transform:uppercase;letter-spacing:.05em;
  font-size:.74rem;color:var(--accent);margin:0 0 10px;text-align:center;line-height:1.4;
}
.cs-day-num{color:var(--text-cream-dim);font-size:.9rem;}
.cs-day-classes{display:flex;flex-direction:column;gap:8px;}
.cs-class-btn{
  display:block;width:100%;background:var(--bg-dark-2);border:1px solid var(--line-dark);
  border-radius:var(--radius-sm);padding:8px 6px;text-align:center;cursor:pointer;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.cs-class-btn:not(:disabled):hover{border-color:var(--accent);}
.cs-class-btn:disabled{opacity:.35;cursor:not-allowed;}
.cs-time{display:block;font-family:var(--font-display);color:var(--accent);font-size:.72rem;letter-spacing:.03em;}
.cs-name{display:block;font-size:.76rem;color:var(--text-cream);margin-top:2px;}
.cs-spots{display:block;font-size:.62rem;color:var(--text-cream-dim);margin-top:3px;text-transform:uppercase;letter-spacing:.03em;}
.cs-empty{font-size:.74rem;color:var(--text-cream-dim);text-align:center;opacity:.6;margin:0;}
@media(max-width:760px){
  .class-schedule{grid-template-columns:1fr 1fr;}
}
@media(max-width:480px){
  .class-schedule{grid-template-columns:1fr;}
  .cs-day-name{text-align:left;}
}

.cs-signup{background:var(--bg-dark-2);border:1px dashed var(--line-dark);border-radius:var(--radius-sm);padding:20px;margin-bottom:22px;}
.cs-signup-note{font-size:.82rem;color:var(--text-cream-dim);margin:0 0 16px;}
.cs-success{color:var(--accent);font-size:.94rem;text-align:center;margin:0;padding:6px 0;}

.cs-gate{text-align:center;padding:34px 10px;}
.cs-gate-title{
  font-family:var(--font-display);font-size:1.7rem;text-transform:uppercase;
  letter-spacing:-.01em;color:var(--text-cream);margin:0 0 10px;
}
.cs-gate-sub{color:var(--text-cream-dim);font-size:.94rem;margin:0 0 28px;}
.cs-gate .confirm-fields{display:flex;gap:10px;max-width:380px;margin:0 auto;}
.cs-gate .confirm-fields input{flex:1;min-width:0;font-size:1.05rem;padding:15px 18px;}
.cs-gate .btn{white-space:nowrap;padding:15px 24px;font-size:.86rem;}
@media(max-width:480px){
  .cs-gate .confirm-fields{flex-direction:column;}
  .cs-gate .btn{width:100%;}
}

.cs-welcome{background:var(--bg-dark-2);border:1px solid var(--line-dark);border-radius:var(--radius-sm);padding:18px 20px;margin-bottom:20px;}
.cs-welcome p{margin:0 0 10px;font-size:1rem;}
.cs-change-link{background:none;border:none;color:var(--text-cream-dim);font-size:.76rem;text-decoration:underline;cursor:pointer;padding:0;margin-left:4px;}
.bono-meter{height:8px;border-radius:5px;background:var(--bg-dark-3);overflow:hidden;margin-bottom:6px;}
.bono-meter-fill{height:100%;background:var(--accent);border-radius:5px;transition:width .3s ease;}
.bono-label{font-size:.8rem;color:var(--text-cream-dim);}
.bono-label--empty{font-style:italic;}

.cs-mine-title{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.05em;font-size:.76rem;color:var(--accent);margin:0 0 8px;}
.cs-mine-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 0;border-bottom:1px solid var(--line-dark);font-size:.84rem;color:var(--text-cream-dim);
}
.cs-mine-row:last-child{border-bottom:none;margin-bottom:16px;}

.bw-success{text-align:center;padding:20px 0;}
.success-icon{width:52px;height:52px;color:var(--accent);margin:0 auto 18px;}
.bw-success h3{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.03em;font-size:1.4rem;margin:0 0 10px;}
.bw-success p{color:var(--text-cream-dim);margin:0 0 26px;}

@media(max-width:900px){
  .booking-inner{grid-template-columns:1fr;}
  .booking-inner > *{min-width:0;}
  .booking-intro .section-eyebrow,.booking-intro .section-title{text-align:center;}
  .booking-intro .section-title::after{left:50%;transform:translateX(-50%);}
  /* En móvil vamos directos al calendario: el texto de apoyo solo añade scroll antes de lo importante. */
  .booking-lead,.booking-points{display:none;}
}
@media(max-width:480px){
  .booking-widget{padding:26px 20px;}
  .service-select{grid-template-columns:1fr;}
  .time-slots{grid-template-columns:repeat(2,1fr);}
}

/* ====== Gallery ====== */
.gallery{padding:100px 0;}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-auto-rows:160px;
  gap:14px;
}
.gallery-item{
  border-radius:var(--radius-md);
  background:linear-gradient(150deg, var(--bg-dark-3), var(--bg-dark));
  display:flex;align-items:flex-end;
  padding:16px;
  position:relative;
  overflow:hidden;
  border:1px solid var(--line-dark);
  transition:transform .4s var(--ease), border-color .4s var(--ease);
}
.gallery-item::before{
  content:"";position:absolute;inset:0;
  background:repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent) 0 10px, transparent 10px 22px);
  transition:transform .6s var(--ease);
}
.gallery-item:hover{transform:scale(1.03);border-color:color-mix(in srgb, var(--accent) 50%, transparent);}
.gallery-item:hover::before{transform:scale(1.15) rotate(2deg);}
.gallery-item span{
  position:relative;
  font-family:var(--font-display);
  color:var(--text-cream);
  font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;
  transition:transform .35s var(--ease);
}
.gallery-item:hover span{transform:translateY(-3px);}
.gallery-item img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 28%;
  transition:transform .6s var(--ease);
}
.gallery-item:hover img{transform:scale(1.06);}
.gallery-item:has(img)::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 55%);
}
.gallery-item:has(img) span{z-index:1;}
.g-tall{grid-row:span 2;}

@media(max-width:760px){
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .g-tall{grid-row:span 1;}
}

/* ====== Testimonials ====== */
.testimonials{background:var(--bg-dark);color:var(--text-cream);padding:100px 0 110px;}
.testimonials-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
}
.testimonial{
  margin:0;background:var(--bg-dark-2);
  border:1px solid var(--line-dark);
  border-radius:var(--radius-md);
  padding:30px 26px;
}
.testimonial p{color:var(--text-cream-dim);font-size:.94rem;margin:14px 0 18px;}
.testimonial cite{
  font-style:normal;font-family:var(--font-display);
  letter-spacing:.03em;text-transform:uppercase;font-size:.8rem;color:var(--accent);
}
@media(max-width:860px){ .testimonials-grid{grid-template-columns:1fr;} }

/* ====== Footer ====== */
.site-footer{background:#0f0c09;color:var(--text-cream-dim);padding:70px 0 0;}
.footer-inner{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;
  padding-bottom:50px;border-bottom:1px solid var(--line-dark);
}
.footer-brand p{font-size:.86rem;margin-top:12px;max-width:240px;}
.footer-col h4{
  font-family:var(--font-display);color:var(--text-cream);
  text-transform:uppercase;letter-spacing:.06em;font-size:.85rem;margin:0 0 16px;
}
.footer-col a,.footer-col p{display:block;font-size:.86rem;margin-bottom:10px;}
.footer-col a:hover{color:var(--accent);}
.footer-bottom{
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;
  padding:22px 28px;font-size:.78rem;
}
.footer-credit{color:var(--accent);}

@media(max-width:760px){
  .footer-inner{grid-template-columns:1fr 1fr;}
}
@media(max-width:480px){
  .footer-inner{grid-template-columns:1fr;}
}

/* ====== Estado vacío / carga / errores del panel público ====== */
.tenant-empty:not([hidden]){
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:var(--bg-dark);color:var(--text-cream);padding:40px;text-align:center;
}
.tenant-empty-inner{max-width:440px;}
.tenant-empty-inner h1{font-family:var(--font-display);text-transform:uppercase;font-size:1.4rem;margin:0 0 14px;}
.tenant-empty-inner p{color:var(--text-cream-dim);}

.form-error{
  background:rgba(198,86,63,.12);border:1px solid rgba(198,86,63,.4);
  color:#e5a08f;border-radius:var(--radius-sm);
  padding:10px 14px;font-size:.84rem;margin:-6px 0 16px;
}

.hours-row{display:flex;justify-content:space-between;gap:10px;font-size:.86rem;margin-bottom:8px;}
.hours-row span:first-child{text-transform:capitalize;}
