/* ==========================================================================
   Odeoz Hair Lab — Frontend público
   Sistema de diseño basado en branding ODEOZ (Gela display + Roquefort sans,
   paleta "Mago de Oz", contenedores con esquinas grandes y cards translúcidas)
   ========================================================================== */

/* ----- TIPOGRAFÍAS ----- */
@font-face {
  font-family: 'Gela';
  src: url('../fonts/Gela-34pt.woff2') format('woff2'),
       url('../fonts/Gela-34pt.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roquefort';
  src: url('../fonts/Roquefort-Standard.woff2') format('woff2'),
       url('../fonts/Roquefort-Standard.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roquefort Mild';
  src: url('../fonts/Roquefort-Mild.woff2') format('woff2'),
       url('../fonts/Roquefort-Mild.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ----- TOKENS ----- */
:root {
  /* Paleta Oz */
  --oz-dorothy:    #6CA9E0; /* azul vestido */
  --oz-ruby:       #E94B6A; /* rojo zapatos */
  --oz-glinda:     #F2A6C2; /* rosa Glinda */
  --oz-scarecrow:  #F4C95D; /* amarillo paja */
  --oz-lion:       #D8A24A; /* dorado león */
  --oz-witch:      #6BCBB1; /* verde bruja */
  --oz-brickroad:  #E8C56A; /* amarillo ladrillo */
  --oz-wizard:     #B47BD8; /* lila */

  /* Neutros */
  --ink:        #0E0E10;
  --ink-soft:   #2A2A2E;
  --muted:      #6E6E76;
  --line:       #E4E4E7;
  --paper:      #FFFFFF;
  --canvas:     #ECECEE;
  --canvas-2:   #F6F6F7;

  /* Sistema */
  --r-xs: 12px;
  --r-sm: 18px;
  --r-md: 28px;
  --r-lg: 40px;
  --r-xl: 56px;
  --shadow-card: 0 12px 40px rgba(20,20,30,.08);
  --shadow-soft: 0 6px 20px rgba(20,20,30,.06);

  --container: 1380px;

  --t-display: 'Gela', 'Times New Roman', serif;
  --t-body:    'Roquefort Mild', 'Roquefort', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--t-body);
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- LAYOUT ----- */
.shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.frame {
  background: var(--paper);
  margin: 22px;
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* ----- HEADER / NAV ----- */
.site-header {
  position: sticky;
  top: 22px;
  z-index: 50;
  background: var(--paper);
  margin: 22px 22px 0;
  border-radius: 999px;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand img {
  height: 26px;
  width: auto;
}
.brand-meta {
  font-family: var(--t-body);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: center;
}
.nav-main > li { list-style: none; position: relative; }
.nav-main a, .nav-main button.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  transition: background .2s;
}
.nav-main a:hover, .nav-main button.nav-btn:hover { background: var(--canvas-2); }
.nav-main .has-children > a::after,
.nav-main .has-children > button.nav-btn::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-main .submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 10px;
  min-width: 220px;
  box-shadow: var(--shadow-card);
  display: none;
  list-style: none;
  margin: 0;
}
.nav-main .has-children:hover .submenu,
.nav-main .has-children:focus-within .submenu {
  display: block;
}
.nav-main .submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-xs);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); }

/* Botón "Pide cita" del header — liquid fill */
.btn-book {
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: transform .15s, border-color .5s;
  flex: 0 0 auto;
}
.btn-book::before {
  content: '';
  position: absolute;
  left: -5%;
  bottom: -115%;
  width: 110%;
  height: 115%;
  background: linear-gradient(150deg, var(--oz-ruby), var(--oz-glinda));
  border-radius: 44% 56% 0 0 / 36% 42% 0 0;
  transition: bottom .62s cubic-bezier(.22, .68, 0, 1.2);
  z-index: -1;
}
.btn-book:hover::before {
  bottom: -4%;
  animation: liquid-pulse 2s ease-in-out infinite;
}
.btn-book:hover {
  border-color: var(--oz-ruby);
  transform: translateY(-2px);
}
.btn-book .arrow {
  display: inline-block;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.btn-book:hover .arrow { transform: translateX(5px); }
@keyframes liquid-pulse {
  0%   { border-radius: 44% 56% 0 0 / 36% 42% 0 0; }
  33%  { border-radius: 52% 48% 0 0 / 42% 34% 0 0; }
  66%  { border-radius: 38% 62% 0 0 / 30% 46% 0 0; }
  100% { border-radius: 44% 56% 0 0 / 36% 42% 0 0; }
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-link {
  background: transparent; border: 0; color: inherit;
  text-decoration: underline; text-underline-offset: 4px;
  padding: 12px 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  border-radius: 999px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 0 auto; position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { content: ''; position: absolute; top:  7px; left: 0; }

/* ----- HERO ----- */
.hero {
  position: relative;
  margin: 22px;
  color: var(--ink);
  min-height: 680px;
  display: grid;
  grid-template-columns: 55% 45%;
}
.hero-content {
  padding: 52px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  width: fit-content;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-kicker img.spark { width: 22px; height: 22px; }
.hero-kicker a { text-decoration: underline; text-underline-offset: 3px; }

.hero h1 {
  font-family: var(--t-display);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.028em;
  margin: 28px 0 0;
}
.hero-h1-small {
  display: block;
  font-size: clamp(36px, 4.5vw, 68px);
  letter-spacing: -.022em;
  margin-bottom: .1em;
}
.hero-h1-big {
  display: block;
  font-size: clamp(64px, 8.5vw, 140px);
}
.hero-sub {
  border-top: 1px solid rgba(0,0,0,.18);
  padding-top: 26px;
  max-width: 420px;
  font-size: 16px;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}
.hero-rating {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 22px;
  width: fit-content;
}
.hero-rating .star { color: var(--oz-scarecrow); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 32px 32px 32px 0;
}
.hero-sparkle {
  position: absolute;
  left: -8px;
  top: 16%;
  width: 72px;
  height: 72px;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}
.hero-contact-btn {
  position: absolute;
  top: 3%;
  right: 2%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.hero-contact-btn:hover {
  background: var(--oz-ruby);
  transform: scale(1.08);
}
.hero-mirror-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 107;
}
.hero-mirror-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 20%;
  -webkit-mask-image: url('../img/decor/mask-hero.svg');
  mask-image: url('../img/decor/mask-hero.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ── HERO GALLERY CARD STACK ───────────────────────────────────── */
.hero-gallery {
  position: absolute;
  bottom: 36px;
  left: calc(55% - 120px);
  width: 239px;
  height: 320px;
  z-index: 10;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.hero-gallery:active { cursor: grabbing; }
.hero-gallery:hover .gallery-card:last-child {
  transform: rotate(0deg) translateX(0) translateY(-10px) scale(1.07);
}

.gallery-card {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.30), 0 1px 4px rgba(0,0,0,.18);
  transition: transform .38s cubic-bezier(.22,1,.36,1);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  display: block;
  -webkit-user-drag: none;
}

/* Stack offsets: back → front (last-child = top) */
.gallery-card:nth-last-child(5) {
  transform: rotate(12deg) translateX(14px) translateY(10px) scale(.86);
  z-index: 1;
}
.gallery-card:nth-last-child(4) {
  transform: rotate(-9deg) translateX(-12px) translateY(7px) scale(.89);
  z-index: 2;
}
.gallery-card:nth-last-child(3) {
  transform: rotate(6deg) translateX(8px) translateY(5px) scale(.93);
  z-index: 3;
}
.gallery-card:nth-last-child(2) {
  transform: rotate(-3deg) translateX(-5px) translateY(2px) scale(.97);
  z-index: 4;
}
.gallery-card:last-child {
  transform: rotate(0deg) translateX(0) translateY(0) scale(1);
  z-index: 5;
}

/* Fly-out animation when cycling */
.gallery-card.gc-fly {
  transition: transform .38s cubic-bezier(.22,1,.36,1), opacity .38s ease;
  opacity: 0;
  pointer-events: none;
}
.gallery-card.gc-fly-right {
  transform: rotate(28deg) translateX(220px) translateY(-60px) scale(.85) !important;
}
.gallery-card.gc-fly-left {
  transform: rotate(-28deg) translateX(-220px) translateY(-60px) scale(.85) !important;
}
.gallery-card.gc-dragging {
  transition: none !important;
  cursor: grabbing;
}

/* ----- GOOGLE REVIEWS ----- */
.reviews-section {
  margin: 22px;
  padding: 40px 48px;
  background: var(--paper);
  border-radius: var(--r-lg);
}
.reviews-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.reviews-score-block {
  display: flex;
  align-items: center;
  gap: 18px;
}
.reviews-score-num {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ink);
}
.reviews-score-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reviews-score-stars {
  color: var(--oz-scarecrow);
  font-size: 17px;
  letter-spacing: 3px;
  line-height: 1;
}
.reviews-score-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rev-card {
  background: var(--canvas-2);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid transparent;
  transition: transform .2s, border-color .2s;
}
.rev-card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
}
.rev-card-stars {
  color: var(--oz-scarecrow);
  font-size: 15px;
  letter-spacing: 3px;
}
.rev-card-quote {
  font-family: var(--t-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
  margin: 0;
}
.rev-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.rev-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--oz-glinda), var(--oz-wizard));
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex: 0 0 auto;
  text-decoration: none;
}
.rev-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.rev-card-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.rev-card-cta {
  background: var(--ink);
  border-color: var(--ink);
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--paper);
  gap: 8px;
}
.rev-card-cta:hover {
  border-color: var(--ink);
  background: var(--ink-soft);
  transform: translateY(-2px);
}
.rev-card-cta .cta-score {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -.03em;
  line-height: 1;
}
.rev-card-cta .cta-stars {
  color: var(--oz-scarecrow);
  font-size: 18px;
  letter-spacing: 4px;
}
.rev-card-cta .cta-count {
  font-size: 13px;
  opacity: .65;
  margin-top: 2px;
}
.rev-card-cta .cta-action {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: .85;
  margin-top: 8px;
}

/* ----- SECTIONS ----- */
.section {
  margin: 22px;
  padding: 80px 56px;
  background: var(--paper);
  border-radius: var(--r-lg);
}
.section.pad-sm { padding: 56px; }
.section.dark { background: var(--ink); color: var(--paper); }
.section.gradient {
  background-image: url('../img/decor/gradient-dorothy-witch.png');
  background-size: cover;
  background-position: center;
  color: var(--ink);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head .kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 800px;
}
.section-head p {
  max-width: 360px;
  color: var(--muted);
  font-size: 16px;
}

/* ----- SERVICE CARDS ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--canvas-2);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s;
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
}
.card .ic {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.card .ic img { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  letter-spacing: -.01em;
}
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .price {
  font-family: var(--t-display);
  font-size: 22px;
  margin-top: auto;
}
.card .more {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
}

/* ----- SPLIT (foto + texto) ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.split .visual {
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 440px;
  background: linear-gradient(135deg, var(--oz-glinda), var(--oz-wizard));
}
.split .visual img { width: 100%; height: 100%; object-fit: cover; }
.split .text { padding: 12px 0; }
.split .text h3 {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 22px;
}
.split .text p { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; }

/* ----- PRICE LIST (uno por línea) ----- */
.pricelist h4 {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: 32px;
  margin: 32px 0 16px;
}
.pricelist .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.pricelist .row .name { font-weight: 500; }
.pricelist .row .desc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.pricelist .row .price { font-family: var(--t-display); font-size: 22px; }

/* ----- MAP SECTION ----- */
.map-section {
  position: relative;
  margin: 0 22px 22px;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 620px;
}
.map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.72) contrast(1.06);
}
.map-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.91) 26%,
    rgba(255,255,255,0.52) 46%,
    rgba(255,255,255,0.00) 66%
  );
  pointer-events: none;
  z-index: 1;
}
.map-card {
  position: absolute;
  top: 50%;
  left: 72px;
  transform: translateY(-50%);
  z-index: 2;
  width: 380px;
  padding: 36px 40px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.map-card-title {
  font-family: var(--t-display);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.map-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.map-info-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: var(--t-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.map-info-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--oz-ruby);
}
.map-info-row div { display: flex; flex-direction: column; gap: 1px; }
.map-info-row strong { color: var(--ink); font-weight: 600; }
.map-info-row a { color: var(--ink-soft); text-decoration: none; }
.map-info-row a:hover { color: var(--oz-ruby); }
.map-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.map-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--canvas-2);
  border: 1px solid var(--canvas);
  font-size: 12px;
  font-family: var(--t-body);
  color: var(--ink-soft);
  font-weight: 500;
}
.map-pill svg { color: var(--oz-ruby); }

/* ----- JOBS SECTION ----- */
.jobs-section {
  margin: 22px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.jobs-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  min-height: 580px;
}
.jobs-text {
  padding: 64px 52px;
  background: #1e1e22;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.jobs-kicker { color: rgba(255,255,255,.45); }
.jobs-title {
  font-family: var(--t-display);
  font-size: clamp(44px, 5vw, 74px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
}
.jobs-desc { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.6; margin: 0; }
.jobs-perks { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.jobs-perks li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,.8);
}
.jobs-perks li::before {
  content: '✓';
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--oz-ruby); color: var(--paper);
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.jobs-offers { margin-top: auto; padding-top: 8px; }
.jobs-offers-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.35); margin-bottom: 12px;
}
.jobs-offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.jobs-offer-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md);
  padding: 20px;
  min-height: 100px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  -webkit-user-select: none; user-select: none;
}
.jobs-offer-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(233,75,106,.4);
  transform: translateY(-2px);
}
.jobs-offer-card:active { transform: translateY(0); }
.jobs-no-offers { font-size: 13px; color: rgba(255,255,255,.35); margin: 0; padding: 8px 0; }
.jobs-offer-title { font-size: 14px; font-weight: 600; color: var(--paper); line-height: 1.3; }
.jobs-offer-meta { font-size: 11px; color: rgba(255,255,255,.45); }
.jobs-offer-arrow {
  align-self: flex-end;
  font-size: 18px;
  color: var(--oz-ruby);
  margin-bottom: auto;
  line-height: 1;
}

/* ---- JOB MODAL ---- */
.job-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.job-modal.open { display: flex; }
.job-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,14,16,.78);
  backdrop-filter: blur(6px);
}
.job-modal-card {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  box-shadow: 0 40px 100px rgba(0,0,0,.38);
}
.job-modal-info {
  padding: 52px 44px;
  background: #1e1e22;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.job-modal-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); }
.job-modal-title { font-family: var(--t-display); font-size: clamp(24px,2.8vw,38px); font-weight: 400; color: var(--paper); margin: 0; line-height: 1.05; letter-spacing: -.02em; }
.job-modal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  font-size: 12px; color: rgba(255,255,255,.65);
}
.job-modal-desc { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.6); margin: 0; }
.job-modal-info-sep { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 22px 0; }
.job-modal-info-rows { display: flex; flex-direction: column; gap: 14px; }
.job-modal-info-row { display: flex; flex-direction: column; gap: 4px; }
.job-modal-info-label { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35); }
.job-modal-info-value { font-size: 13px; color: rgba(255,255,255,.75); }
.job-modal-info-multiline { display: block; line-height: 1.7; }
.job-modal-skills { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-direction: column; gap: 5px; }
.job-modal-skills li { font-size: 13px; color: rgba(255,255,255,.75); display: flex; align-items: baseline; gap: 8px; }
.job-modal-skills li::before { content: '·'; color: var(--oz-ruby); font-size: 16px; line-height: 1; flex-shrink: 0; }
.job-modal-form-side {
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.job-modal-form-title { font-family: var(--t-display); font-size: 22px; font-weight: 400; margin: 0; color: var(--ink); }
.job-modal-form { display: flex; flex-direction: column; gap: 14px; }
.job-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.job-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-size: 16px; z-index: 2;
  transition: background .2s;
  line-height: 1;
}
.job-modal-close:hover { background: rgba(255,255,255,.22); }
@media (max-width: 680px) {
  .job-modal-card { grid-template-columns: 1fr; }
  .job-modal-info { border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 36px 28px; }
  .job-modal-form-side { padding: 28px; }
  .job-modal-row { grid-template-columns: 1fr; }
}

/* Select */
.jobs-field select {
  padding: 11px 15px;
  border: 1.5px solid var(--canvas);
  border-radius: var(--r-md);
  font-family: var(--t-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--canvas-2);
  transition: border-color .2s, background .2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232A2A2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.jobs-field select:focus { border-color: var(--oz-ruby); background-color: var(--paper); }

.jobs-form-card {
  background: var(--paper);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.jobs-form-title {
  font-family: var(--t-display);
  font-size: 28px;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.jobs-form { display: flex; flex-direction: column; gap: 18px; }
.jobs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jobs-field { display: flex; flex-direction: column; gap: 6px; }
.jobs-field label {
  font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .02em;
}
.jobs-field label em { color: var(--oz-ruby); font-style: normal; margin-left: 2px; }
.jobs-hint { font-weight: 400; color: var(--ink-soft); font-size: 12px; margin-left: 6px; }
.jobs-field input,
.jobs-field textarea {
  padding: 11px 15px;
  border: 1.5px solid var(--canvas);
  border-radius: var(--r-md);
  font-family: var(--t-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--canvas-2);
  transition: border-color .2s, background .2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.jobs-field input:focus, .jobs-field textarea:focus {
  border-color: var(--oz-ruby); background: var(--paper);
}
.jobs-field textarea { resize: vertical; min-height: 110px; }
.file-input { display: none; }
.file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 20px;
  border: 2px dashed var(--canvas);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--canvas-2);
  text-align: center;
}
.file-drop:hover, .file-drop.has-file { border-color: var(--oz-ruby); background: rgba(233,75,106,.04); }
.file-drop svg { color: var(--oz-ruby); }
.file-label { font-size: 14px; color: var(--ink-soft); }
.file-label u { color: var(--oz-ruby); text-underline-offset: 2px; }
.file-name { font-size: 12px; color: var(--ink-soft); }
.file-name.selected { color: var(--oz-ruby); font-weight: 600; }
.form-notice {
  padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5;
}
.form-notice.ok { background: #d1fae5; color: #065f46; }
.form-notice.err { background: #fee2e2; color: #991b1b; }

/* ----- CTA BANNER ----- */
.cta-banner {
  margin: 22px;
  padding: 64px 56px;
  border-radius: var(--r-lg);
  background-image: url('../img/decor/gradient-scarecrow-glinda.png');
  background-size: cover; background-position: center;
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 32px; align-items: center;
}
.cta-banner h2 {
  font-family: var(--t-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin: 0;
}
.cta-banner .actions { display: flex; gap: 14px; justify-content: flex-end; }

/* ----- FORMS ----- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form .row.cols-1 { grid-template-columns: 1fr; }
form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
form input[type=text], form input[type=email], form input[type=tel],
form input[type=password], form input[type=file], form select, form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
form textarea { min-height: 140px; resize: vertical; }
form .field { margin-bottom: 16px; }
form .submit { margin-top: 14px; }
.flash-ok, .flash-err {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.flash-ok  { background: #E6F6EE; color: #1B6B3A; }
.flash-err { background: #FCE8EC; color: #8B1F2F; }

/* ----- FOOTER ----- */
.site-footer {
  margin: 22px;
  padding: 56px 56px 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
}
.site-footer .top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .brand-foot img { height: 36px; margin-bottom: 18px; }
.site-footer p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0 0 8px; }
.site-footer h5 {
  font-family: var(--t-display); font-weight: 400; font-size: 22px;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.55);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 980px) {
  .site-header { gap: 12px; padding: 12px 16px; margin: 14px; top: 14px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-main {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86vw; max-width: 360px;
    background: var(--paper);
    flex-direction: column; align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform .25s ease-out;
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
    z-index: 100;
  }
  body.menu-open .nav-main { transform: translateX(0); }
  body.menu-open::after {
    content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60;
  }
  .nav-main > li { width: 100%; }
  .nav-main .submenu {
    position: static; transform: none; box-shadow: none;
    background: var(--canvas-2); padding: 4px; margin: 4px 0 12px;
  }
  .nav-main .has-children .submenu { display: block; }
  .btn-book { font-size: 13px; padding: 10px 18px; }

  .hero { min-height: 0; margin: 14px; grid-template-columns: 1fr; }
  .hero-content { padding: 36px 28px 32px; }
  .hero-h1-big { font-size: clamp(56px, 11vw, 100px); }
  .hero-visual { min-height: 420px; }
  .hero-mirror-photo { object-position: 68% 25%; }
  .hero-gallery {
    left: 14px;
    transform: none;
    bottom: 24px;
    width: 170px;
    height: 227px;
  }
  .hero-gallery:hover .gallery-card:last-child {
    transform: rotate(0deg) translateX(0) translateY(-8px) scale(1.07);
  }

  .section { margin: 14px; padding: 48px 28px; }
  .cta-banner { margin: 14px; padding: 36px 28px; grid-template-columns: 1fr; }
  .cta-banner .actions { justify-content: flex-start; }
  .split { grid-template-columns: 1fr; }
  .jobs-section { margin: 14px; }
  .jobs-inner { grid-template-columns: 1fr; }
  .jobs-text { padding: 48px 28px; }
  .jobs-form-card { padding: 36px 28px; }
  .jobs-row { grid-template-columns: 1fr; gap: 12px; }
  .map-section { height: auto; margin: 0 14px 14px; display: flex; flex-direction: column; }
  .map-iframe { position: relative; height: 260px; flex-shrink: 0; }
  .map-veil { display: none; }
  .map-card { position: relative; top: auto; left: auto; transform: none; width: 100%; padding: 32px 24px; background: var(--paper); }
  .site-footer { margin: 14px; padding: 36px 28px; }
  .site-footer .top { grid-template-columns: 1fr; gap: 24px; }
  .reviews-section { margin: 14px; padding: 40px 28px; }
  .reviews-masthead { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .rev-card-cta { min-height: 160px; }
  form .row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
}

/* ----- WYSIWYG content (renderizado dentro de páginas) ----- */
.rte { font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.rte > * + * { margin-top: 1em; }
.rte h1, .rte h2 { font-family: var(--t-display); font-weight: 400; color: var(--ink); line-height: 1.05; letter-spacing: -.02em; }
.rte h1 { font-size: 56px; margin-top: 1.2em; }
.rte h2 { font-size: 42px; margin-top: 1.4em; }
.rte h3 { font-family: var(--t-display); font-weight: 400; color: var(--ink); font-size: 28px; margin-top: 1.4em; }
.rte ul, .rte ol { padding-left: 22px; }
.rte li { margin: 6px 0; }
.rte blockquote {
  border-left: 3px solid var(--oz-ruby);
  padding: 4px 0 4px 18px;
  color: var(--ink);
  font-family: var(--t-display);
  font-size: 28px; line-height: 1.2;
}
.rte a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rte img { border-radius: var(--r-sm); margin: 24px 0; }

/* ── Interior pages ────────────────────────────────── */
.page-wrap {
  max-width: 820px;
  margin-right: auto;
  padding: 72px max(24px, 5vw) 96px;
}
.page-title {
  font-family: var(--t-display);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.028em;
  margin: 0 0 48px;
}
@media (max-width: 640px) {
  .page-wrap { padding: 48px 20px 72px; }
}

/* ── Legal / Privacy pages ─────────────────────────── */
.page-legal-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 48px;
}
.legal-block {
  background: var(--canvas-2);
  border-left: 3px solid var(--oz-ruby);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-block p { margin: 0; line-height: 1.7; }
.legal-updated {
  margin-top: 48px;
  font-size: 13px;
  color: var(--muted);
}
.rte h2 {
  font-family: var(--t-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  margin: 52px 0 16px;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.rte h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--ink);
}
.rte ul {
  padding-left: 0;
  margin: 12px 0 20px;
  list-style: none;
}
.rte ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.6;
}
.rte ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--oz-ruby);
  font-size: 12px;
  top: 5px;
}
.rte p { line-height: 1.75; margin-bottom: 16px; }

/* ── Trabaja con nosotros sections ─────────────────── */
.page-jobs {
  background: #1e1e22;
  padding: 80px 0;
}
.page-jobs-inner {
  max-width: 1100px;
  padding: 0 max(40px, 5vw);
}
.page-jobs-heading {
  font-family: var(--t-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  color: var(--paper);
  margin: 0 0 36px;
  letter-spacing: -.025em;
  line-height: 1;
}
.page-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.page-jobs-form-wrap {
  background: var(--bg);
  padding: 80px max(40px, 5vw);
}
.page-jobs-form-wrap .jobs-form-card {
  max-width: 720px;
}
@media (max-width: 640px) {
  .page-jobs { padding: 56px 0; }
  .page-jobs-inner { padding: 0 20px; }
  .page-jobs-form-wrap { padding: 56px 20px; }
}

/* ── Cookie consent banner ─────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 9999;
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  animation: cookie-slide-up .35s cubic-bezier(.22,1,.36,1) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
  margin: 0;
}
.cookie-banner-text a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--paper);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.cookie-btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.cookie-btn-primary:hover { background: #e8e8e8; }
.cookie-btn-ghost {
  background: transparent;
  color: var(--paper);
}
.cookie-btn-ghost:hover { background: rgba(255,255,255,.12); }
/* AEPD: Rechazar visualmente idéntico a Aceptar */
.cookie-btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cookie-btn-secondary:hover { background: #e8e8e8; }
/* Configurar: subtle link-style, clearly less prominent */
.cookie-btn-configure {
  background: transparent;
  color: rgba(255,255,255,.65);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
}
.cookie-btn-configure:hover { color: var(--paper); text-decoration: none; }
@media (max-width: 680px) {
  .cookie-banner-inner { flex-direction: column; gap: 14px; }
  .cookie-banner-text  { flex-basis: 100%; }
  .cookie-banner-actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .cookie-btn-primary, .cookie-btn-secondary { flex: 1; text-align: center; min-width: 120px; }
  .cookie-btn-configure { width: 100%; text-align: center; order: 3; }
}

/* ── Rutinas / Selector KEUNE ──────────────────────── */

/* Intro editorial */
.rutina-intro {
  background: var(--ink);
  color: var(--paper);
  padding: 80px max(40px, 7vw) 96px;
}
.rutina-intro-inner { max-width: 760px; }
.rutina-intro-kicker {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--oz-ruby);
  margin: 0 0 28px;
}
.rutina-intro-title {
  font-family: var(--t-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.028em;
  margin: 0 0 36px;
}
.rutina-intro-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 0 40px;
}
.rutina-scroll-btn {
  background: var(--oz-ruby);
  border-color: var(--oz-ruby);
  color: var(--paper);
}
.rutina-scroll-btn:hover { background: #d03a59; border-color: #d03a59; }

/* Selector container */
.rutina-selector {
  background: var(--canvas);
  padding: 64px max(24px, 5vw) 96px;
}

/* Stepper */
.ks-stepper {
  max-width: 680px;
  margin: 0 auto 56px;
}
.ks-stepper-list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: none;
}
.ks-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}
.ks-step + .ks-step::before {
  content: '';
  position: absolute;
  top: 9px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  transition: background .4s;
}
.ks-step--done + .ks-step::before { background: var(--oz-ruby); }
.ks-step-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--canvas);
  transition: background .25s, border-color .25s;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.ks-step--active .ks-step-dot {
  border-color: var(--oz-ruby);
  background: var(--oz-ruby);
}
.ks-step--done .ks-step-dot {
  border-color: var(--oz-ruby);
  background: var(--oz-ruby);
}
.ks-step--done .ks-step-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--paper);
}
.ks-step-label {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .02em;
}
.ks-step--active .ks-step-label { color: var(--ink); font-weight: 600; }
.ks-step--done .ks-step-label   { color: var(--oz-ruby); }

/* Panel */
.ks-panel {
  max-width: 820px;
  margin: 0 auto;
  animation: ks-fade-in .3s ease both;
}
.ks-panel--hidden { display: none; }
.ks-panel--exit   { animation: ks-fade-out .26s ease forwards; }
.ks-panel--enter  { animation: ks-slide-in .32s cubic-bezier(.22,1,.36,1) both; }
@keyframes ks-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes ks-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ks-slide-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Question */
.ks-question {
  font-family: var(--t-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0 0 36px;
  color: var(--ink);
}

/* Option grid */
.ks-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.ks-options--4 { grid-template-columns: repeat(4, 1fr); }

/* Option button */
.ks-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: var(--canvas-2);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .15s;
}
.ks-option:hover {
  border-color: var(--line);
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.ks-option--selected {
  border-color: var(--oz-ruby);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.ks-option:focus-visible {
  outline: 2px solid var(--oz-ruby);
  outline-offset: 2px;
}
.ks-option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.ks-option--selected .ks-option-title { color: var(--oz-ruby); }
.ks-option-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Nav row */
.ks-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.ks-nav .btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

/* Result header */
.ks-result-header { margin-bottom: 36px; }
.ks-result-title {
  font-family: var(--t-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
  margin: 0 0 16px;
}
.ks-result-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}

/* Product grid */
.ks-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

/* Product card */
.ks-product-card {
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;           /* llena la celda del grid */
}
.ks-product-step {
  color: var(--paper);
  background: var(--oz-ruby);
  padding: 10px 16px 8px;
  line-height: 1.2;
}
.ks-step-num {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}
.ks-step-cat {
  display: block;
  font-family: var(--t-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.ks-product-img-wrap {
  aspect-ratio: 3/4;
  background: #ffffff;    /* fondo blanco uniforme para todos los productos */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ks-product-img {
  width: 82%; height: 82%;
  object-fit: contain;
  display: block;
}
.ks-img--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--canvas) 0%, var(--canvas-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ks-product-body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ks-product-line {
  font-size: 11px;
  color: var(--oz-ruby);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ks-product-name {
  font-family: var(--t-display);
  font-size: 17px;
  font-weight: 400;
  margin: 2px 0 0;
  line-height: 1.2;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ks-product-format {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ks-product-why {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA block */
.ks-cta-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.ks-cta-btn {
  font-size: 16px;
  padding: 16px 36px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.ks-cta-btn:hover { background: var(--oz-ruby); border-color: var(--oz-ruby); }
.ks-cta-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 0 0;
}

/* Restart */
.ks-restart-wrap { text-align: center; }
.ks-restart {
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ks-restart:hover { color: var(--ink); }

/* Action buttons (PDF / WhatsApp) */
.ks-action-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.ks-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.ks-action-btn--pdf {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.ks-action-btn--pdf:hover { background: var(--oz-ruby); border-color: var(--oz-ruby); }
.ks-action-btn--wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.ks-action-btn--wa:hover { background: #1ebe5d; border-color: #1ebe5d; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 980px) {
  .ks-result-grid  { grid-template-columns: repeat(2, 1fr); }
  .ks-options--4   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rutina-intro    { padding: 56px 20px 72px; }
  .rutina-selector { padding: 48px 20px 72px; }
  .ks-stepper      { margin-bottom: 36px; }
  .ks-step-label   { display: none; }
  .ks-options      { grid-template-columns: 1fr; }
  .ks-options--4   { grid-template-columns: 1fr; }
  .ks-result-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ks-cta-btn      { width: 100%; justify-content: center; }
  .ks-action-btns  { flex-direction: column; align-items: stretch; }
  .ks-action-btn   { justify-content: center; }
}
@media (max-width: 420px) {
  .ks-result-grid  { grid-template-columns: 1fr; }
}
