/* ==========================================================================
   Jota Eme v2 — editorial, scroll-driven. Real brand tokens.
   ========================================================================== */
:root {
  --liver: #4C443B;
  --sherbet: #FFECB8;
  --polvo: #FDFDFA;
  --nougat: #ECE8DD;
  --arena: #C5BCA5;
  --fieltro: #D6D1C4;
  --xona: #9F9380;

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--liver);
  background: var(--polvo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
p { margin: 0; line-height: 1.65; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--sherbet); color: var(--liver); padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.wrap { max-width: 78rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: 46rem; }
@media (min-width: 768px) { .wrap { padding: 0 3rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 4rem; } }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.6rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); white-space: nowrap; }
.btn--sherbet { background: var(--sherbet); color: var(--liver); }
.btn--sherbet:hover { transform: scale(1.04); box-shadow: 0 10px 26px rgba(255, 236, 184, 0.4); }
.btn--ghost { border: 1.5px solid var(--liver); color: var(--liver); }
.btn--ghost:hover { background: var(--liver); color: var(--polvo); }

.link-underline { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(76,68,59,0.3); transition: text-decoration-color 0.25s; }
.link-underline:hover { text-decoration-color: currentColor; }

/* ================= header ================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 1.1rem 1.5rem; transition: background 0.35s, backdrop-filter 0.35s, box-shadow 0.35s; }
.site-header.is-scrolled { background: rgba(253,253,250,0.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(76,68,59,0.08); }
@media (min-width: 768px) { .site-header { padding: 1.2rem 3rem; } }
@media (min-width: 1024px) { .site-header { padding: 1.2rem 4rem; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header__logo { display: block; width: 96px; flex: none; }
.site-header__logo img { width: 100%; height: auto; filter: brightness(0) invert(1); transition: filter 0.35s; }
.site-header.is-scrolled .site-header__logo img { filter: none; }
.site-header__nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 900px) { .site-header__nav { display: flex; } }
.site-header__nav a { font-size: 0.875rem; color: rgba(253,253,250,0.85); opacity: 1; transition: color 0.25s; }
.site-header.is-scrolled .site-header__nav a { color: var(--liver); opacity: 0.7; }
.site-header__nav a:hover { opacity: 1; }
.site-header.is-scrolled .site-header__nav a:hover { opacity: 1; color: var(--xona); }
.site-header__actions { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-header__actions .btn { display: none; }
@media (min-width: 900px) { .site-header__actions .btn { display: inline-flex; } }
.site-header__ig { display: none; color: var(--liver); opacity: 0.7; transition: opacity 0.25s; }
.site-header__ig:hover { opacity: 1; }
@media (min-width: 900px) { .site-header__ig { display: inline-flex; } }
.site-header__burger { position: relative; width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--polvo); transition: color 0.35s; }
.site-header.is-scrolled .site-header__burger { color: var(--liver); }
@media (min-width: 900px) { .site-header__burger { display: none; } }
.site-header__burger span { width: 20px; height: 1.5px; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 50; background: rgba(76,68,59,0.97); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; padding: 0 2rem; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 1.9rem; color: rgba(253,253,250,0.9); }
.mobile-menu nav a.btn { font-family: var(--font-sans); font-size: 1rem; margin-top: 0.5rem; }

/* ================= hero: full-bleed video ================= */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; background: var(--liver); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(76,68,59,0.82) 0%, rgba(76,68,59,0.55) 42%, rgba(76,68,59,0.18) 72%); }
.hero__copy { position: relative; z-index: 2; width: 100%; max-width: 38rem; padding: 0 1.5rem; margin: 0 auto 0 0; }
@media (min-width: 768px) { .hero__copy { padding: 0 3rem; } }
@media (min-width: 1024px) { .hero__copy { padding: 0 4rem; } }
.hero__title { font-size: clamp(2.4rem, 6.4vw, 4.6rem); color: var(--polvo); }
.hero__line { display: block; }
.hero__line--italic { font-style: italic; }
.hero__subtitle { margin-top: 1.5rem; max-width: 28rem; font-size: clamp(0.98rem, 1.4vw, 1.1rem); color: rgba(253,253,250,0.75); }
.hero__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.btn--ghost-dark { border: 1.5px solid rgba(253,253,250,0.55); color: var(--polvo); }
.btn--ghost-dark:hover { background: rgba(253,253,250,0.12); border-color: var(--polvo); }
.hero__caption { position: absolute; z-index: 2; left: 1.5rem; bottom: 1.5rem; color: rgba(253,253,250,0.75); font-size: 0.8rem; letter-spacing: 0.04em; margin: 0; }
@media (min-width: 768px) { .hero__caption { left: 3rem; } }

/* ================= manifesto ================= */
.manifesto { background: var(--liver); color: var(--polvo); padding: 6rem 0; }
.manifesto__quote { margin: 0; max-width: 46rem; }
.manifesto__quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.4; }
.manifesto__quote p::before { content: open-quote; }
.manifesto__quote p::after { content: close-quote; }
.manifesto__attr { margin-top: 1.75rem; font-size: 0.85rem; color: var(--sherbet); letter-spacing: 0.02em; }

/* ================= services: horizontal scroll-hijack ================= */
.services-pin { background: var(--polvo); padding: 5rem 0 3rem; }
.services-pin__head { max-width: 40rem; }
.services-pin__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.services-pin__head p { margin-top: 1rem; color: var(--xona); }
.services-pin__viewport { margin-top: 3rem; overflow: hidden; display: flex; align-items: center; min-height: 32rem; }
.services-pin__track { display: flex; gap: 1.5rem; padding: 0 1.5rem; }
@media (min-width: 768px) { .services-pin__track { padding: 0 3rem; } }
.service-panel { flex: 0 0 auto; width: min(78vw, 26rem); display: flex; flex-direction: column; }
.service-panel__media { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: var(--nougat); }
.service-panel__media img, .service-panel__media video { width: 100%; height: 100%; object-fit: cover; }
.service-panel__media--texture { background: linear-gradient(150deg, var(--nougat), var(--arena) 120%); }
.service-panel__copy { margin-top: 1.25rem; }
.service-panel__num { font-family: var(--font-display); font-style: italic; color: var(--arena); font-size: 1rem; }
.service-panel__copy h3 { margin-top: 0.4rem; font-size: 1.35rem; }
.service-panel__copy p { margin-top: 0.6rem; font-size: 0.92rem; color: var(--xona); line-height: 1.6; }
.services-pin__note { margin-top: 2.5rem; max-width: 32rem; font-size: 0.85rem; color: var(--xona); }

/* ================= why: sticky stack ================= */
.why-stack { position: relative; background: var(--liver); }
.why-stack__card { position: sticky; top: 0; min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: var(--liver); }
.why-stack__inner { max-width: 34rem; padding: 2rem 1.5rem; text-align: center; }
.why-stack__num { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--sherbet); color: var(--liver); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }
.why-stack__inner h3 { margin-top: 1.5rem; color: var(--polvo); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.why-stack__inner p { margin-top: 1rem; color: rgba(253,253,250,0.7); font-size: 1rem; line-height: 1.7; }

/* ================= julia: asymmetric bio ================= */
.julia { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .julia { grid-template-columns: 1fr 1fr; min-height: 100dvh; } }
.julia__media { position: relative; aspect-ratio: 4/5; }
@media (min-width: 900px) { .julia__media { aspect-ratio: auto; height: 100%; } }
.julia__media img { width: 100%; height: 100%; object-fit: cover; }
.julia__panel { background: var(--nougat); padding: 3.5rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .julia__panel { padding: 4rem 3rem; } }
@media (min-width: 1024px) { .julia__panel { padding: 4rem 4.5rem; } }
.julia__role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--xona); }
.julia__panel h2 { margin-top: 1rem; font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.julia__panel p { margin-top: 1.25rem; max-width: 32rem; color: var(--liver); opacity: 0.8; font-size: 1rem; line-height: 1.75; }
.julia__credentials { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; border-top: 1px solid var(--fieltro); padding-top: 1.5rem; max-width: 32rem; }
.julia__credentials dt { font-family: var(--font-display); font-size: 1.1rem; }
.julia__credentials dd { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--xona); }
.julia__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

/* ================= generic section ================= */
.section { padding: 5.5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section--dark { background: var(--liver); color: var(--polvo); }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.section__lead { margin-top: 1rem; max-width: 36rem; color: var(--xona); }
.section__lead--dark { color: rgba(253,253,250,0.65); }

/* ================= team bento ================= */
.team-bento { margin-top: 3rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .team-bento { grid-template-columns: repeat(4, 1fr); } }
.team-bento__item { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1; }
.team-bento__item img { width: 100%; height: 100%; object-fit: cover; }
.team-bento__caption { position: absolute; inset: auto 0 0 0; padding: 1.25rem; background: linear-gradient(to top, rgba(76,68,59,0.85), transparent); color: var(--polvo); }
.team-bento__caption h3 { font-size: 1.05rem; }
.team-bento__caption p { margin-top: 0.2rem; font-size: 0.78rem; color: rgba(253,253,250,0.75); }

/* ================= before/after drag compare ================= */
.ba-tabs { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ba-tab { padding: 0.55rem 1.15rem; border-radius: 999px; font-size: 0.85rem; border: 1px solid rgba(253,253,250,0.25); color: rgba(253,253,250,0.6); transition: all 0.25s; }
.ba-tab:hover { border-color: rgba(253,253,250,0.5); color: var(--polvo); }
.ba-tab.is-active { background: var(--sherbet); border-color: var(--sherbet); color: var(--liver); }
.ba-slider { margin-top: 2.5rem; max-width: 30rem; }
.ba-panel { display: none; }
.ba-panel.is-active { display: block; }
.ba-compare { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; cursor: ew-resize; user-select: none; }
.ba-compare__after, .ba-compare__before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-compare__before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid var(--sherbet); }
.ba-compare__before { width: 100%; height: 100%; object-fit: cover; }
.ba-compare__before-wrap .ba-compare__before { position: absolute; left: 0; top: 0; width: var(--compare-w, 200%); max-width: none; height: 100%; }
.ba-compare__handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sherbet); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.3); pointer-events: none; }
.ba-compare__handle::before { content: "\2194"; color: var(--liver); font-size: 1.1rem; }
.ba-slider__hint { margin-top: 1rem; font-size: 0.78rem; color: rgba(253,253,250,0.5); text-align: center; }

/* ================= gallery ================= */
.gallery { margin-top: 3rem; display: grid; gap: 0.85rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); } }
.gallery__main { grid-column: span 1; }
@media (min-width: 768px) { .gallery__main { grid-column: span 2; grid-row: span 2; } }
.gallery figure { margin: 0; }
.gallery__main video, .gallery__main img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
@media (min-width: 768px) { .gallery__main video, .gallery__main img { height: 100%; } }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.gallery figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--xona); }
.gallery figcaption span { color: rgba(159,147,128,0.7); margin-left: 0.35rem; }

/* ================= reviews marquee ================= */
.reviews-marquee { background: var(--nougat); padding: 5.5rem 0; overflow: hidden; }
.reviews-marquee__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 3rem; }
.reviews-marquee__cta { flex: none; }
.reviews-marquee__track { display: flex; gap: 1.5rem; width: max-content; animation: marquee 42s linear infinite; }
.reviews-marquee:hover .reviews-marquee__track { animation-play-state: paused; }
.review-card { width: 22rem; flex: none; background: var(--polvo); border-radius: 6px; padding: 1.75rem; }
.review-card blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.55; }
.review-card p { margin-top: 1rem; font-size: 0.82rem; color: var(--xona); }
.review-card p span { color: var(--liver); font-weight: 500; margin-right: 0.4rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= faq ================= */
.faq { margin-top: 3rem; border-top: 1px solid var(--fieltro); }
.faq-item { border-bottom: 1px solid var(--fieltro); }
.faq-item__trigger { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; text-align: left; }
.faq-item__trigger span:first-child { font-family: var(--font-display); font-size: 1.1rem; }
.faq-item__plus { font-size: 1.4rem; color: var(--xona); transition: transform 0.3s var(--ease); flex-shrink: 0; font-weight: 300; }
.faq-item[data-open="true"] .faq-item__plus { transform: rotate(45deg); }
.faq-item__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq-item__detail > p { overflow: hidden; }
.faq-item[data-open="true"] .faq-item__detail { grid-template-rows: 1fr; }
.faq-item__detail p { max-width: 42rem; border-left: 2px solid var(--sherbet); padding: 0 0 2rem 1.25rem; margin: 0; font-size: 0.95rem; line-height: 1.7; color: var(--xona); }

/* ================= agendar ================= */
.agendar { display: grid; grid-template-columns: 1fr; background: var(--liver); color: var(--polvo); }
@media (min-width: 1000px) { .agendar { grid-template-columns: 1fr 1fr; } }
.agendar__map { min-height: 20rem; }
@media (min-width: 1000px) { .agendar__map { min-height: 100%; } }
.agendar__map iframe { width: 100%; height: 100%; min-height: 20rem; border: 0; display: block; filter: grayscale(0.4) contrast(1.05); }
.agendar__panel { padding: 4rem 1.5rem; min-width: 0; }
@media (min-width: 768px) { .agendar__panel { padding: 4.5rem 3rem; } }
.agendar__panel > p { margin-top: 1rem; max-width: 30rem; color: rgba(253,253,250,0.65); }
.contact-list { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1.2rem; border-top: 1px solid rgba(253,253,250,0.15); padding-top: 1.5rem; font-size: 0.9rem; max-width: 32rem; }
.contact-list dt { color: rgba(253,253,250,0.5); }
.contact-list dd { margin: 0.25rem 0 0; color: rgba(253,253,250,0.9); }
.contact-list .link-underline { color: rgba(253,253,250,0.9); text-decoration-color: rgba(253,253,250,0.3); }
.contact-list .sep { margin: 0 0.5rem; color: rgba(253,253,250,0.3); }

/* ---- reserva online (widget de Bewe) ---- */
.reserva-online { margin-top: 2.5rem; max-width: 32rem; }
.reserva-online__btn { padding: 0.95rem 2rem; font-size: 1rem; }
.reserva-online__note { margin-top: 1rem; font-size: 0.85rem; line-height: 1.55; color: rgba(253,253,250,0.6); }
.reserva-online__alt { margin-top: 0.9rem; font-size: 0.88rem; color: rgba(253,253,250,0.75); }
.reserva-online__alt .link-underline { color: var(--polvo); text-decoration-color: rgba(253,253,250,0.4); }
.js-reservar.is-loading { opacity: 0.7; cursor: progress; }
/* En celular el widget deja la descripción más ancha que su columna y la corta a la derecha */
@media (max-width: 767px) { .bewe-widget .treatment-row .name { margin-left: 0 !important; width: auto !important; max-width: 100%; } }
body:has(.bewe-widget .v--modal-overlay) .wa-float { display: none; }

/* ================= footer ================= */
.site-footer { background: var(--nougat); border-top: 1px solid var(--fieltro); }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding: 4rem 1.5rem 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; padding: 4.5rem 3rem 2rem; } }
.footer-logo { height: 52px; width: auto; align-self: flex-start; image-rendering: -webkit-optimize-contrast; }
.footer-col p { margin-top: 1rem; font-size: 0.87rem; color: var(--xona); max-width: 20rem; }
.footer-col { display: flex; flex-direction: column; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--liver); opacity: 0.75; margin-bottom: 0.7rem; transition: opacity 0.25s; }
.footer-col a:hover { opacity: 1; }
.site-footer__bottom { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem 1.5rem 2rem; font-size: 0.8rem; color: var(--xona); border-top: 1px solid var(--fieltro); }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; padding: 1.5rem 3rem 2rem; } }

/* ================= whatsapp float ================= */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: var(--sherbet); color: var(--liver); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.25); transition: transform 0.3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reviews-marquee__track { animation: none; }
}
