/* =========================================================
   rgdevstudio · propuesta 3 "Producto"
   Concepto: la web del cliente es el producto. Un móvil en 3D
   (CSS puro) flota sobre un titular gigante y viaja por la página.
   Piedra cálida, tinta y azul cobalto.
   ========================================================= */

:root {
  /* Color */
  --bg: #ECEAE4;
  --bg-2: #E3E0D8;
  --ink: #121214;
  --muted: #5E5C57;
  --line: rgba(18, 18, 20, 0.14);
  --accent: #F0561D;
  --accent-text: #B8410E;     /* naranja oscuro para texto pequeño sobre fondo claro (AA) */
  --accent-light: #FF7A45;    /* naranja para fondos oscuros */
  --on-accent: #121214;       /* texto sobre naranja: tinta, no blanco (contraste AA) */
  --on-ink: #ECEAE4;
  --on-ink-muted: #A3A19B;

  /* Tipo */
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-title: clamp(2.6rem, 1.4rem + 5vw, 6.5rem);

  /* Espacio */
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(5.5rem, 4rem + 7vw, 10rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; font-variation-settings: normal; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 300;
  background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%; max-width: 1360px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.title {
  font-size: var(--fs-title); font-weight: 800; line-height: 0.92; letter-spacing: -0.03em;
  font-variation-settings: "wdth" 72; text-transform: uppercase; text-wrap: balance;
}
.title em { text-transform: none; font-size: 1.05em; color: var(--accent); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 36ch; line-height: 1.5; }

/* Reveal al hacer scroll (solo con JS; sin JS todo está visible) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 0.875rem; }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--accent); color: var(--on-accent); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 30px -12px rgba(240,86,29,.7); }
.btn--accent:hover { background: var(--ink); color: var(--on-ink); box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--on-ink); }
.btn--line-light { color: var(--on-ink); box-shadow: inset 0 0 0 1.5px rgba(236,234,228,.4); }
.btn--line-light:hover { background: var(--on-ink); color: var(--ink); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 120; background: var(--bg); }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding-top: env(safe-area-inset-top, 0px); transition: transform .5s var(--ease); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(236, 234, 228, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-dark { color: var(--on-ink); }
.site-header.on-dark::before { background: rgba(18,18,20,.72); border-bottom-color: rgba(236,234,228,.1); }
.site-header.on-dark .btn--ink { background: var(--on-ink); color: var(--ink); }
.site-header.on-dark .logo span { color: var(--accent-light); }
.header-inner {
  max-width: 1360px; margin-inline: auto; height: var(--header-h);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; font-variation-settings: "wdth" 85; }
.logo span { color: var(--accent-text); }
.nav ul { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a { position: relative; font-size: 0.9rem; font-weight: 500; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 900px) { .nav { display: none; } }

/* ---------- Escena 3D ---------- */
.stage {
  position: absolute; left: 0; right: 0; top: 0; height: 100svh;
  z-index: 40; pointer-events: none; overflow: hidden;
  perspective: 1800px; perspective-origin: 50% 45%;
}
.tour .stage { position: fixed; height: auto; bottom: 0; }

.phone {
  --d: 26px;                /* grosor */
  --r: 50px;                /* radio de las esquinas */
  position: absolute; left: 50%; top: 50%;
  width: 300px; height: 620px; margin: -310px 0 0 -150px;
  transform-style: preserve-3d; will-change: transform;
  transform: translateY(-2vh) scale(.82) rotateZ(4deg) rotateX(8deg) rotateY(-20deg);
}
@media (max-width: 900px) { .phone { transform: translateY(-6vh) scale(.56) rotateZ(4deg) rotateX(8deg) rotateY(-20deg); } }

/* Canto: 12 capas apiladas dan grosor con esquinas redondeadas */
.phone-body, .phone-body i { position: absolute; inset: 0; transform-style: preserve-3d; }
.phone-body i {
  border-radius: var(--r);
  background: linear-gradient(90deg, #1E1F26 0%, #4B4E5A 18%, #2A2C34 50%, #4B4E5A 82%, #1E1F26 100%);
  transform: translateZ(calc(var(--d) / -2 + var(--i) * var(--d) / 11));
}
.phone-body i:nth-child(1), .phone-body i:nth-child(12) { background: linear-gradient(90deg, #2F313A, #6A6D7A 50%, #2F313A); }

.phone-front, .phone-back {
  position: absolute; inset: 0; border-radius: var(--r);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.phone-front { transform: translateZ(calc(var(--d) / 2 + 0.6px)); background: #08080A; box-shadow: inset 0 0 0 1.5px #3A3C45; }
.phone-back {
  transform: rotateY(180deg) translateZ(calc(var(--d) / 2 + 0.6px));
  background:
    radial-gradient(120% 70% at 30% 10%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(160deg, #FF7A3D 0%, #F0561D 45%, #B8360A 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18);
  overflow: hidden;
}
.camera {
  position: absolute; left: 20px; top: 20px; width: 118px; height: 118px; border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(0,0,0,.18)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 6px 14px rgba(0,0,0,.25);
}
.camera i { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4A4F6A 0 12%, #0B0C12 30% 62%, #2C2F3E 64% 100%); box-shadow: 0 0 0 3px rgba(20,22,40,.65); }
.camera i:nth-child(1) { left: 10px; top: 10px; }
.camera i:nth-child(2) { left: 10px; top: 64px; }
.camera i:nth-child(3) { left: 64px; top: 37px; }
.camera b { position: absolute; right: 14px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #FFF4D6; opacity: .8; }
.back-mono { position: absolute; left: 0; right: 0; top: 44%; text-align: center; font-family: var(--serif); font-style: italic; font-size: 92px; line-height: 1; color: rgba(255,255,255,.88); text-shadow: 0 1px 0 rgba(255,255,255,.3), 0 -1px 0 rgba(0,0,0,.2); }
.back-text { position: absolute; left: 0; right: 0; bottom: 42px; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.6); }

.phone-screen { position: absolute; inset: 11px; border-radius: 40px; overflow: hidden; background: #000; }
.island { position: absolute; left: 50%; top: 21px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 3; }
.gloss {
  position: absolute; inset: 0; border-radius: var(--r); pointer-events: none; z-index: 4;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 42%, rgba(255,255,255,.04) 50%, transparent 58%);
  background-size: 260% 100%; background-position: calc(var(--g, .5) * 100%) 0;
}

.phone .screen { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.phone .screen.is-on, :root:not(.js) .phone .screen--chat { opacity: 1; }

.phone-shadow {
  position: absolute; left: 50%; top: 50%; width: 280px; height: 46px; margin: -23px 0 0 -140px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(18,18,20,.32), rgba(18,18,20,0));
  will-change: transform, opacity; opacity: 0;
}
.tour .phone-shadow { opacity: 1; }

/* Halo de luz cobalto detrás del móvil (Servicios y Contacto) */
.phone-glow {
  position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; margin: -380px 0 0 -380px;
  border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background:
    radial-gradient(closest-side, rgba(240,86,29,.5), rgba(240,86,29,.16) 45%, rgba(240,86,29,0) 72%);
}
.phone-glow::before, .phone-glow::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px solid rgba(240,86,29,.4); animation: halo 4s linear infinite;
}
.phone-glow::after { animation-delay: -2s; }
@keyframes halo { 0% { transform: scale(.55); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }

/* Arrastrar para girar (solo en el hero) */
.stage.is-interactive .phone { pointer-events: auto; cursor: grab; touch-action: pan-y; }
.stage.is-interactive .phone.is-dragging { cursor: grabbing; }

/* ---------- Pantallas (diseñadas a 278 x 598 px) ---------- */
.screen { width: 278px; height: 598px; overflow: hidden; font-family: var(--sans); font-size: 12px; line-height: 1.35; font-variation-settings: "wdth" 100; }
.screen-scroll { will-change: transform; transform: translate3d(0, calc(var(--s, 0) * -1px), 0); }
.sb { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 14px 26px 0 30px; font-size: 13px; font-weight: 600; }
.sb-icons { display: flex; gap: 4px; align-items: center; }
.sb-icons i { display: block; width: 14px; height: 9px; border-radius: 2px; background: currentColor; opacity: .85; }
.sb-icons i:nth-child(1) { width: 12px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.sb-icons i:nth-child(3) { width: 20px; border-radius: 3px; }
.sb--dark { color: #F1E3CF; }

/* Le Petit Fleur */
.screen--flor { background: #F7DDE1; color: #3A1E26; }
.fl-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 10px; }
.fl-nav b { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 20px; }
.burger { display: grid; gap: 4px; }
.burger i { display: block; width: 18px; height: 1.5px; background: currentColor; }
.fl-hero { margin: 4px 12px 0; padding: 16px 16px 20px; border-radius: 22px; background: #FBEDEF; display: grid; justify-items: center; text-align: center; gap: 10px; }
.fl-tulips { width: 150px; height: 150px; }
.fl-h { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.08; letter-spacing: -0.01em; }
.fl-btn { background: #E2486B; color: #fff; font-weight: 600; padding: 10px 20px; border-radius: 999px; }
.fl-sec { padding: 22px 18px 10px; font-family: Georgia, serif; font-size: 18px; }
.fl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px; }
.fl-prod { display: grid; gap: 4px; }
.fl-prod i { display: block; aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 50% 40%, var(--c1), var(--c2)); }
.fl-prod b { font-weight: 600; }
.fl-prod em { font-family: var(--sans); font-style: normal; color: #B4405C; font-weight: 600; }
.fl-foot { margin: 22px 0 0; padding: 22px 18px 40px; background: #3A1E26; color: #F7DDE1; display: grid; gap: 4px; }
.fl-foot b { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 18px; }

/* Molí Café */
.screen--cafe { background: #24150F; color: #F1E3CF; }
.mc-top { padding: 10px 20px 0; display: grid; gap: 4px; }
.mc-top b { font-family: var(--sans); font-weight: 800; font-size: 92px; line-height: .85; letter-spacing: -0.05em; font-variation-settings: "wdth" 70; }
.mc-top span { color: #D9A066; font-size: 12px; letter-spacing: .04em; }
.mc-cup { width: 200px; margin: 18px auto 6px; }
.mc-btn { display: block; margin: 6px 20px 0; text-align: center; background: #D9A066; color: #24150F; font-weight: 700; padding: 12px; border-radius: 999px; }
.mc-sec { padding: 26px 20px 10px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #D9A066; }
.mc-menu { display: grid; gap: 10px; padding: 0 20px; font-size: 14px; }
.mc-menu li { display: flex; align-items: baseline; gap: 8px; }
.mc-menu s { flex: 1; border-bottom: 1.5px dotted rgba(241,227,207,.3); text-decoration: none; }
.mc-menu em { font-family: var(--sans); font-style: normal; color: #D9A066; }
.mc-hours { display: grid; gap: 6px; padding: 0 20px; font-size: 13px; }
.mc-hours li { display: flex; justify-content: space-between; }
.mc-map { margin: 20px 20px 40px; height: 130px; border-radius: 16px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(30deg, rgba(241,227,207,.07) 0 2px, transparent 2px 26px), repeating-linear-gradient(-60deg, rgba(241,227,207,.07) 0 2px, transparent 2px 34px), #33211A; }
.mc-map i { position: absolute; left: 50%; top: 42%; width: 22px; height: 22px; margin: -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #D9A066; }

/* Atelier Nou */
.screen--moda { background: #ECE8E1; color: #141414; }
.mn-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.mn-nav b { font-weight: 800; font-size: 15px; letter-spacing: .32em; }
.mn-hero { position: relative; margin: 0 12px; height: 300px; border-radius: 4px; overflow: hidden; background: linear-gradient(180deg, #CFC5B6, #B8AA95); }
.mn-hero i { position: absolute; left: 24%; right: 24%; top: 16%; bottom: 0; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #2A2825, #121110); }
.mn-hero p { position: absolute; left: 16px; bottom: 14px; color: #fff; font-family: Georgia, serif; font-size: 24px; font-style: italic; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.mn-sec { padding: 20px 18px 10px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.mn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 0 12px; }
.mn-item { display: grid; gap: 3px; }
.mn-item i { display: block; height: 150px; border-radius: 2px; background: linear-gradient(170deg, var(--c1), var(--c2)); }
.mn-item em { font-family: var(--sans); font-style: normal; opacity: .65; }
.mn-btn { display: block; margin: 20px 12px 40px; text-align: center; background: #141414; color: #ECE8E1; padding: 13px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

/* Servicios: landing */
.screen--landing { background: #FFFFFF; color: #121214; }
.sv-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 12px; }
.sv-nav b { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.sv-hero { margin: 0 12px; padding: 24px 18px; border-radius: 20px; background: linear-gradient(160deg, #FF7A3D, #C8410C); color: #fff; display: grid; gap: 12px; justify-items: start; }
.sv-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.sv-h { font-size: 26px; font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.sv-btn { background: #fff; color: #121214; font-weight: 700; padding: 10px 18px; border-radius: 999px; }
.sv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 12px 0; }
.sv-cards span { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: #F1F0EC; }
.sv-cards i { display: block; height: 6px; border-radius: 3px; background: #D8D6CF; }
.sv-cards i + i { width: 60%; }
.sv-quote { margin: 14px 12px 0; padding: 16px; border-radius: 16px; background: #F1F0EC; font-family: Georgia, serif; font-style: italic; font-size: 15px; }
.sv-cta { margin: 14px 12px 40px; padding: 18px; border-radius: 16px; background: #121214; color: #fff; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sv-cta b { width: 100%; font-size: 18px; }
.sv-cta span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 600; }

/* Servicios: tienda (cesta y pago) */
.screen--shop { background: #F7F6F3; color: #121214; }
.sh-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 14px; }
.sh-head b { font-size: 17px; font-weight: 800; }
.sh-back { font-size: 22px; line-height: 1; }
.sh-count { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 11px; }
.sh-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; margin: 0 12px 10px; padding: 10px; border-radius: 16px; background: #fff; }
.sh-item i { display: block; width: 64px; height: 64px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, var(--c1), var(--c2)); }
.sh-item span { display: grid; }
.sh-item small { color: #2E9E5B; }
.sh-item em { font-family: var(--sans); font-style: normal; font-weight: 700; }
.sh-sum { display: flex; justify-content: space-between; padding: 10px 22px; font-size: 13px; }
.sh-sum--total { font-size: 18px; border-top: 1px solid rgba(0,0,0,.08); margin: 4px 12px 0; padding: 14px 10px; }
.sh-pay { margin: 12px 12px 0; display: grid; gap: 8px; text-align: center; }
.sh-pay-btn { display: block; padding: 15px; border-radius: 999px; background: #121214; color: #fff; font-weight: 700; font-size: 14px; }
.sh-pay p { color: #8A8880; font-size: 11px; }
.sh-toast { display: flex; align-items: center; gap: 10px; margin: 26px 12px 40px; padding: 12px 14px; border-radius: 14px; background: #E7F6EC; color: #1E7A43; font-weight: 700; }
.sh-toast i { width: 18px; height: 18px; border-radius: 50%; background: #2E9E5B; }
.phone .screen--shop.is-on .sh-toast { animation: toast 2.6s var(--ease) infinite; }
@keyframes toast { 0%, 15% { opacity: 0; transform: translateY(10px); } 30%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Servicios: mantenimiento (panel de estado) */
.screen--care { background: #15110F; color: #F2ECE6; }
.sb--light { color: #E9EAF6; }
.ca-head { display: grid; gap: 2px; padding: 10px 20px 0; }
.ca-head small { color: #8C90B8; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ca-head b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.ca-ring { position: relative; width: 170px; height: 170px; margin: 18px auto 10px; }
.ca-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ca-ring circle { fill: none; stroke: rgba(255,122,69,.15); stroke-width: 9; }
.ca-ring .ca-arc { stroke: var(--accent-light); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 6; }
.phone .screen--care.is-on .ca-arc { animation: arc 1.6s var(--ease) both; }
@keyframes arc { from { stroke-dashoffset: 314; } }
.ca-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ca-ring b { font-size: 26px; font-weight: 800; }
.ca-ring small { color: #8C90B8; }
.ca-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.ca-stats span { display: grid; padding: 12px 14px; border-radius: 14px; background: rgba(255,122,69,.1); }
.ca-stats small { color: #8C90B8; font-size: 11px; }
.ca-stats b { font-size: 18px; }
.ca-log { display: grid; gap: 8px; padding: 14px 14px 40px; }
.ca-log li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
.ca-log i { width: 10px; height: 10px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 10px #3DDC84; flex: none; }
.ca-log span { display: grid; }
.ca-log small { color: #8C90B8; font-size: 11px; }

/* Chat */
.screen--chat { background: #F4F2EE; color: #121214; }
.screen--chat .sb { color: #121214; background: #fff; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.06); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--serif); font-style: italic; font-size: 18px; }
.chat-who { display: grid; line-height: 1.2; }
.chat-who b { font-size: 14px; }
.chat-who small { color: #2E9E5B; font-size: 11px; }
.chat-body { display: grid; gap: 8px; padding: 14px 14px 0; align-content: start; min-height: 430px; }
.chat-day { justify-self: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8A8880; background: rgba(0,0,0,.05); padding: 4px 10px; border-radius: 999px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 13px; line-height: 1.35; }
.bubble--me { justify-self: end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.bubble--them { justify-self: start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.typing { justify-self: start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 16px; border-bottom-left-radius: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #A3A19B; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.chat-input { display: flex; align-items: center; justify-content: space-between; margin: 12px 12px 0; padding: 10px 10px 10px 16px; background: #fff; border-radius: 999px; color: #A3A19B; font-size: 12px; }
.chat-input i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
/* Los mensajes aparecen uno a uno cuando se ve el contacto */
.tour .chat-body > .bubble, .tour .chat-body > .typing { opacity: 0; transform: translateY(10px) scale(.96); }
.tour .phone.is-chat-play .chat-body > .bubble, .tour .phone.is-chat-play .chat-body > .typing {
  animation: pop .5s var(--ease) forwards; animation-delay: calc(var(--d) * 0.9s + .3s);
}
.tour .phone.is-chat-play .chat-body > .typing { animation: pop .4s var(--ease) forwards, vanish .2s 2.8s forwards; animation-delay: 2.1s, 0s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes vanish { to { opacity: 0; height: 0; padding: 0; margin: -8px 0 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(100svh, 640px); overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background:
    radial-gradient(60% 50% at 50% 48%, #F6F4EF 0%, rgba(246,244,239,0) 70%),
    var(--bg);
}
.giant {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-58%);
  display: grid; justify-items: center; pointer-events: none; user-select: none;
  font-weight: 900; text-transform: uppercase; line-height: .8; letter-spacing: -0.04em;
  font-variation-settings: "wdth" 62;
  font-size: clamp(5rem, 19.5vw, 24rem);
  color: var(--ink);
}
.giant-row { display: block; white-space: nowrap; }
.giant-row--b { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.giant .ch { display: inline-block; }
.js .giant .ch { transform: translateY(105%); opacity: 0; animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--n) * 45ms + 150ms); }
.giant-row { overflow: hidden; padding-inline: 0.04em; }
@keyframes rise { to { transform: none; opacity: 1; } }

.hero-slot { position: absolute; left: 50%; top: 50%; width: 300px; height: min(64vh, 600px); transform: translate(-50%, -54%); pointer-events: none; }
.drag-hint {
  position: absolute; left: 50%; top: calc(50% + min(32vh, 300px) - 2vh); transform: translateX(-50%);
  display: none; align-items: center; gap: 8px; z-index: 41; pointer-events: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.drag-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tour .drag-hint { display: inline-flex; transition: opacity .4s; }
.tour .drag-hint.is-gone { opacity: 0; }

.hero-foot { grid-row: 2; position: relative; z-index: 45; display: grid; gap: 28px; padding-bottom: clamp(28px, 4vw, 48px); pointer-events: none; }
.hero-foot a, .hero-foot h1 { pointer-events: auto; }
.hero-title { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; max-width: 15ch; font-variation-settings: "wdth" 85; text-wrap: balance; }
.hero-title em { color: var(--accent); font-size: 1.08em; }
.hero-side { display: grid; gap: 20px; justify-items: start; }
.hero-sub { color: var(--muted); max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 901px) {
  .hero-foot { grid-template-columns: 1fr 1fr; align-items: end; }
  .hero-side { justify-items: end; text-align: right; }
}
@media (max-width: 900px) {
  .hero { grid-template-rows: auto auto auto; min-height: 0; }
  .giant { position: relative; top: auto; transform: none; margin-top: 18px; font-size: 25vw; }
  .hero-slot { position: relative; left: auto; top: auto; transform: none; margin: -4vw auto 0; width: 180px; height: min(360px, 46svh); }
  .drag-hint { position: relative; left: auto; top: auto; transform: none; justify-self: center; margin: 18px 0 6px; }
  .hero-foot { grid-row: auto; padding-top: 18px; }
}

/* ---------- Trabajos ---------- */
.works { position: relative; padding-top: var(--section); }
.works-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 64px); }
.project { display: grid; gap: 32px; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.project-text { display: grid; gap: 18px; align-content: center; min-width: 0; }
.project-num { font-size: 0.8rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-name { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 5rem); font-weight: 800; line-height: .92; letter-spacing: -0.03em; font-variation-settings: "wdth" 72; text-transform: uppercase; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span { font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.project-tags .tag-concept { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.project-case { display: grid; gap: 18px; margin-top: 6px; max-width: 54ch; }
.project-case dt { font-size: 0.78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.project-case dd { color: var(--muted); }

/* Móvil plano para cuando no hay recorrido 3D (móvil, sin JS o movimiento reducido) */
.project-visual { display: grid; place-items: center; min-width: 0; }
.mini-phone {
  position: relative; width: 278px; height: 598px; max-width: 100%;
  border-radius: 44px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 10px #121214, 0 0 0 11.5px #3A3C45, 0 40px 80px -30px rgba(0,0,0,.45);
  transform: scale(.86); transform-origin: top center; margin-bottom: -84px;
}
.mini-phone .screen { position: absolute; inset: 0; }

@media (min-width: 901px) {
  .project { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; min-height: 100svh; align-items: center; }
  .mini-phone { transform: none; margin-bottom: 0; }
}
/* En el recorrido 3D de escritorio el móvil flotante ocupa la columna derecha */
.tour-desk .project-visual .mini-phone { visibility: hidden; }

/* ---------- Servicios ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.services { background: var(--bg-2); }
.services-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service {
  display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 14px;
  padding: clamp(26px, 3vw, 40px); border-radius: 28px; background: var(--bg);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.services-slot { display: none; }
/* Teléfono: ventana fija arriba donde aparece el móvil; cada tarjeta cabe
   entera en el hueco que queda debajo, así se lee sin que nada la tape */
@media (max-width: 900px) {
  .tour .services-slot {
    display: block; position: sticky; z-index: 2; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    height: 34svh; margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
    background: linear-gradient(var(--bg-2) 88%, rgba(227,224,216,0));
  }
  .tour .services-grid { gap: 22svh; padding-top: 4svh; padding-bottom: 18svh; }
  .tour .service { grid-template-rows: auto; gap: 10px; padding: 22px; }
  .tour .service-price { padding-top: 12px; }
  .tour .service.is-current { box-shadow: 0 24px 50px -30px rgba(18,18,20,.45); }
}
@media (min-width: 901px) {
  .tour-desk .services-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }
  .tour-desk .services-slot { display: block; grid-column: 1; grid-row: 1 / span 3; }
  .tour-desk .service { grid-column: 2; margin-block: 14vh; transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .6s var(--ease); }
  .tour-desk .service.is-current { box-shadow: 0 30px 70px -36px rgba(18,18,20,.45); transform: translateY(-4px); }
}
.js .service.is-in:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(18,18,20,.35); }
.service-time { font-size: 0.78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.service-name { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 800; line-height: .95; letter-spacing: -0.02em; text-transform: uppercase; font-variation-settings: "wdth" 72; }
.service-desc { color: var(--muted); }
.service-price { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; padding-top: 18px; border-top: 1px solid var(--line); }
.service-price small { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.service-link { font-weight: 600; color: var(--accent-text); }
.service-link span { display: inline-block; transition: transform .4s var(--ease); }
.service-link:hover span { transform: translateX(5px); }
.service--feature { background: var(--accent); color: var(--on-accent); }
.service--feature .service-time, .service--feature .service-desc, .service--feature .service-price small { color: rgba(18,18,20,.72); }
.service--feature .service-price { border-top-color: rgba(18,18,20,.2); }
.service--feature .service-link { color: var(--on-accent); }

/* ---------- Proceso ---------- */
.process-track { position: relative; }
.process-line { position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.process-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 1)); }
.steps { display: grid; gap: 40px; padding-left: 68px; }
.step { position: relative; display: grid; gap: 8px; }
.step-num {
  position: absolute; left: -68px; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent);
  font-weight: 700; color: var(--accent-text); transition: background-color .4s, color .4s;
}
.step.is-on .step-num { background: var(--accent); color: var(--on-accent); }
.step h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: -0.01em; font-variation-settings: "wdth" 75; }
.step p { color: var(--muted); max-width: 30ch; }
@media (min-width: 1000px) {
  .process-line { left: 0; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; }
  .process-line i { transform-origin: left; transform: scaleX(var(--p, 1)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-left: 0; padding-top: 72px; }
  .step-num { left: 0; top: -72px; }
}

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
/* Tarjeta de compromisos (en lugar de foto) */
.about-card {
  position: relative; overflow: hidden; display: grid; gap: 28px; max-width: 480px; width: 100%;
  padding: clamp(28px, 4vw, 44px); border-radius: 28px; color: var(--on-accent);
  background: radial-gradient(120% 90% at 20% 0%, #FF8A52, var(--accent) 55%, #E24E17 100%);
}
.about-card-mono {
  position: absolute; right: -0.06em; top: -0.2em; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-size: clamp(12rem, 26vw, 18rem); line-height: 1; color: rgba(18,18,20,.12);
}
.about-card-list { position: relative; display: grid; gap: 20px; }
.about-card-list li { display: grid; gap: 2px; padding-top: 18px; border-top: 1px solid rgba(18,18,20,.2); }
.about-card-list li:first-child { border-top: 0; padding-top: 0; }
.about-card-list b { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-variation-settings: "wdth" 75; }
.about-card-list span { color: rgba(18,18,20,.86); }
@media (max-width: 899px) { .about-card { order: 2; } }
.about-card-sign { position: relative; font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.about-text { display: grid; gap: 22px; min-width: 0; }
.about-lead { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.35; letter-spacing: -0.01em; max-width: 34ch; font-weight: 500; }
.about-body { color: var(--muted); max-width: 52ch; }

/* ---------- FAQ ---------- */
@media (min-width: 1000px) { .faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem); font-weight: 600; transition: color .3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item summary i { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .4s, transform .5s var(--ease); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 11px; right: 11px; top: 17px; height: 2px; background: currentColor; transition: transform .5s var(--ease); }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i { background: var(--accent); color: var(--on-accent); box-shadow: none; transform: rotate(180deg); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-answer { padding: 0 52px 26px 0; }
.faq-answer p { color: var(--muted); max-width: 60ch; }

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: var(--on-ink); padding-block: var(--section); position: relative; }
.contact .kicker, .contact .lead, .contact-mail { color: var(--on-ink-muted); }
.contact .title em { color: var(--accent-light); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 901px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.contact-main { display: grid; gap: 24px; min-width: 0; }
.contact-slot { display: none; }
@media (min-width: 901px) { .tour-desk .contact-slot { display: block; height: min(70vh, 620px); } }
.contact-mail a { color: var(--on-ink); border-bottom: 1px solid rgba(236,234,228,.3); }
.contact-mail a:hover { border-color: var(--on-ink); }

.form { display: grid; gap: 22px; margin-top: 12px; }
.hp { position: absolute; left: -9999px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .choices legend { font-size: 0.85rem; font-weight: 600; color: var(--on-ink-muted); }
.opt { font-weight: 400; opacity: .8; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--on-ink); background: rgba(236,234,228,.06);
  border: 1px solid rgba(236,234,228,.16); border-radius: 14px; padding: 14px 16px; outline: none; resize: vertical;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent-light); background: rgba(236,234,228,.1); box-shadow: 0 0 0 4px rgba(255,122,69,.22); }
.field.is-invalid input { border-color: #FF8A6B; }
.field-error { font-size: 0.875rem; color: #FF9B80; }
.field-error:empty { display: none; }
.choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 10px; }
.choices-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.choice span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(236,234,228,.22); font-weight: 500; font-size: 0.9rem; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.choice:hover span { box-shadow: inset 0 0 0 1px var(--on-ink); }
.choice input:checked + span { background: var(--on-ink); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-status { font-size: 0.9rem; color: var(--on-ink-muted); min-height: 1.4em; }
.form-status.is-error { color: #FF9B80; }
.form-success { display: grid; gap: 10px; padding: 24px; border-radius: 20px; background: rgba(236,234,228,.06); }
.form-success h3 { font-size: 1.75rem; font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 75; }
.form-success p { color: var(--on-ink-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer-word {
  font-weight: 900; text-transform: uppercase; font-variation-settings: "wdth" 62; letter-spacing: -0.04em; line-height: .8;
  font-size: clamp(3.5rem, 17vw, 18rem); color: var(--on-ink); white-space: nowrap; width: max-content; max-width: 100%; border-top: 1px solid rgba(236,234,228,.12); padding-top: 40px;
}
.footer-word span { color: var(--accent-light); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; font-size: 0.875rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--on-ink); }
.footer-links a:hover { color: var(--accent-light); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .giant .ch { transform: none; opacity: 1; }
}
