/* ============================================================
   Alkoba · piezas propias del demo (sobre app.css)
   ============================================================ */
.cab h1, .hub__h, .mod__t, .h2, .hall__t, .fase h3, .tour-card h4, .tour-invita h3 { font-weight: 500; }
.hub__h { font-weight: 400; }
.hub__h em { color: var(--greige); }
.mod__t { font-size: 26px; }
.kpi__v, .hub__kpi b, .anillo b, .metric-mini b { font-weight: 600; }
.gate__logo { width: min(260px, 64vw); }
.gate__t { font-weight: 500; font-size: 28px; }
.hub__top img, .side__logo img { height: 30px; }
.tel__top img { height: 18px; }
.wipe { background: linear-gradient(120deg, var(--espresso), var(--nogal-osc) 55%, var(--nogal)); }
.wipe img { width: 150px; }

/* ---------- fotos ---------- */
.foto { position: relative; border-radius: 14px; overflow: hidden; background: var(--greige-2) center/cover; }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.foto:hover img { transform: scale(1.05); }
.foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: 12px; background: linear-gradient(180deg, transparent, rgba(20, 17, 15, .78)); }
.foto figcaption b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.1; }

.gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 10px; }
.gal .foto { cursor: zoom-in; margin: 0; }
.gal .foto.alto { grid-row: span 2; }
.gal .foto.ancho { grid-column: span 2; }

.pj { padding: 0; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .35s, box-shadow .35s; }
.pj:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); }
.pj__f { height: 220px; background: var(--greige-2) center/cover; position: relative; }
.pj__f::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20, 17, 15, .7)); }
.pj__f h3 { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; margin: 0; color: #fff; font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.05; }
.pj__f small { display: block; font-family: var(--sans); font-size: 11.5px; opacity: .85; margin-top: 4px; }
.pj__c { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pj__c p { margin: 0; font-size: 12.5px; color: var(--tinta-2); }
.pj.on { outline: 2px solid var(--nogal); outline-offset: 2px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 140; background: rgba(14, 12, 10, .92); display: grid; place-items: center; padding: 30px; animation: fadeUp .3s both; }
.lb img { max-height: 86vh; max-width: 92vw; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb__x, .lb__a { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; display: grid; place-items: center; }
.lb__x { top: 18px; right: 18px; }
.lb__a.izq { left: 18px; top: 50%; } .lb__a.der { right: 18px; top: 50%; }
.lb__t { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: 12.5px; }

/* antes / después */
.ba { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: #000; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__d { clip-path: inset(0 0 0 var(--x, 50%)); }
.ba__l { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; background: #fff; transform: translateX(-1.5px); box-shadow: 0 0 18px rgba(0, 0, 0, .4); pointer-events: none; }
.ba__l::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--nogal); display: grid; place-items: center; font-size: 18px; font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.ba__tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(20, 17, 15, .65); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.ba__tag.a { left: 12px; } .ba__tag.d { right: 12px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- maqueta del sitio web ---------- */
.nav-mock { border-radius: 16px; border: 1px solid var(--linea); overflow: hidden; background: #fff; box-shadow: var(--sombra-2); }
.nav-mock__bar { background: #EFEAE3; padding: 9px 14px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--gris); }
.nav-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3CAC0; display: inline-block; }
.nav-mock__url { flex: 1; background: #fff; border-radius: 8px; padding: 4px 10px; margin-left: 8px; color: var(--tinta-2); font-weight: 600; }
.sw { height: 640px; overflow-y: auto; scrollbar-width: thin; }
.sw__nav { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 14px 26px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.sw__nav img { height: 18px; }
.sw__nav nav { display: flex; gap: 18px; font-size: 12px; font-weight: 600; color: var(--tinta-2); }
.sw__hero { position: relative; height: 380px; background: center/cover; display: flex; align-items: flex-end; padding: 30px; color: #fff; }
.sw__hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 17, 15, .05), rgba(20, 17, 15, .72)); }
.sw__hero > div { position: relative; max-width: 520px; }
.sw__hero h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin: 0 0 10px; }
.sw__hero p { margin: 0 0 16px; font-size: 13.5px; opacity: .88; }
.sw__sec { padding: 28px 26px; }
.sw__sec h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 4px; }
.sw__eye { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--nogal); font-weight: 700; }
.sw__srv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.sw__srv div { border: 1px solid var(--linea); border-radius: 12px; padding: 14px; font-size: 12px; color: var(--tinta-2); }
.sw__srv b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--tinta); margin: 6px 0 2px; }
.sw__srv svg { width: 22px; height: 22px; color: var(--nogal); }
.sw__pj { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.sw__pj .foto { height: 200px; }
.sw__form { background: var(--espresso); color: #fff; border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sw__form h3 { grid-column: 1 / -1; color: #fff; }
.sw__form input, .sw__form select { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: 500 12.5px var(--sans); }
.sw__form select option { color: #000; }
.sw__form .btn { grid-column: 1 / -1; justify-content: center; background: var(--greige); color: var(--espresso); }

/* ---------- kanban de proyectos ---------- */
.kb { display: grid; grid-template-columns: repeat(7, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kb__col { background: #EFEAE3; border-radius: 14px; padding: 10px; min-height: 260px; }
.kb__h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-2); padding: 4px 4px 10px; }
.kb__h span { background: #fff; border-radius: 99px; padding: 1px 8px; color: var(--nogal); }
.kb__c { background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 8px; box-shadow: var(--sombra); font-size: 12px; cursor: pointer; border: 1px solid transparent; transition: .2s; animation: feedIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.kb__c:hover { border-color: var(--greige); transform: translateY(-2px); }
.kb__c.on { border-color: var(--nogal); }
.kb__c .th { height: 70px; border-radius: 8px; background: var(--greige-2) center/cover; margin-bottom: 8px; }
.kb__c b { display: block; font-size: 12.5px; }
.kb__c small { color: var(--gris); font-size: 11px; }
.kb__c .pie { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; flex-wrap: wrap; }

.gantt { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; align-items: center; font-size: 12px; }
.gantt__esc { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 10.5px; color: var(--gris); border-bottom: 1px solid var(--linea); padding-bottom: 4px; }
.gantt__r { position: relative; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), #EFEAE3 calc(100% / 12 - 1px) calc(100% / 12)); border-radius: 6px; }
.gantt__r i { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; transform-origin: left; animation: crecer .9s cubic-bezier(.2, .8, .2, 1) both; }
.gantt__hoy { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--rojo); }
@keyframes crecer { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- cotizador ---------- */
.piezas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.piezas button { border: 1px solid var(--linea); background: #fff; border-radius: 12px; padding: 10px; text-align: left; font-size: 12px; font-weight: 600; color: var(--tinta); transition: .2s; }
.piezas button svg { width: 22px; height: 22px; color: var(--nogal); display: block; margin-bottom: 6px; }
.piezas button.on { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.piezas button.on svg { color: var(--greige); }
.mats { display: flex; flex-wrap: wrap; gap: 8px; }
.mat { display: flex; align-items: center; gap: 8px; border: 1px solid var(--linea); background: #fff; border-radius: 99px; padding: 5px 12px 5px 5px; font-size: 12px; font-weight: 600; color: var(--tinta-2); transition: .2s; }
.mat i { width: 24px; height: 24px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.mat.on { border-color: var(--nogal); color: var(--nogal); box-shadow: 0 0 0 3px rgba(123, 91, 65, .12); }
.alzado { background: linear-gradient(180deg, #FBF8F4, #F1EAE2); border-radius: 14px; padding: 14px; height: 300px; display: grid; place-items: center; }
.alzado svg { width: 100%; height: 100%; }
.precio-big { font-family: var(--serif); font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.desg div { display: flex; justify-content: space-between; font-size: 12.5px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .1); gap: 10px; }
.desg div:first-child { border-top: 0; }

/* corte de placas */
.placa { background: #fff; border-radius: 10px; border: 1px solid var(--linea); padding: 8px; }
.placa svg { width: 100%; height: auto; display: block; }
.placa rect.pz { transition: opacity .3s; }
.placa:hover rect.pz { opacity: .85; }

/* ---------- Instagram ---------- */
.igg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 12px; overflow: hidden; }
.igg div { position: relative; aspect-ratio: 4 / 5; background: var(--greige-2) center/cover; }
.igg div span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; color: #fff; font-size: 11px; font-weight: 700; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .65)); }
.igg div span small { font-weight: 500; opacity: .8; }
.igg .fij::after { content: 'FIJADO'; position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800; letter-spacing: .08em; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 6px; border-radius: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal div { background: #fff; border: 1px solid var(--linea); border-radius: 10px; min-height: 78px; padding: 6px; font-size: 10.5px; color: var(--gris); }
.cal div b { display: block; font-size: 11px; color: var(--tinta-2); }
.cal .ev { margin-top: 4px; padding: 4px 6px; border-radius: 6px; font-weight: 600; color: #fff; font-size: 10.5px; line-height: 1.25; }
.cal .h { background: transparent; border: 0; min-height: 0; text-align: center; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- portal del cliente ---------- */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--linea); }
.tl__i { position: relative; margin-bottom: 12px; font-size: 12px; }
.tl__i::before { content: ''; position: absolute; left: -21px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--greige); }
.tl__i.ok::before { background: var(--verde); border-color: var(--verde); }
.tl__i.ya::before { background: var(--nogal); border-color: var(--nogal); box-shadow: 0 0 0 4px rgba(123, 91, 65, .2); }
.tl__i small { color: var(--gris); display: block; }
.tl__f { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.tl__f div { aspect-ratio: 1; border-radius: 6px; background: var(--greige-2) center/cover; }
.muestra { display: flex; gap: 8px; margin-top: 8px; }
.muestra button { flex: 1; border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: none; font-size: 10.5px; font-weight: 600; color: var(--tinta-2); }
.muestra button i { display: block; height: 46px; }
.muestra button span { display: block; padding: 4px 0; }
.muestra button.on { border-color: var(--nogal); }

/* ---------- varios ---------- */
.lista-pend { display: flex; flex-direction: column; gap: 8px; }
.lista-pend div { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.lista-pend i { width: 12px; height: 12px; border-radius: 50%; background: #E9B949; flex: none; }
.cita { font-family: var(--serif); font-size: 22px; line-height: 1.3; font-style: italic; color: var(--tinta); margin: 0; }
.cita small { display: block; font-family: var(--sans); font-style: normal; font-size: 11.5px; color: var(--gris); margin-top: 8px; }
.tel-num { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .02em; }
.chip-real .punto { background: #9FD3A8; }

@media (max-width: 1100px) {
  .gal { grid-template-columns: repeat(3, 1fr); }
  .sw__srv { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gal .foto.ancho { grid-column: span 1; }
  .piezas { grid-template-columns: repeat(2, 1fr); }
  .sw { height: 560px; }
  .sw__hero h2 { font-size: 32px; }
  .sw__nav nav { display: none; }
  .sw__pj, .sw__form { grid-template-columns: 1fr; }
  .gantt { grid-template-columns: 110px 1fr; }
  .cal { gap: 3px; } .cal div { min-height: 60px; padding: 4px; } .cal .ev { font-size: 9px; padding: 2px 4px; }
  .precio-big { font-size: 38px; }
}

/* Cormorant trae números de estilo antiguo: en cifras usamos los alineados */
body, .num, .kpi__v, .hub__kpi b, .anillo b, .metric-mini b, .hall__n, .precio-big, .fase__n, .serif { font-variant-numeric: lining-nums tabular-nums; }
.foto img[src*="st-3"] { object-position: center 70%; }
@media (max-width: 860px) {
  /* el menú lateral pasa a cajón: sin franja oscura detrás del contenido */
  .shell { background: var(--fondo); }
  .hub__top { flex-wrap: wrap; }
  .hub__acc { width: 100%; justify-content: flex-start !important; flex-wrap: wrap; }
  .chip-real { white-space: normal; }
}

/* ---------- estándar v2: logo por trazos, apertura, escena ---------- */
.gate__logo--svg { width: min(260px, 64vw); margin: 0 auto 6px; animation: none; }
.gate__logo--svg svg { width: 100%; height: auto; display: block; overflow: visible; }
.gate__logo--svg path { fill: transparent; stroke: #fff; stroke-width: 30; stroke-dasharray: var(--L); stroke-dashoffset: var(--L); animation: trazo 1.2s cubic-bezier(.6, 0, .3, 1) .2s forwards, relleno .55s ease 1.25s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes relleno { to { fill: #fff; stroke-width: 0; } }
.ap { text-align: left; width: min(380px, 100%); margin: 0 auto; }
.ap__logo { width: 150px; margin: 0 auto 26px; opacity: .9; }
.ap__l { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(197, 189, 178, .14); opacity: 0; animation: fadeUp .55s cubic-bezier(.2, .8, .2, 1) forwards; }
.ap__l b { font-size: 13.5px; font-weight: 600; }
.ap__l small { grid-column: 2; color: rgba(255, 255, 255, .6); font-size: 12px; }
.ap__ok { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: rgba(159, 211, 168, .16); color: #9FD3A8; display: grid; place-items: center; }
.ap__ok svg { width: 13px; height: 13px; }
.ap__barra { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin-top: 18px; overflow: hidden; }
.ap__barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--greige), #fff); animation: apb 3.6s linear forwards; }
@keyframes apb { to { width: 100%; } }
.escena { margin: 12px 0 0 !important; padding: 10px 14px; border-left: 3px solid var(--greige); background: #fff; border-radius: 0 10px 10px 0; font-family: var(--serif); font-style: italic; font-size: 17px !important; color: var(--tinta) !important; max-width: 760px; }

/* ---------- asistente ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; height: 460px; overflow-y: auto; padding: 4px 2px 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.55; animation: fadeUp .35s both; }
.msg--yo { align-self: flex-end; background: var(--espresso); color: #fff; border-bottom-right-radius: 4px; }
.msg--ia { align-self: flex-start; background: #fff; border: 1px solid var(--linea); border-bottom-left-radius: 4px; }
.msg--ia .foto { height: 150px; margin-top: 8px; }
.msg small { display: block; margin-top: 6px; color: var(--gris); font-size: 11px; }
.chat-in { display: flex; gap: 8px; margin-top: 10px; }
.chat-in input { flex: 1; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--linea); font: 500 13px var(--sans); background: #fff; min-width: 0; }
.sug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hecho li { margin-bottom: 7px; }
.hecho li::marker { color: var(--verde); }
