/* Agenda27 Belleza — sitio comercial */
@font-face { font-family: 'Fraunces'; src: url('/sitio/fonts/fraunces-latin-full-normal.woff2') format('woff2-variations'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/sitio/fonts/fraunces-latin-full-italic.woff2') format('woff2-variations'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/sitio/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 300 800; font-display: swap; }

:root {
  --bg: #faf6f4;
  --surface: #f3e9e6;
  --surface-2: #eddcd7;
  --ink: #231a1e;
  --muted: #66565b;
  --accent: #8c2f4b;
  --accent-press: #74253d;
  --accent-ink: #fff;
  --field: #2b1d22;
  --field-ink: #f6ece9;
  --field-muted: #cdb9b8;
  --display: 'Fraunces', 'Times New Roman', serif;
  --text: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --m: clamp(18px, 4vw, 48px);
  --max: 1280px;
  --step-small: .875rem;
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --step-head: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  --step-hero: clamp(2.9rem, 1.2rem + 5vw, 6.4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 420; letter-spacing: -.025em; line-height: 1; font-variation-settings: 'opsz' 96, 'SOFT' 60; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--m)); margin: 0 auto; padding: 0 var(--m); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones: rectángulo, un solo radio en todo el sitio (2px) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 26px; border: 0; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; transition: background .2s var(--ease), transform .12s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--accent-press); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-dark { background: var(--field); color: var(--field-ink); }
.btn-dark:hover { background: #3d2a31; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(140, 47, 75, .45); transition: text-decoration-color .2s; }
.textlink:hover { text-decoration-color: var(--accent); }

/* Barra */
.bar { position: relative; z-index: 5; }
.bar .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.35rem/1 var(--display); letter-spacing: -.02em; font-variation-settings: 'opsz' 48, 'SOFT' 80; }
.mark svg { width: 22px; height: 30px; flex: none; }
.mark em { font-style: italic; color: var(--accent); }
.bar nav { display: flex; gap: 26px; margin-left: auto; font-size: .97rem; }
.bar nav a { text-decoration: none; color: var(--ink); padding: 8px 0; position: relative; }
.bar nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.bar nav a:hover::after, .bar nav a[aria-current]::after { transform: scaleX(1); }
.bar .actions { display: flex; gap: 10px; align-items: center; }
.bar .login { text-decoration: none; font-weight: 600; padding: 10px 6px; }
.menu-btn { display: none; }

/* Portada · pantalla 1 */
.hero { padding: clamp(12px, 3vw, 40px) 0 clamp(56px, 7vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: 'title copy' 'reel reel' 'giros giros'; column-gap: clamp(28px, 4vw, 72px); row-gap: clamp(32px, 4vw, 56px); align-items: end; }
.hero h1 { grid-area: title; font-size: var(--step-hero); line-height: .95; padding-top: clamp(16px, 3vw, 48px); }
.hero h1 span { display: block; }
.hero .copy { grid-area: copy; }
.hero .reel { grid-area: reel; }
.hero .lead { font-size: var(--step-lead); line-height: 1.45; max-width: 34ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .fine { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.reel { position: relative; background: #f6ece9; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; margin: 0; }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 2px; background: rgba(35, 26, 30, .78); color: #fff; font: 600 .95rem/1 var(--text); cursor: pointer; transition: background .2s; }
.sound:hover { background: rgba(35, 26, 30, .92); }
.sound svg { width: 20px; height: 20px; }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }
.replay { position: absolute; right: 16px; bottom: 16px; }

.giros { grid-area: giros; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; color: var(--muted); font-size: .98rem; }
.giros span:not(.sr) { display: inline-flex; align-items: center; gap: 10px; }
.giros span:not(.sr):not(:nth-child(2))::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; margin-right: 12px; }
.giro-tabs { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -22px 16px; padding: 0 22px 2px; touch-action: pan-x; }
.giro-tabs::-webkit-scrollbar { display: none; }
.giro-tab { flex: none; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: #f6eeec; color: #5c4a50; font: 600 13px/1 var(--text); cursor: pointer; }
.giro-tab[aria-selected="true"] { background: #2b1d22; color: #fff; }

/* Portada · pantalla 2 */
.week { background: var(--surface); padding: clamp(72px, 9vw, 150px) 0; }
.week .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.week h2 { font-size: var(--step-head); max-width: 13ch; }
.gains { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 30px; }
.gains li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
.gains svg { width: 30px; height: 30px; color: var(--accent); margin-top: 2px; }
.gains strong { display: block; font-size: 1.12rem; margin-bottom: 4px; }
.gains p { color: var(--ink); max-width: 46ch; }
.more { margin-top: 36px; }

/* Fragmento vivo: el enlace de reservas */
.booking { background: #fff; color: #2a2024; border-radius: 10px; padding: 22px; font: 400 15px/1.45 var(--text); box-shadow: 0 1px 0 rgba(43, 29, 34, .06), 0 24px 60px -24px rgba(43, 29, 34, .28); }
.booking .studio { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #f0e4e1; }
.booking .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font: 500 17px/1 var(--display); color: var(--accent); }
.booking .studio b { display: block; font-size: 15px; }
.booking .studio small { color: #7a6a6f; font-size: 13px; }
.booking h3 { font: 600 14px/1.3 var(--text); letter-spacing: 0; margin: 18px 0 10px; color: #2a2024; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid #e8d8d4; border-radius: 999px; background: #fff; font: 500 14px/1 var(--text); color: #2a2024; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: #c99aa6; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.day { min-height: 58px; border: 1px solid #efe2df; border-radius: 8px; background: #fff; font: 500 13px/1.25 var(--text); color: #2a2024; cursor: pointer; padding: 6px 2px; }
.day b { display: block; font-size: 17px; font-weight: 600; }
.day[disabled] { color: #b9a9ad; background: #faf5f4; cursor: default; text-decoration: line-through; }
.day[aria-pressed="true"] { border: 2px solid var(--accent); padding: 5px 1px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.slot { min-height: 40px; min-width: 74px; border: 1px solid #e8d8d4; border-radius: 8px; background: #fff; font: 600 14px/1 var(--text); color: #2a2024; cursor: pointer; }
.slot:hover { border-color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.booking .done { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: #f7efed; font-size: 14px; display: none; }
.booking .done.show { display: block; animation: rise .4s var(--ease); }
.booking .done b { color: var(--accent); }
.booking .note { margin-top: 14px; color: #7a6a6f; font-size: 13px; }

/* Precio */
.price { padding: clamp(72px, 9vw, 150px) 0; }
.price .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: stretch; }
.plan { background: var(--field); color: var(--field-ink); padding: clamp(28px, 4vw, 56px); border-radius: 2px; display: flex; flex-direction: column; }
.plan h2 { font-size: var(--step-head); }
.figure { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 8px; }
.figure b { font: 400 clamp(4rem, 2.6rem + 6vw, 7.5rem)/.9 var(--display); letter-spacing: -.04em; font-variation-settings: 'opsz' 144, 'SOFT' 40; }
.figure span { font-size: 1.1rem; color: var(--field-muted); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--field-ink); }
.plan li svg { width: 18px; height: 18px; margin-top: 4px; color: #e6a9b8; }
.plan .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: auto; }
.plan .fine { color: var(--field-muted); font-size: .95rem; }
.plan .btn { background: #f6ece9; color: var(--field); }
.plan .btn:hover { background: #fff; }
.setup { background: var(--surface); padding: clamp(28px, 4vw, 48px); border-radius: 2px; display: flex; flex-direction: column; gap: 16px; }
.setup h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.setup .figure b { font-size: clamp(3rem, 2rem + 3vw, 4.4rem); }
.setup .figure span { color: var(--muted); }
.setup p { max-width: 44ch; }
.setup .optional { color: var(--muted); font-size: .95rem; }
.setup .btn { margin-top: auto; align-self: flex-start; }

/* Cierre */
.close { padding: 0 0 clamp(56px, 7vw, 100px); }
.close .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.close p { font: 400 clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem)/1.15 var(--display); letter-spacing: -.015em; max-width: 26ch; }
.foot { padding: 28px 0 32px; color: var(--muted); font-size: .92rem; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .right { text-align: right; }

/* Páginas interiores */
.page-head { padding: clamp(32px, 6vw, 90px) 0 clamp(36px, 5vw, 70px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.page-head h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); line-height: .97; max-width: 14ch; }
.page-head p { font-size: var(--step-lead); line-height: 1.45; }
.block { padding: clamp(56px, 7vw, 120px) 0; }
.block.tone { background: var(--surface); }
.block.dark { background: var(--field); color: var(--field-ink); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); max-width: 14ch; }
.split .body p + p { margin-top: 16px; }
.split .body ul { margin: 18px 0 0; padding-left: 1.1em; display: grid; gap: 8px; }
.shot { background: var(--field); border-radius: 2px; overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot.phone { max-width: 380px; margin-left: auto; border-radius: 28px; padding: 10px; }
.shot.phone img { border-radius: 20px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { background: var(--bg); padding: 24px 26px; border-radius: 2px; }
.dark .steps li { background: rgba(255, 255, 255, .06); }
.steps b { display: block; font: 500 1.35rem/1.15 var(--display); letter-spacing: -.01em; margin-bottom: 6px; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.compare th { font-weight: 600; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 2px; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 16px; align-items: center; min-height: 72px; padding: 18px 24px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 16px; height: 16px; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] { background: var(--accent); color: #fff; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 24px 24px; max-width: 64ch; }
.faq .ans p + p { margin-top: 12px; }
.legal { max-width: 72ch; }
.legal h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.legal p, .legal li { margin-bottom: 10px; }

/* Entrada al aparecer: el contenido es visible sin script */
.js .rise { opacity: 0; transform: translateY(22px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 960px) {
  .bar nav { display: none; }
  .bar .actions { margin-left: auto; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'title' 'reel' 'copy' 'giros'; grid-template-rows: auto; row-gap: 26px; }
  .hero h1 { padding-top: 8px; }
  .hero .lead { margin-top: 0; }
  .week .wrap, .price .wrap, .page-head .wrap, .split, .split.rev { grid-template-columns: minmax(0, 1fr); }
  .hero .lead { max-width: 36ch; }
  .plan ul { grid-template-columns: minmax(0, 1fr); }
  .shot.phone { margin: 0 auto; }
}
@media (max-width: 640px) {
  .bar .wrap { min-height: 68px; gap: 12px; }
  .bar .login { display: none; }
  .mark { font-size: 1.15rem; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero .lead { margin-top: 22px; }
  .hero .cta { margin-top: 26px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .reel { aspect-ratio: 4 / 5; margin: 0 calc(-1 * var(--m)); border-radius: 0; background: #f6ece9; }
  .close .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .foot nav { justify-content: flex-start; gap: 16px; }
  .foot .right { text-align: left; }
  .days { gap: 4px; }
  .day { font-size: 12px; }
  .compare { font-size: .95rem; }
  .compare th, .compare td { padding: 12px 6px; }
}
