/* Sculpt Art — propuesta de rediseño */
:root {
  --ivory: #faf6f1;
  --paper: #ffffff;
  --sand: #f1e9df;
  --line: #e7ddd2;
  --ink: #1f1a1d;
  --muted: #6b6267;
  --wine: #5e1428;
  --wine-2: #7b2139;
  --rose: #d9b8b0;
  --gold: #b48a5a;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(60, 20, 35, .35);
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--wine-2); margin-bottom: 1.1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-2); }
.btn-ghost { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn-ghost:hover { background: var(--wine); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn svg { width: 18px; height: 18px; }

/* Top bar + header */
.topbar { background: var(--wine); color: #f6e9ec; font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar span + span, .topbar a + span { margin-left: 22px; }
header.site {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
}
.brand-name { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; line-height: 1; color: var(--wine); }
.brand-name small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 600; }
nav.main { display: flex; align-items: center; gap: 6px; }
nav.main > a, nav.main .dd > button {
  font: 600 .92rem var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0;
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
}
nav.main > a, nav.main .dd > button, .header-cta { white-space: nowrap; }
.header-cta { padding: .8rem 1.4rem; }
nav.main > a:hover, nav.main .dd > button:hover, nav.main .dd:focus-within > button { background: var(--sand); }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-size: .92rem; font-weight: 500; }
.dd-menu a:hover { background: var(--sand); }
.dd-menu .grp { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 4px; font-weight: 700; }
.burger { display: none; background: none; border: 1.5px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; margin: auto; content: ""; }
.burger span::before { position: absolute; top: -6px; left: 0; }
.burger span::after { position: absolute; top: 6px; left: 0; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--wine-2); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 2rem 0 2.2rem; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.arch {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #e9cfc7 0%, #d5a99f 45%, #8e3a4c 100%); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.arch::before { content: ""; position: absolute; inset: 14px; border-radius: 999px 999px 18px 18px; border: 1px solid rgba(255,255,255,.55); }
.ph-label { color: #fff; font-size: .82rem; letter-spacing: .06em; padding: 0 28px; text-align: center; opacity: .95; font-weight: 600; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; left: -22px; bottom: 28px; background: var(--paper); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow); font-size: .85rem; max-width: 220px; z-index: 2;
}
.float-card b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--wine); line-height: 1; }
.hero-visual { position: relative; }

/* Trust strip */
.strip { background: var(--wine); color: #fff; padding: 26px 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.strip b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.strip span { font-size: .85rem; opacity: .85; }

/* Approach */
.approach .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.pillars { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 14px; }
.pillars li { display: flex; gap: 14px; align-items: flex-start; }
.pillars .dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sand); color: var(--wine); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.pillars b { display: block; }
.pillars span { color: var(--muted); font-size: .95rem; }
.quote-card {
  background: var(--sand); border-radius: var(--radius); padding: clamp(28px, 4vw, 52px);
  font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; color: var(--wine);
}
.quote-card i { display: block; margin-top: 1.4rem; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); }

/* Treatments */
.treatments { background: var(--paper); }
.tabs { display: flex; gap: 8px; justify-content: center; margin: 2.2rem 0 2.6rem; flex-wrap: wrap; }
.tab { font: 700 .9rem var(--sans); padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: none; cursor: pointer; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px;
  display: flex; flex-direction: column; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--rose); }
.card .tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.card h3 { font-size: 1.7rem; margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .go { font-weight: 700; font-size: .9rem; color: var(--wine); display: flex; gap: 8px; align-items: center; }
.card[hidden] { display: none; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 3rem; counter-reset: s; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--rose); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 2.6rem; color: var(--wine); line-height: 1; display: block; margin-bottom: 10px; font-weight: 600; }
.step h3 { font-family: var(--sans); font-size: 1rem; font-weight: 800; margin-bottom: .4em; letter-spacing: 0; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Before / after */
.results { background: var(--sand); }
.ba { position: relative; max-width: 780px; margin: 2.6rem auto 1rem; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; }
.ba .pane { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 34px !important; color: #fff; font-weight: 700; letter-spacing: .04em; text-align: center; padding: 20px; }
.ba .after { background: linear-gradient(135deg, #c98d8d, #7b2139); }
.ba .before { background: linear-gradient(135deg, #b9aaa2, #6f625d); clip-path: inset(0 50% 0 0); }
.ba .badge { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.35); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ba .before .badge { left: 16px; } .ba .after .badge { right: 16px; }
.ba .bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba .bar::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--wine); display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.note { font-size: .85rem; color: var(--muted); text-align: center; max-width: 62ch; margin: 1rem auto 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 3rem; }
.person { text-align: center; }
.person .photo { aspect-ratio: 4 / 5; border-radius: 999px 999px 20px 20px; background: linear-gradient(170deg, #ecd9d2, #c99d95); margin-bottom: 20px; display: grid; place-items: end center; overflow: hidden; }
.person .photo .ph-label { color: rgba(255,255,255,.95); }
.person h3 { margin-bottom: .15em; }
.person .role { color: var(--wine-2); font-weight: 700; font-size: .88rem; margin-bottom: .7rem; }
.person p { color: var(--muted); font-size: .95rem; max-width: 34ch; margin-inline: auto; }

/* FAQ */
.faq { background: var(--paper); }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { list-style: none; cursor: pointer; font-weight: 700; padding: 20px 40px 20px 0; position: relative; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--wine); font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 62ch; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--sand); color: var(--wine); display: grid; place-items: center; }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list b { display: block; }
.info-list span { color: var(--muted); font-size: .95rem; }
.map-ph { margin-top: 26px; aspect-ratio: 16 / 9; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #efe6dc, #efe6dc 14px, #e8ddd1 14px, #e8ddd1 28px); display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: .9rem; border: 1px solid var(--line); text-align: center; padding: 16px; }
form.book { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
form.book h3 { margin-bottom: .3em; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--ivory); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine-2); box-shadow: 0 0 0 4px rgba(123, 33, 57, .12); }
.field textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form-ok { display: none; padding: 14px 16px; border-radius: 12px; background: #e8f5ec; color: #1a5b34; font-weight: 600; margin-top: 14px; }

/* Footer */
footer.site { background: #1a0f14; color: #d8ccd0; padding: 64px 0 28px; font-size: .92rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer.site h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { text-decoration: none; opacity: .85; } footer.site a:hover { opacity: 1; text-decoration: underline; }
footer.site .brand-name { color: #fff; }
footer.site .legal { border-top: 1px solid #3a2a31; margin-top: 44px; padding-top: 22px; font-size: .8rem; opacity: .7; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.28); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* Treatment page */
.crumbs { font-size: .85rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.t-hero { padding: 30px 0 clamp(50px, 7vw, 90px); }
.t-hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.t-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 2rem; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.fact small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact b { font-size: .98rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--wine); display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 2px; }
.timeline { display: grid; gap: 0; margin-top: 2.4rem; border-left: 2px solid var(--rose); margin-left: 8px; }
.tl { padding: 0 0 30px 30px; position: relative; }
.tl::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--wine); border: 3px solid var(--ivory); }
.tl b { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); display: block; }
.tl p { color: var(--muted); margin: 0; }
.cta-band { background: var(--wine); color: #fff; text-align: center; border-radius: 28px; padding: clamp(40px, 6vw, 72px) 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f0dde2; max-width: 52ch; margin-inline: auto; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; } .cta-band .btn-ghost:hover { background: #fff; color: var(--wine); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1080px) {
  .burger { display: block; }
  nav.main {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 14px 20px 22px; display: none; max-height: calc(100vh - 76px); overflow: auto;
  }
  nav.main.open { display: flex; }
  nav.main > a, nav.main .dd > button { text-align: left; padding: 14px 8px; width: 100%; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 10px; background: transparent; }
  .hero .wrap, .approach .wrap, .contact .wrap, .t-hero .wrap, .two { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .float-card { left: 6px; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .team-grid, .related { grid-template-columns: 1fr; }
  .team-grid .person { max-width: 340px; margin-inline: auto; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar .hide-sm { display: none; }
  footer.site .cols { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

/* ===== Hero 3D: la modelo sigue el cursor ===== */
.btn-light { background: #fff; color: var(--wine); }
.btn-light:hover { background: var(--sand); }
.hero3d {
  position: relative; overflow: hidden; color: #fff; padding: 0; isolation: isolate;
  min-height: clamp(640px, calc(100dvh - 108px), 860px); display: flex; flex-direction: column;
  background: radial-gradient(ellipse 60% 70% at 50% 45%, #5b2035 0%, #24101a 55%, #120a0f 100%);
  touch-action: pan-y; cursor: crosshair;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1s; }
.hero3d.has-frames .hero-canvas { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,10,15,.35) 0%, transparent 30%, transparent 45%, rgba(18,10,15,.85) 100%);
}
.hero-word {
  position: absolute; z-index: 0; left: 0; right: 0; top: 46%; transform: translateY(-50%); text-align: center; pointer-events: none;
  font-family: var(--serif); font-weight: 700; font-size: clamp(110px, 27vw, 430px); line-height: 1; letter-spacing: -.02em;
  background: radial-gradient(circle, rgba(217,184,176,0) 0%, #d9b8b0 75%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; opacity: .16; white-space: nowrap; user-select: none;
}
.hero-content { position: relative; z-index: 2; margin-top: auto; padding: 0 0 clamp(70px, 9vh, 96px); pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero3d h1 {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 clamp(18px, 3vh, 32px);
  font-size: clamp(2.5rem, 7.2vw, 6.4rem); line-height: .95; font-weight: 500; letter-spacing: -.02em;
}
.hero3d h1 .hr { text-align: right; } .hero3d h1 em { font-style: italic; color: var(--rose); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.hero-row .eyebrow { color: var(--rose); margin-bottom: .6rem; }
.hero-row .lead { color: rgba(255,255,255,.72); font-size: 1rem; max-width: 46ch; margin: 0; }
.hero3d .hero-cta { margin: 0; }
.hero-hint {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; text-align: center; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.6); pointer-events: none; transition: opacity .6s;
}
.hero-hint .h-touch { display: none; }
@media (hover: none) { .hero-hint .h-mouse { display: none; } .hero-hint .h-touch { display: inline; } }
.hero-hint::before, .hero-hint::after { content: "←"; display: inline-block; margin: 0 10px; animation: nudge 1.6s ease-in-out infinite; }
.hero-hint::after { content: "→"; animation-direction: reverse; }
@keyframes nudge { 50% { transform: translateX(-6px); } }
.hero3d.moved .hero-hint { opacity: 0; }
.hero-note {
  position: absolute; z-index: 3; top: 18px; right: 18px; display: none; background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 12px; font-size: .78rem; max-width: 300px; pointer-events: none;
}
.hero-note code { background: rgba(0,0,0,.3); padding: 1px 6px; border-radius: 6px; }
.hero3d.no-frames .hero-note { display: block; }
@media (max-width: 700px) {
  .hero3d { min-height: 780px; }
  .hero-canvas { height: 64%; }                       /* la modelo ocupa la parte alta */
  .hero-shade { background: linear-gradient(180deg, rgba(18,10,15,.25) 0%, transparent 25%, transparent 42%, #120a0f 66%); }
  .hero-word { top: 30%; }
  .hero3d h1 { flex-direction: column; align-items: flex-start; gap: 4px; font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero3d h1 .hr { text-align: left; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-row .lead, .hero-row .eyebrow { display: none; }
}

/* ===== Carrusel curvo 3D (arrastrable) ===== */
.videos { background: var(--paper); overflow: hidden; }
.ring3d {
  --w: 210px; --h: 373px; --R: 820px; --step: 15deg;
  position: relative; height: calc(var(--h) + 90px); margin-top: 2rem; perspective: var(--R); perspective-origin: 50% 50%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ring3d.dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.reel {
  position: absolute; width: var(--w); height: var(--h); left: calc(var(--w) / -2); top: calc(var(--h) / -2);
  backface-visibility: hidden; cursor: inherit;
}
.reel .rin {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  background: linear-gradient(165deg, #ecd9d2, #b97f86 60%, #6b1f36);
  box-shadow: 0 20px 40px -18px rgba(60,20,35,.5);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.reel:nth-child(even) .rin { background: linear-gradient(165deg, #e6d5cb, #b38c80 60%, #5e1428); }
@media (hover: hover) {
  .reel:hover .rin { transform: scale(1.1); box-shadow: 0 34px 60px -20px rgba(60,20,35,.7); }
}
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.reel .play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--wine); display: grid; place-items: center; transition: opacity .2s, transform .2s;
}
.reel .play svg { width: 24px; height: 24px; margin-left: 3px; }
.reel:hover .play { transform: scale(1.08); }
.reel.playing .play { opacity: 0; pointer-events: none; }
.reel .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff; font-weight: 700; font-size: .85rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); pointer-events: none; }
.reel .cap small { font-weight: 500; opacity: .85; }
.reel.playing .cap { opacity: 0; }
.reel.nofile .cap small::after { content: " · archivo pendiente"; }
.ring-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: #fff; color: var(--wine); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.ring-arrow.prev { left: max(14px, 3vw); } .ring-arrow.next { right: max(14px, 3vw); }
@media (max-width: 700px) { .ring-arrow { display: none; } }

/* ===== Casos antes y después ===== */
.case-pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.pair { background: var(--paper); border-radius: var(--radius); padding: 12px 12px 14px; box-shadow: var(--shadow); }
.pair .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); }
.pair img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pair .tag {
  position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(20,10,15,.62);
  color: #fff; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; backdrop-filter: blur(4px);
}
.pair .tag-after { background: var(--wine); }
.pair .view { text-align: center; font-weight: 700; margin-top: 12px; font-size: .95rem; color: var(--wine); }
@media (max-width: 900px) { .case-pairs { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ===== Casos: tarjetas y grupos ===== */
.cases { display: grid; gap: 28px; margin-top: 2.6rem; }
.case { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 32px); text-align: left; }
.case-title { font-size: 1.7rem; margin: 0 0 1rem; color: var(--wine); }
.case-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.group { background: var(--paper); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.col-tag {
  display: inline-block; margin: 2px 0 10px 4px; padding: 4px 12px; border-radius: 999px; background: rgba(20,10,15,.78);
  color: #fff; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.col-tag.tag-after { background: var(--wine); }
.shots { display: grid; gap: 8px; }
.shots.s2 { grid-template-columns: repeat(2, 1fr); }
.shots.s3 { grid-template-columns: repeat(3, 1fr); }
.shots figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sand); }
.shots img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
@media (max-width: 900px) {
  .case-pairs { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .case-groups { grid-template-columns: 1fr; }
}

/* ===== Casos: rejilla uniforme ===== */
/* 12 columnas: un par ocupa 4 y cada foto mide lo mismo en los tres casos */
.case-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; text-align: left; }
.case-grid > .pair { grid-column: span 4; }
.case-grid.two > .pair:nth-child(1) { grid-column: 3 / span 4; }
.case-grid.two > .pair:nth-child(2) { grid-column: 7 / span 4; }
.case-grid.mix > .group:nth-child(1) { grid-column: 2 / span 4; }
.case-grid.mix > .group:nth-child(2) { grid-column: 6 / span 6; }
.case-grid .group { padding: 12px 12px 14px; }
.case-grid .shots { gap: 8px; }
@media (max-width: 900px) {
  .case-grid, .case-grid.two, .case-grid.mix { display: flex; flex-direction: column; gap: 18px; max-width: 520px; margin-inline: auto; }
}
/* iguala el tamano de las 3 fotos del grupo con el de los pares (misma medida a cualquier ancho) */
.case-grid.mix .shots.s3 { padding-inline: 9.5px; }
@media (max-width: 900px) {
  /* en celular las 3 fotos van en 2 columnas para medir igual que las de los pares */
  .case-grid.mix .shots.s3 { grid-template-columns: repeat(2, 1fr); padding-inline: 0; }
}

/* ===== Logo, equipo y redes ===== */
.brand-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 18px -10px rgba(40, 10, 70, .7); flex: none; }
.footer-logo { width: 170px; height: 170px; border-radius: 22px; margin-bottom: 4px; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.person .photo.mono { place-items: center; }
.person .photo.mono span { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 4.6rem); font-weight: 600; letter-spacing: .06em; color: var(--wine); opacity: .9; }
.person .social {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--wine); font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.person .social:hover { border-color: var(--wine); transform: translateY(-2px); }
.person .social svg { width: 18px; height: 18px; }

/* ===== Mapa ===== */
.map { margin-top: 26px; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-btn { margin-top: 14px; }
.info-list a { color: var(--wine); font-weight: 700; }

/* fondos alternados tras reordenar las secciones */
#equipo { background: var(--sand); }
.approach { padding-block: clamp(48px, 7vw, 88px); }

/* ===== Tarjeta de filosofia con foto ===== */
.quote-card {
  position: relative; overflow: hidden; padding: 0; aspect-ratio: 4 / 3; display: flex; align-items: center;
  background: var(--sand); box-shadow: var(--shadow); font-size: 1rem;
}
.quote-card .qc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.quote-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(250,246,241,.86) 0%, rgba(250,246,241,.55) 36%, rgba(250,246,241,0) 62%);
}
.quote-card .qc-text {
  position: relative; z-index: 2; max-width: 54%; padding: clamp(24px, 4vw, 52px);
  font-family: var(--serif); font-size: clamp(1.7rem, 2.7vw, 2.5rem); line-height: 1.2; color: var(--wine);
}
.quote-card .qc-text i { color: var(--ink); opacity: .75; }
@media (max-width: 900px) {
  .quote-card { aspect-ratio: auto; min-height: 440px; align-items: flex-end; }
  .quote-card .qc-img { object-position: 78% 30%; }
  .quote-card::after { background: linear-gradient(0deg, rgba(250,246,241,.94) 0%, rgba(250,246,241,.7) 42%, rgba(250,246,241,0) 72%); }
  .quote-card .qc-text { max-width: 100%; }
}
.quote-card .qc-text { text-wrap: balance; font-size: clamp(1.6rem, 2.3vw, 2.1rem); max-width: 58%; }
@media (max-width: 900px) { .quote-card .qc-text { max-width: 100%; font-size: clamp(1.6rem, 5vw, 2.1rem); } }

/* ===== Imagenes en tratamientos y tarjeta de filosofia (version final) ===== */
.card { overflow: hidden; }
.card .thumb { margin: -30px -26px 22px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .thumb img { transform: scale(1.07); }

/* Filosofia: el texto va abajo (sobre el hombro y la toalla) para no tapar el rostro */
.quote-card { aspect-ratio: 1 / 1; align-items: flex-end; }
.quote-card .qc-img { object-position: center 35%; }
.quote-card::after { background: linear-gradient(0deg, rgba(250,246,241,.96) 0%, rgba(250,246,241,.8) 30%, rgba(250,246,241,0) 58%); }
.quote-card .qc-text { max-width: 100%; font-size: clamp(1.5rem, 2.1vw, 1.95rem); }
@media (max-width: 900px) {
  .quote-card { aspect-ratio: auto; min-height: 460px; }
  .quote-card .qc-text { font-size: clamp(1.5rem, 5vw, 2rem); }
}
