/* ══════════════════════════════════════════════
   Dayanna Beauty Studio · Puerto de Mazarrón
   Peluquería & estética — rosa empolvado + ciruela
   ══════════════════════════════════════════════ */

:root {
  /* Fondos */
  --paper: #fbf6f4;
  --cream: #f4e9e6;
  --plum-deep: #2a1b22;
  --plum: #3a2530;

  /* Texto */
  --ink: #2a1b22;
  --ink-soft: #5d4a52;
  --muted: #8c7880;
  --on-dark: #f6ebe8;
  --on-dark-soft: #cbb4bb;

  /* Marca */
  --rose: #c98a95;
  --rose-deep: #a95f6d;
  --rose-soft: #e7c3ca;
  --blush: #f0d9db;
  --gold: #c6a05a;
  --line: #e6d3d3;
  --hair: rgba(42, 27, 34, 0.10);

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 60px);
  --section: clamp(64px, 10vw, 128px);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 26px;

  --shadow-sm: 0 2px 10px -4px rgba(42, 27, 34, 0.18);
  --shadow-md: 0 14px 40px -18px rgba(42, 27, 34, 0.30);
  --shadow-lg: 0 34px 80px -30px rgba(42, 27, 34, 0.40);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Jost', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--rose-soft); color: var(--plum-deep); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ── Tipografía ── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.5rem; }
em { font-style: italic; color: var(--rose-deep); }
p { text-wrap: pretty; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }

.section-head { max-width: 640px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head h2 { margin-bottom: 0.6rem; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.98rem;
  padding: 0.85em 1.5em; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap; line-height: 1;
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--rose-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--plum-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #fff; border-color: var(--rose); transform: translateY(-2px); }
.btn--dark { background: var(--plum-deep); color: var(--on-dark); }
.btn--dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--lg { padding: 1.02em 1.8em; font-size: 1.02rem; }
.btn--sm { padding: 0.68em 1.15em; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ═══ HEADER ═══ */
#site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s, backdrop-filter 0.4s;
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
#site-header.scrolled {
  background: rgba(251, 246, 244, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--hair);
}
/* Arriba del todo la cabecera está sobre la FOTO del hero: en tinta se perdía
   contra los espejos oscuros, así que mientras no hay fondo va en claro. */
#site-header:not(.scrolled) .brand-text,
#site-header:not(.scrolled) .nav a { color: #fff; text-shadow: 0 1px 10px rgba(20, 10, 14, 0.45); }
#site-header:not(.scrolled) .brand-text em { color: rgba(255, 255, 255, 0.75); }
#site-header:not(.scrolled) .nav a::after { background: #fff; }
#site-header:not(.scrolled) .ig-link { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
#site-header:not(.scrolled) .ig-link:hover { background: #fff; color: var(--rose-deep); }
#site-header:not(.scrolled) .burger span { background: #fff; }
/* …salvo con el menú móvil desplegado, que SÍ tiene fondo claro: ahí el blanco
   sobre blanco desaparecía. */
#site-header:not(.scrolled) .nav.open a { color: var(--ink-soft); text-shadow: none; }
#site-header:not(.scrolled) .nav.open a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--plum-deep); color: var(--rose-soft);
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600;
}
.brand-text { font-family: 'Cormorant Garamond', serif; font-size: 1.28rem; font-weight: 600; line-height: 1; color: var(--ink); display: flex; flex-direction: column; }
.brand-text em { font-family: 'Space Mono', monospace; font-style: normal; font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 1.9rem; }
.nav a { font-size: 0.95rem; color: var(--ink-soft); position: relative; transition: color 0.25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--rose-deep); transition: width 0.3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-cta { flex: none; }
.ig-link { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--rose-deep); border: 1px solid var(--line); transition: background 0.25s, color 0.25s, transform 0.25s; }
.ig-link:hover { background: var(--rose-deep); color: #fff; transform: translateY(-2px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ HERO ═══ */
/* ── Hero a sangre: la foto del salón ES el fondo ────────────
   La foto va como <img> (no background-image) para que el navegador la cargue
   con prioridad: es el LCP de la página. Encima, un velo en diagonal que oscurece
   la izquierda —donde vive el texto— y deja la derecha casi limpia. */
.hero { position: relative; padding-top: 76px; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(42, 27, 34, 0.55) 0%, rgba(42, 27, 34, 0) 22%),
    linear-gradient(0deg, rgba(42, 27, 34, 0.5) 0%, rgba(42, 27, 34, 0) 34%),
    linear-gradient(100deg, rgba(42, 27, 34, 0.88) 0%, rgba(42, 27, 34, 0.72) 34%, rgba(42, 27, 34, 0.34) 62%, rgba(42, 27, 34, 0.12) 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; align-items: center; min-height: calc(100svh - 76px); padding-block: clamp(3rem, 8vw, 5rem); }
.hero-copy { max-width: 620px; }
.hero .eyebrow { color: var(--rose-soft); }
.hero h1 { margin-bottom: 1.4rem; color: #fff; text-shadow: 0 2px 18px rgba(20, 10, 14, 0.35); }
.hero h1 em { color: var(--rose-soft); }
.hero-sub { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); margin-bottom: 2rem; max-width: 30em; text-shadow: 0 1px 12px rgba(20, 10, 14, 0.3); }
.hero-quote { margin-top: 0.9rem; color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-style: italic; text-shadow: 0 1px 10px rgba(20, 10, 14, 0.5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.8rem; }
.hero-rating { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 100px; box-shadow: var(--shadow-sm); font-size: 0.9rem; }
.hero-rating .stars { color: var(--gold); letter-spacing: 1px; }
.hero-rating .rating-num { color: var(--ink-soft); }
.hero-rating strong { color: var(--ink); }
.g-logo { display: inline-flex; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 1.5rem; font-size: 0.92rem; color: #fff; text-shadow: 0 1px 10px rgba(20, 10, 14, 0.5); }
.hero-meta li { display: flex; align-items: center; gap: 0.5em; }
/* Sobre la foto, el botón secundario en "outline claro" (el oscuro se perdía). */
.hero-cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); }
.hero-cta .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, 0.65); border-radius: 100px; display: grid; place-items: start center; padding-top: 7px; z-index: 3; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: #fff; animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ═══ TRUST STRIP ═══ */
.strip { background: var(--plum-deep); color: var(--on-dark); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.12); background-clip: content-box; }
.strip-item { background: var(--plum-deep); padding: clamp(1.6rem, 3vw, 2.6rem) 1.2rem; text-align: center; display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.strip-n { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--rose-soft); line-height: 1; }
.strip-l { font-size: 0.82rem; color: var(--on-dark-soft); max-width: 18ch; }

/* ═══ INTRO ═══ */
.intro { padding-block: var(--section); }
.intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.intro-lead h2 { margin-top: 0.4rem; }
.intro-body { display: flex; flex-direction: column; gap: 1.2rem; font-size: 1.12rem; color: var(--ink-soft); padding-top: 0.6rem; }

/* ═══ SERVICIOS ═══ */
.services { padding-block: var(--section); background: var(--cream); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); background-clip: content-box; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.svc { background: var(--paper); padding: clamp(1.7rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 0.6rem; transition: background 0.35s var(--ease); }
.svc:hover { background: #fff; }
.svc-n { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--rose); letter-spacing: 0.1em; }
.svc h3 { color: var(--ink); }
.svc p { color: var(--ink-soft); font-size: 0.98rem; }
.svc-note { text-align: center; margin-top: 2rem; color: var(--muted); font-size: 0.98rem; }

/* ═══ TRABAJOS / BENTO ═══ */
.works { padding-block: var(--section); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.tile { position: relative; border: 0; padding: 0; cursor: pointer; border-radius: var(--r-md); overflow: hidden; background-image: var(--img); background-size: cover; background-position: center; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(42, 27, 34, 0.55)); opacity: 0; transition: opacity 0.35s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile:hover::after { opacity: 1; }
.tile-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-family: 'Space Mono', monospace; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(42, 27, 34, 0.55); backdrop-filter: blur(4px); padding: 0.32em 0.7em; border-radius: 100px; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.tile:hover .tile-tag { opacity: 1; transform: translateY(0); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--tall { background-position: center 30%; }

/* ═══ ESTUDIO ═══ */
.studio { padding-block: var(--section); background: var(--plum-deep); color: var(--on-dark); }
.studio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.studio-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.studio-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.studio-copy h2 { color: var(--on-dark); margin-bottom: 1.6rem; }
.studio-copy h2 em { color: var(--rose-soft); }
.feat { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.feat li { padding-left: 1.6rem; position: relative; color: var(--on-dark-soft); font-size: 1.02rem; }
.feat li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.feat strong { color: var(--on-dark); font-weight: 500; }

/* ═══ OPINIONES ═══ */
.reviews { padding-block: var(--section); }
.reviews-score { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.rs-num { font-family: 'Cormorant Garamond', serif; font-size: 3.2rem; color: var(--ink); line-height: 1; }
.rs-stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 2px; }
.rs-src { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.rev-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; }
.rev-stars { color: var(--gold); letter-spacing: 1px; font-size: 0.95rem; }
.rev-text { color: var(--ink-soft); font-size: 1rem; font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 1.22rem; line-height: 1.4; }
.rev-author { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.rev-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--rose-deep); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 0.95rem; flex: none; }
.rev-name { font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.rev-when { font-size: 0.78rem; color: var(--muted); }

/* ═══ VISÍTANOS ═══ */
.visit { padding-block: var(--section); background: var(--cream); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit-info h2 { margin-bottom: 1.8rem; }
.info-block { margin-bottom: 1.6rem; }
.info-k { font-family: 'Space Mono', monospace; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-deep); display: block; margin-bottom: 0.4rem; }
.info-block p { color: var(--ink-soft); }
.info-block a { color: var(--rose-deep); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 500; margin-top: 0.4rem; }
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; max-width: 340px; }
.hours th { text-align: left; font-weight: 400; color: var(--ink-soft); padding: 0.32rem 0; }
.hours td { text-align: right; color: var(--ink); padding: 0.32rem 0; }
.hours tr.today th, .hours tr.today td { color: var(--rose-deep); font-weight: 600; }
.open-state { margin-top: 0.8rem; font-size: 0.92rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5em; }
.open-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-state.is-open { color: #2e7d52; }
.open-state.is-open::before { background: #34a853; box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.16); }
.open-state.is-closed { color: var(--rose-deep); }
.open-state.is-closed::before { background: var(--rose-deep); }
.visit-map { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; }
.visit-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ═══ CONTACTO ═══ */
.contact { padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-copy p { color: var(--ink-soft); margin-top: 0.8rem; font-size: 1.08rem; }
.contact-alt { margin-top: 1.6rem; }
.form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 4vw, 2.6rem); display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }
.field input, .field textarea { font-family: 'Jost', sans-serif; font-size: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); transition: border 0.25s, box-shadow 0.25s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201, 138, 149, 0.18); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); }
.check input { margin-top: 3px; accent-color: var(--rose-deep); }
.check a { color: var(--rose-deep); text-decoration: underline; }
.form-ok { color: #2e7d52; font-size: 0.92rem; font-weight: 500; }

/* ═══ FOOTER ═══ */
.footer { background: #211219; color: var(--on-dark-soft); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.brand--foot .brand-mark { background: var(--rose-deep); }
.brand--foot .brand-text { color: var(--on-dark); }
.foot-brand p { margin-top: 1rem; font-size: 0.92rem; max-width: 32ch; }
.foot-col h4 { font-family: 'Jost', sans-serif; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1rem; font-weight: 600; }
.foot-col a { display: block; font-size: 0.92rem; padding: 0.28rem 0; transition: color 0.25s; }
.foot-col a:hover { color: var(--rose-soft); }
.foot-hours { font-size: 0.92rem; line-height: 1.9; }
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); flex-wrap: wrap; }
.foot-legal { display: flex; gap: 1.4rem; }
.foot-legal a { font-size: 0.82rem; transition: color 0.25s; }
.foot-legal a:hover { color: var(--rose-soft); }
.foot-copy { font-size: 0.82rem; }

/* ═══ CALL BAR MÓVIL ═══ */
.callbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; padding: 0.6rem; gap: 0.6rem; background: rgba(251, 246, 244, 0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.callbar-btn { flex: 1; text-align: center; padding: 0.85rem; border-radius: 100px; font-weight: 500; font-size: 0.95rem; }
.callbar-btn--call { background: var(--rose-deep); color: #fff; }
.callbar-btn--map { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* ═══ LIGHTBOX ═══ */
.lightbox[hidden], .modal[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(30, 18, 24, 0.92); display: grid; place-items: center; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, 0.12); border: 0; color: #fff; cursor: pointer; border-radius: 50%; transition: background 0.25s; }
.lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.26); }

/* ═══ MODAL LEGAL ═══ */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(30, 18, 24, 0.6); display: grid; place-items: center; padding: 1.5rem; }
.modal-box { background: var(--paper); border-radius: var(--r-lg); max-width: 620px; width: 100%; max-height: 82vh; overflow-y: auto; padding: clamp(1.8rem, 4vw, 2.8rem); position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--cream); border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.modal-box h3 { margin-bottom: 1rem; }
.modal-box p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.8rem; }

/* ═══ REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
  /* Con foto de fondo el hero sigue ocupando pantalla, pero con menos aire. */
  .hero-grid { text-align: left; min-height: calc(88svh - 76px); align-content: center; padding-block: 3rem; }
  .hero-copy { max-width: none; }
  /* En vertical el velo tiene que ser de arriba abajo: el texto ya no está solo
     a la izquierda, ocupa todo el ancho. */
  .hero-scrim { background: linear-gradient(180deg, rgba(42, 27, 34, 0.72) 0%, rgba(42, 27, 34, 0.6) 45%, rgba(42, 27, 34, 0.78) 100%); }
  .hero-bg { object-position: center 38%; }
  .scroll-cue { display: none; }
  .intro-grid, .studio-grid, .visit-grid, .contact-grid { grid-template-columns: 1fr; }
  .studio-media { max-width: 420px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .tile--wide { grid-column: span 2; }
  .tile--tall { grid-row: span 1; }
}

@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav.open { display: flex; position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: var(--paper); padding: 1.5rem var(--pad) 2rem; gap: 0.3rem; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line); }
  .nav.open a { padding: 0.7rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--hair); }
  .burger { display: flex; }
  .callbar { display: flex; }
  body { padding-bottom: 70px; }
  .foot-bar { flex-direction: column; text-align: center; }
}

@media (max-width: 460px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── El espacio (fotos reales del salón) ── */
.space { padding-block: var(--section); background: var(--cream, #faf5f2); }
/* Quedan 4 fotos (la de peluquería es ahora la del hero y no se repite aquí),
   así que una rejilla 2×2 las cuadra sin dejar huecos. */
.space-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; gap: 14px; margin-top: 2rem; }
.space .tile { width: 100%; height: 100%; }
@media (max-width: 760px) {
  .space-grid { grid-auto-rows: 220px; }
}
@media (max-width: 480px) {
  .space-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESERVA ONLINE — configurador propio (reserva.js), no el widget.
   Va en el DOM de la página (no shadow DOM) para poder maquetarlo:
   con ~100 servicios, una sola columna se hacía interminable.
   ═══════════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.rsv {
  max-width: 980px; margin-inline: auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}

/* Pasos */
.rsv__steps { display: flex; list-style: none; border-bottom: 1px solid var(--line); background: var(--paper); }
.rsv__steps li {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9rem 0.6rem; font-size: 0.86rem; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.rsv__steps li b {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line); color: var(--ink-soft); font-size: 0.76rem; font-weight: 600; flex: none;
}
.rsv__steps li.is-active { color: var(--ink); border-bottom-color: var(--rose-deep); }
.rsv__steps li.is-active b { background: var(--rose-deep); color: #fff; }
.rsv__steps li.is-done b { background: var(--rose-soft); color: var(--plum-deep); }

.rsv__panel { padding: clamp(1.1rem, 3vw, 1.8rem); }
.rsv__hint { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.rsv__note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1.1rem; line-height: 1.5; }
.rsv__loading, .rsv__empty { padding: 1.4rem 0; color: var(--muted); text-align: center; }
.rsv__error { color: #a3283c; font-size: 0.9rem; margin-top: 0.7rem; }

/* Buscador */
.rsv__search { display: block; margin-bottom: 0.9rem; }
.rsv__search input {
  width: 100%; padding: 0.8rem 1rem; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: 100px; background: var(--paper); color: var(--ink);
}
.rsv__search input:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 1px; background: #fff; }

/* Categorías plegables */
.rcat { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; }
.rcat__head {
  width: 100%; display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem;
  background: var(--paper); border: 0; cursor: pointer; font: inherit; text-align: left; color: var(--ink);
}
.rcat__head:hover { background: var(--cream); }
.rcat__name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; margin-right: auto; }
.rcat__meta { font-size: 0.8rem; color: var(--ink-soft); }
.rcat__sel { color: var(--rose-deep); }
.rcat__chev { transition: transform 0.25s var(--ease); color: var(--rose-deep); font-size: 1.2rem; }
.rcat.is-open .rcat__chev { transform: rotate(90deg); }
.rcat__body { display: none; padding: 0.4rem; }
.rcat.is-open .rcat__body { display: grid; gap: 2px; }
@media (min-width: 720px) { .rcat.is-open .rcat__body { grid-template-columns: 1fr 1fr; gap: 2px 10px; } }

/* Servicio */
.rsvc {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.7rem;
  border-radius: var(--r-sm); cursor: pointer; transition: background 0.18s;
}
.rsvc:hover { background: var(--paper); }
.rsvc.is-on { background: var(--blush); }
.rsvc input { accent-color: var(--rose-deep); width: 17px; height: 17px; flex: none; }
.rsvc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.rsvc__name { font-size: 0.94rem; }
.rsvc__meta { font-size: 0.76rem; color: var(--ink-soft); }
.rsvc__note { font-size: 0.72rem; color: var(--ink-soft); }
.rsvc__price { font-size: 0.9rem; font-weight: 600; color: var(--rose-deep); white-space: nowrap; flex: none; }
/* Sin precio cerrado: se marca, NO se pone 0 € (un 0 € se lee como gratis). */
.rsvc__price--ask {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--plum-deep); background: var(--rose-soft);
  padding: 0.2rem 0.5rem; border-radius: 100px;
}

/* Calendario */
.rcal { max-width: 460px; margin-inline: auto; }
.rcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.rcal__title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; text-transform: capitalize; }
.rcal__nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--rose-deep);
}
.rcal__nav:hover { background: var(--blush); }
.rcal__dow, .rcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rcal__dow { margin-bottom: 4px; font-size: 0.72rem; color: var(--muted); text-align: center; }
.rcal__cell {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--paper); color: var(--muted); font: inherit; font-size: 0.9rem; cursor: default;
}
.rcal__cell.is-empty { background: none; }
.rcal__cell.is-free { background: #fff; border-color: var(--rose-soft); color: var(--ink); cursor: pointer; font-weight: 500; }
.rcal__cell.is-free:hover { background: var(--blush); }
.rcal__cell.is-busy { opacity: 0.45; text-decoration: line-through; }
.rcal__cell.is-sel { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.rcal__legend { display: flex; align-items: center; gap: 0.4rem; justify-content: center; margin-top: 0.8rem; font-size: 0.78rem; color: var(--muted); }
.rcal__legend .rdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.rdot--free { background: var(--rose-soft); }
.rdot--busy { background: var(--line); }

/* Horas */
.rhoras { margin-top: 1.4rem; }
.rhoras__lead { font-size: 0.92rem; margin-bottom: 0.6rem; }
.rhoras__row { display: flex; flex-wrap: wrap; gap: 8px; }
.rhora {
  padding: 0.55rem 0.95rem; border: 1px solid var(--line); border-radius: 100px;
  background: #fff; cursor: pointer; font: inherit; font-size: 0.9rem; color: var(--ink);
  transition: background 0.18s, border-color 0.18s;
}
.rhora:hover { border-color: var(--rose); background: var(--paper); }
.rhora.is-on { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }

/* Datos */
.rdata__grid { display: grid; gap: 0.9rem; }
@media (min-width: 620px) { .rdata__grid { grid-template-columns: 1fr 1fr; } }
.rdata .f { margin-bottom: 0.9rem; }
.rdata label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.rdata label span { color: var(--muted); }
.rdata input {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
}
.rdata input:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 1px; background: #fff; }

/* Resumen */
.rsv__summary { background: var(--paper); border-radius: var(--r-md); padding: 1rem 1.1rem; margin: 1.2rem 0; }
.rsv__summary-t { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
.rsv__summary ul { list-style: none; display: grid; gap: 0.3rem; }
.rsv__summary li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.rsv__summary li b { color: var(--rose-deep); white-space: nowrap; }
.rsv__summary-when { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.7rem; }
.rsv__summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--line);
}
.rsv__summary-total b { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--rose-deep); }

/* Éxito */
.rsv__done { text-align: center; padding: 1.5rem 0; }
.rsv__done-ic {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 0.9rem;
  display: grid; place-items: center; background: var(--rose-deep); color: #fff; font-size: 1.6rem;
}
.rsv__done h3 { margin-bottom: 0.5rem; }
.rsv__done p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }

/* Barra inferior */
.rsv__bar {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem clamp(1.1rem, 3vw, 1.8rem);
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
}
.rsv__total { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rsv__total span { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--rose-deep); }
.rsv__total small { font-size: 0.76rem; color: var(--ink-soft); }
.rsv__actions { display: flex; gap: 0.6rem; flex: none; }
.rsv__actions .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

@media (max-width: 520px) {
  .rsv__steps li { flex-direction: column; gap: 2px; font-size: 0.74rem; text-align: center; }
  .rsv__bar { flex-direction: column; align-items: stretch; }
  .rsv__actions { justify-content: stretch; }
  .rsv__actions .btn { flex: 1; }
}

/* Aviso de cookies (barrita inferior, se recuerda en localStorage) */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1900;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.9rem 1.4rem; padding: 0.9rem clamp(16px, 4vw, 40px);
  background: var(--plum-deep); color: var(--on-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateY(0); transition: transform 0.4s var(--ease);
}
.cookiebar[hidden] { display: none; }
.cookiebar.is-out { transform: translateY(110%); }
.cookiebar p { font-size: 0.86rem; margin: 0; max-width: 70ch; }
.cookiebar a { color: var(--rose-soft); text-decoration: underline; }
.cookiebar a:hover { color: #fff; }
@media (max-width: 720px) {
  .cookiebar { bottom: 70px; }        /* deja libre la barra de llamada */
  .cookiebar p { font-size: 0.8rem; }
}
