/* Portada nueva, muy cerca de la de Y Combinator: fondo crema, serif ligera, columna estrecha de
   lectura, tira de fotos, frases grandes y rejillas limpias. Se carga después de yc.css y solo en
   la portada (<body class="home">). Sin filetes en ningún sitio. */

.home .read { max-width: 560px; margin: 0 auto; padding: 0 var(--side); }
.home .read--wide { max-width: 900px; }
.home .h2 {
  margin: 0 auto 72px; max-width: 22ch; text-align: center;
  font-family: var(--serif); font-weight: 350; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink);
}
.home .h2 em, .home .hero-title em { font-style: italic; }
.home .words em { font-style: normal; }
.home .h2 em, .home .words em { color: var(--sea); }
.home .eyebrow {
  margin: 0 0 40px; font-family: var(--sans); font-size: 11.5px; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; color: var(--ink);
}

/* ── Portada: la foto del mar en un panel con margen; titular centrado ── */
.hero {
  padding-top: 0; position: relative; isolation: isolate; overflow: hidden;
  margin: var(--nav) var(--inset) 0; border-radius: 20px;
  min-height: calc(100vh - var(--nav) - var(--inset));
  display: grid; place-items: center; text-align: center; color: #fff; background: #0d3b4f;
}
@supports (height: 100svh) { .hero { min-height: calc(100svh - var(--nav) - var(--inset)); } }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media::before {
  content: ""; position: absolute; inset: 0;
  background: url("/images/fondo-mar.jpg") center 30% / cover no-repeat;
  transform: scale(1.08); animation: hero-in 2.4s cubic-bezier(.16, 1, .3, 1) forwards;
}
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 42, 61, .45) 0%, rgba(10, 42, 61, .2) 45%, rgba(10, 42, 61, .55) 100%); }
@keyframes hero-in { to { transform: scale(1); } }
.hero-inner { padding: 0 var(--side) min(14vh, 140px); max-width: 980px; }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(46px, 6.6vw, 104px); line-height: 1.02; letter-spacing: -.02em; }
.hero-title span { display: inline-block; animation: rise 1.3s cubic-bezier(.16, 1, .3, 1) both; }
.hero-title span + span { animation-delay: .12s; }
.hero-title em { color: #bfe0ea; }
.hero-note {
  margin: 28px auto 0; max-width: 52ch; text-wrap: balance; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .86);
  animation: rise 1.3s cubic-bezier(.16, 1, .3, 1) .3s both;
}
.hero-down {
  position: absolute; left: 50%; bottom: 28px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; opacity: .75; transition: opacity .3s, transform .5s cubic-bezier(.16, 1, .3, 1); animation: rise 1.3s cubic-bezier(.16, 1, .3, 1) .5s both;
}
.hero-down svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-down:hover { opacity: 1; transform: translateY(3px); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Quiénes somos: columna de lectura en serif ── */
.story { padding: 152px 0 128px; }
.story p { margin: 0 0 28px; font-family: var(--serif); font-size: 20px; line-height: 1.7; color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; margin-top: 16px; padding: 0 30px; border-radius: 999px;
  border: 1px solid rgba(11, 30, 45, .22); font-family: var(--serif); font-size: 17px; color: var(--ink);
  transition: background .35s, color .35s, border-color .35s;
}
.pill:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.pill--light { margin-top: 48px; gap: 12px; border-color: rgba(255, 255, 255, .35); color: #fff; }
.pill--light:hover { background: #fff; border-color: #fff; color: var(--sea-deep); }

/* ── Tira de fotos ── */
.strip { overflow: hidden; padding: 8px 0 152px; }
.strip-track { display: flex; gap: 20px; width: max-content; animation: strip 80s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip img { width: clamp(220px, 26vw, 380px); aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--mist, #e6ebe8); }
@keyframes strip { to { transform: translateX(calc(-50% - 10px)); } }

/* ── Lo que hacemos: frases grandes ── */
.words { padding: 0 0 152px; }
.word { margin-bottom: 56px; }
.word p { margin: 0 0 14px; font-family: var(--sans); font-weight: 300; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.32; letter-spacing: -.015em; color: var(--ink); }
.word a { font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--ink-2); transition: color .3s; }
.word a span { display: inline-block; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.word a:hover { color: var(--sea); }
.word a:hover span { transform: translateX(4px); }

/* ── En palabras de nuestros clientes: una cita grande y centrada que cambia sola (home.js);
   debajo, las personas, y al pulsar una se ve su cita. ── */
.quotes { padding: 0 0 152px; text-align: center; }
.quotes .eyebrow { margin-bottom: 56px; }
.q-stage { display: grid; position: relative; }
.q-stage::before {
  content: "“"; display: block; grid-area: 1 / 1; justify-self: center; align-self: start; margin-top: -.42em;
  font-family: var(--serif); font-size: 120px; line-height: 1; color: var(--sea); opacity: .18; pointer-events: none;
}
.q {
  grid-area: 1 / 1; margin: 0; padding-top: 34px; opacity: 0; transform: translateY(10px); filter: blur(4px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .7s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.q.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.q blockquote {
  margin: 0 auto; max-width: 30ch; font-family: var(--sans); font-weight: 300; font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.36; letter-spacing: -.015em; color: var(--ink); text-wrap: balance;
}
.q-people { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; margin-top: 52px; }
.q-person {
  display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 6px; border: 0; border-radius: 999px; background: none;
  font: inherit; text-align: left; color: var(--ink); cursor: pointer; opacity: .42;
  transition: opacity .4s, background .4s;
}
.q-person:hover { opacity: .75; }
.q-person.is-on { opacity: 1; }
.q-person:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.q-av {
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, #5aa3c0, var(--sea)); color: #fff; font-family: var(--sans); font-weight: 400; font-size: 16px;
}
.q-person[data-q="1"] .q-av { background: linear-gradient(150deg, #e9c39d, #c98d58); }
.q-person[data-q="2"] .q-av { background: linear-gradient(150deg, #1c4a63, var(--sea-deep)); }
/* Anillo que marca el tiempo de la cita activa. */
.q-av::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; opacity: 0;
  background: conic-gradient(var(--sea) calc(var(--qp, 0) * 1turn), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
.q-person.is-on .q-av::after { opacity: 1; }
.q-who { display: grid; gap: 1px; font-family: var(--sans); font-size: 14px; line-height: 1.3; }
.q-who b { font-weight: 400; }
.q-who span { font-weight: 300; color: var(--ink-2); }
@media (max-width: 900px) {
  .q-people { gap: 10px 18px; margin-top: 40px; }
  .q-who span { display: none; }
  .q-stage::before { font-size: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .q { transition: none; filter: none; transform: none; }
}
/* ── Negocios: rejilla de tarjetas ── */
.bizs { padding: 24px 0 152px; }
.biz-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; max-width: 1040px; margin: 0 auto; }
.biz-card { display: grid; gap: 6px; align-content: start; color: var(--ink); }
.biz-img { display: block; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 14px; margin-bottom: 16px; background: #e9e8e0; }
.biz-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.biz-img--mark img { object-fit: contain; padding: 6% 20%; }
.biz-card b { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.25; }
.biz-sector { font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--sea); }
.biz-text { margin-top: 6px; font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
a.biz-card:hover .biz-img img { transform: scale(1.02); }

/* ── Procesos: carrusel de tarjetas grandes al estilo de Scale ── */
.procs { padding: 0 0 152px; }
.procs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.procs .h2 { margin: 0; text-align: left; max-width: 14ch; }
.procs-ctrl { display: flex; gap: 10px; }
.pc-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid rgba(11, 30, 45, .18); background: transparent; color: var(--ink);
  transition: background .3s, color .3s, border-color .3s, opacity .3s;
}
.pc-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pc-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pc-btn:disabled { opacity: .3; cursor: default; }
.procs-track {
  --edge: max(var(--side), calc((100vw - 1200px) / 2 + var(--side)));
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge);
  padding: 4px var(--edge) 8px; scrollbar-width: none; outline: none;
}
.procs-track::-webkit-scrollbar { display: none; }
.pcard {
  flex: 0 0 clamp(270px, 29vw, 400px); aspect-ratio: 4 / 5; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; padding: 30px 30px 34px; border-radius: 18px;
  background: var(--sea-deep); color: #fff; transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.pcard:hover { transform: translateY(-4px); }
.pcard-cat { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pcard h3 { margin: 0 0 14px; font-family: var(--sans); font-weight: 300; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; letter-spacing: -.015em; }
.pcard p { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 15.5px; line-height: 1.5; opacity: .78; max-width: 30ch; }
.pcard--sea { background: var(--sea); }
.pcard--ink { background: #0b1e2d; }
.pcard--sand { background: #e9dfcf; color: var(--ink); }
.pcard--mist { background: #d6e5ea; color: var(--ink); }
/* ── Con qué trabajamos ── */
.tools { padding: 0 0 152px; text-align: center; }
.tools-names { margin: 0; font-family: var(--serif); font-weight: 350; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.55; color: var(--ink); text-wrap: balance; }
.tools-names span { display: inline-block; white-space: nowrap; transition: color .3s; }
.tools-names span:not(:last-child)::after { content: "·"; color: var(--sea); padding: 0 .35em; }
.tools-names span:hover { color: var(--sea); }
.tools-seal { width: 220px; height: auto; margin: 56px auto 0; }

/* ── Notas ── */
.cnotes { padding: 0 0 160px; }
.cnotes-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1000px; margin: 0 auto; }
.cnote { display: flex; flex-direction: column; gap: 10px; padding: 32px 30px 34px; border-radius: 14px; background: #fbfbf7; color: var(--ink); transition: transform .7s cubic-bezier(.16, 1, .3, 1), box-shadow .7s cubic-bezier(.16, 1, .3, 1), background .4s; }
.cnote-cat { font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--sea); }
.cnote b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.3; }
.cnote-text { font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
.cnote-more { margin-top: auto; padding-top: 14px; font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--sea); }
.cnote-more span { display: inline-block; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.cnote:hover .cnote-more span { transform: translateX(4px); }
.cnote:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 24px 50px -32px rgba(11, 30, 45, .4); }

/* ── Aparición suave al hacer scroll (home.js pone .js-reveal y .is-in) ── */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s cubic-bezier(.16, 1, .3, 1) var(--rd, 0s), transform 1.1s cubic-bezier(.16, 1, .3, 1) var(--rd, 0s); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { border-radius: 16px; }
  .hero { place-items: start center; }
  .hero-inner { padding-top: 11vh; padding-bottom: 0; }
  /* Portada: el titular arriba y el eslogan abajo del todo, por debajo de la nadadora. */
  .hero:not(.hero--orb):not(.hero--page) .hero-inner { align-self: stretch; display: flex; flex-direction: column; padding-bottom: 7vh; }
  .hero:not(.hero--orb):not(.hero--page) .hero-note { margin-top: auto; }
  .story { padding: 96px 0 88px; }
  .story p { font-size: 18px; }
  .strip { padding-bottom: 96px; }
  .strip img { width: 62vw; }
  .words, .quotes, .bizs, .procs, .tools { padding-bottom: 104px; }
  .home .h2 { margin-bottom: 48px; }
  .biz-list { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .biz-card b { font-size: 18px; }
  .biz-text { font-size: 14px; }
  .procs-head { margin-bottom: 32px; }
  .pc-btn { width: 40px; height: 40px; }
  .pcard { flex-basis: 78vw; padding: 24px 24px 28px; }
  .tools-names { font-size: 22px; }
  .cnotes { padding-bottom: 112px; }
  .cnotes-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media::before, .hero-title span, .hero-note, .hero-down { animation: none; transform: none; opacity: 1; }
  .strip-track { animation: none; }
  .strip { overflow-x: auto; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Páginas interiores (servicios, IA): misma portada, más baja; frases grandes; formulario ── */
.hero--page { min-height: min(72vh, 680px); }
@supports (height: 100svh) { .hero--page { min-height: min(72svh, 680px); } }
.hero--page .hero-media::before { background-position: center 85%; }
.hero--page .hero-inner { padding-bottom: 0; }
.hero--orb { background: radial-gradient(120% 90% at 50% 0%, #124a63 0%, var(--sea-deep) 60%); }
.hero--orb canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.words--page { padding-top: 136px; }
.words--page .word p em { color: var(--sea); }
.feats { list-style: none; margin: 24px auto 0; padding: 0 var(--side); max-width: 940px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; }
.feats li { display: grid; gap: 6px; align-content: start; }
.feats b { font-family: var(--sans); font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--ink); }
.feats span { font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

.contact { padding: 0 0 152px; }
.contact .form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 0; }
.contact .field--full, .contact .form-foot { grid-column: 1 / -1; }
.contact .form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.contact .form .btn { height: 52px; padding: 0 34px; border-radius: 999px; font-size: 16px; }
.contact-direct { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; margin: 64px 0 0; font-family: var(--sans); font-size: 15px; font-weight: 300; }
.contact-direct a { color: var(--ink-2); transition: color .25s; }
.contact-direct a:hover { color: var(--sea); }

@media (max-width: 900px) {
  .words--page { padding-top: 88px; }
  .feats { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact { padding-bottom: 104px; }
  .contact .form { grid-template-columns: minmax(0, 1fr); }
}
/* ── Procesos al estilo Apple ("Conoce el iPhone"): tarjetas claras, titular firme arriba,
   descripción abajo, sin etiquetas en versalitas ni colores; botones grises debajo. ── */
.procs-head { justify-content: flex-start; }
.procs .h2 { max-width: none; }
.procs-foot { display: flex; justify-content: flex-end; margin-top: 28px; }
.pc-btn { width: 36px; height: 36px; border: 0; background: rgba(11, 30, 45, .08); color: rgba(11, 30, 45, .7); }
.pc-btn svg { width: 14px; height: 14px; stroke-width: 2; }
.pc-btn:hover:not(:disabled) { background: rgba(11, 30, 45, .14); color: var(--ink); border: 0; }
.pc-btn:disabled { opacity: .35; }
.pcard, .pcard--sea, .pcard--ink, .pcard--sand, .pcard--mist, .pcard--sea-deep {
  background: #fff; color: var(--ink); border-radius: 26px; padding: 32px 30px 34px;
  box-shadow: 0 1px 2px rgba(11, 30, 45, .04);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s cubic-bezier(.16, 1, .3, 1);
}
.pcard:hover { transform: scale(1.015); box-shadow: 0 18px 40px -24px rgba(11, 30, 45, .25); }
.pcard { justify-content: flex-start; }
.pcard > div { display: flex; flex-direction: column; flex: 1; }
.pcard-cat { order: -1; margin-bottom: 10px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--sea); opacity: 1; }
.pcard h3 { margin: 10px 0 0; font-weight: 500; font-size: clamp(24px, 2vw, 28px); line-height: 1.18; letter-spacing: -.02em; }
.pcard p { margin-top: auto; font-size: 16px; color: var(--ink-2); opacity: 1; }
@media (max-width: 900px) { .procs-foot { margin-top: 20px; } }
/* ── Páginas interiores al estilo de una ficha de Apple ── */
.page-head { max-width: 920px; margin: 0 auto; padding: calc(var(--nav) + 104px) var(--side) 64px; text-align: center; }
.page-kicker { margin: 0 0 16px; font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--sea); }
.page-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 88px); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.page-title em { font-style: italic; color: var(--sea); }
.page-lead { margin: 26px auto 0; max-width: 34ch; font-family: var(--sans); font-weight: 300; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); }
.page-links { margin: 34px 0 0; }
.pill--solid { margin-top: 0; background: var(--sea); border-color: var(--sea); color: #fff; font-family: var(--sans); font-size: 16px; }
.pill--solid:hover { background: var(--sea-deep); border-color: var(--sea-deep); }
.page-visual { position: relative; margin: 0 var(--inset); height: min(68vh, 640px); border-radius: 26px; overflow: hidden; background: #0d3b4f; }
.page-visual-media { position: absolute; inset: 0; background: url("/images/fondo-mar.jpg") center 42% / cover no-repeat; }
.page-visual--orb { background: radial-gradient(120% 90% at 50% 0%, #124a63 0%, var(--sea-deep) 60%); }
.page-visual--orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.bento { padding: 136px 0; }
.bento-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; }
.bento-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 12px; min-height: 230px; padding: 40px 38px 42px; border-radius: 26px; background: #fff; color: var(--ink); }
.tile h3 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.tile p { margin: 0; max-width: 40ch; font-family: var(--sans); font-weight: 300; font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.tile a { margin-top: auto; padding-top: 18px; font-family: var(--sans); font-size: 17px; color: #bfe0ea; }
.tile a:hover { color: #fff; }
.tile--wide { grid-column: 1 / -1; min-height: 260px; }
.tile--dark { background: var(--sea-deep); color: #fff; }
.tile--dark p { color: rgba(255, 255, 255, .72); }

.contact { padding: 0 0 152px; }
.contact-card { max-width: 780px; margin: 0 auto; padding: 48px 48px 44px; border-radius: 26px; background: #fff; }
.contact .form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; margin: 0; }
.contact .field { display: grid; gap: 8px; }
.contact .field label { font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.contact .field input, .contact .field textarea {
  width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; background: #f2f2ee;
  font-family: var(--sans); font-size: 17px; font-weight: 300; color: var(--ink); outline: none; transition: box-shadow .2s, background .2s;
}
.contact .field input:focus, .contact .field textarea:focus { background: #fff; box-shadow: 0 0 0 2px var(--sea); }
.contact .field input[aria-invalid="true"] { box-shadow: 0 0 0 2px #a4453a; }
.contact .field textarea::placeholder { font-style: normal; color: rgba(11, 30, 45, .4); }
.contact .field--full, .contact .form-foot { grid-column: 1 / -1; }
.contact .form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.contact .form .btn { height: 50px; padding: 0 32px; border-radius: 999px; font-family: var(--sans); font-size: 16px; }
.contact .hp { position: absolute; left: -9999px; }
.contact-direct { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; margin: 40px 0 0; font-family: var(--sans); font-size: 15px; font-weight: 300; }
.contact-direct a { color: var(--ink-2); transition: color .25s; }
.contact-direct a:hover { color: var(--sea); }

@media (max-width: 900px) {
  .page-head { padding: calc(var(--nav) + 64px) var(--side) 44px; }
  .page-visual { height: 52vh; border-radius: 18px; }
  .bento { padding: 88px 0; }
  .bento-grid, .bento-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tile { min-height: 0; padding: 30px 26px 32px; border-radius: 20px; }
  .contact-card { padding: 28px 22px; border-radius: 20px; }
  .contact .form { grid-template-columns: minmax(0, 1fr); }
}
/* Ajuste: sin imagen, las tarjetas se ciñen a su contenido (nada de huecos vacíos). */
.pcard { aspect-ratio: auto; min-height: 270px; flex-basis: clamp(270px, 27vw, 360px); }
.pcard p { margin-top: 14px; }
.tile, .tile--wide { min-height: 0; }
.tile a { margin-top: 6px; padding-top: 10px; }
/* ── Sectores: fotos cuadradas con su pie, como en Y Combinator ── */
.sectors { padding: 24px 0 152px; }
.sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; }
.sector { margin: 0; }
.sector-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #e9e8e0; }
.sector-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.sector:hover .sector-img img { transform: scale(1.04); }
.sector figcaption { margin-top: 14px; font-family: var(--sans); font-size: 14.5px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
.sector figcaption b { display: block; margin-bottom: 2px; font-weight: 400; font-size: 16px; color: var(--ink); }
@media (max-width: 1100px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .sectors { padding-bottom: 104px; }
  .sector-grid { gap: 32px 14px; }
  .sector figcaption { font-size: 13.5px; }
  .sector figcaption b { font-size: 15px; }
}
/* Portada de IA: el orbe de fondo a pantalla completa, con el texto en blanco encima. */
.hero--orb .hero-inner { padding-bottom: 0; }
.hero-kicker { margin: 0 0 18px; font-family: var(--sans); font-size: 17px; font-weight: 500; color: #bfe0ea; animation: rise 1.3s cubic-bezier(.16, 1, .3, 1) both; }
.hero .hero-actions { display: flex; justify-content: center; margin: 36px 0 0; animation: rise 1.3s cubic-bezier(.16, 1, .3, 1) .45s both; }
.pill--white { margin-top: 0; background: #fff; border-color: #fff; color: var(--sea-deep); font-family: var(--sans); font-size: 16px; }
.pill--white:hover { background: #dff0f5; border-color: #dff0f5; color: var(--sea-deep); }
/* Tira: al pasar el ratón, la foto señalada queda en foco y las demás se atenúan. */
.strip img { transition: opacity .5s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1), filter .5s; }
@media (hover: hover) {
  .strip-track:hover img { opacity: .45; filter: saturate(.7); }
  .strip-track:hover img:hover { opacity: 1; filter: none; transform: scale(1.03); }
}
/* ══ Calma subliminal: ritmo y color, sin texto ══
   · La foto de la portada "respira" a 6 ciclos por minuto (5 s inspirar, 5 s espirar), el ritmo
     de la respiración en reposo; el cambio de escala es tan pequeño que no se percibe conscientemente.
   · La tira avanza más despacio: el movimiento lento baja la activación.
   · Un mismo etalonado suave en todas las fotos (menos saturación y contraste, algo más cálido)
     para que la página se perciba serena y coherente.
   · Las apariciones al bajar son algo más lentas. */
.hero-media::before { animation: hero-in 2.4s cubic-bezier(.16, 1, .3, 1) forwards, breathe 5s ease-in-out 2.4s infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.022); } }
.strip-track { animation-duration: 140s; }
.strip img, .sector-img img { filter: saturate(.86) contrast(.95) brightness(1.02) sepia(.06); }
@media (hover: hover) {
  .strip-track:hover img { filter: saturate(.6) contrast(.92) brightness(1.02) sepia(.06); }
  .strip-track:hover img:hover { filter: saturate(.92) contrast(.97) brightness(1.02) sepia(.04); }
}
.js-reveal [data-reveal] { transition-duration: 1.4s, 1.5s; }
@media (prefers-reduced-motion: reduce) {
  .hero-media::before { animation: none; transform: none; }
}
/* ══ Áreas y procesos: índice + una foto ══
   A la izquierda, la lista numerada de áreas en serif (como el índice de sectores de McKinsey);
   la activa en tinta y las demás en gris. A la derecha, una sola foto grande, de esquinas casi
   rectas, con el proceso escrito encima en blanco (como las tarjetas de latosquera.es). */
.areas { padding: 24px 0 152px; }
.areas .h2 { margin: 0 0 56px; max-width: 26ch; text-align: left; }
.areas-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: stretch; }
.areas-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.area {
  display: flex; align-items: baseline; gap: 20px; width: 100%; padding: 10px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: clamp(24px, 2.3vw, 34px); font-weight: 350; line-height: 1.15; letter-spacing: -.01em;
  color: rgba(11, 30, 45, .3); transition: color .4s ease;
}
.area-n { flex: none; width: 28px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: rgba(11, 30, 45, .35); transition: color .4s ease; }
.area:hover, .area.is-on { color: var(--ink); }
.area.is-on .area-n { color: var(--sea); }
.area:focus { outline: none; }
.area:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; }
.areas-stage { position: relative; min-height: 560px; overflow: hidden; border-radius: 4px; background: #0d3b4f; }
.area-panel { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.area-panel.is-on { opacity: 1; }
.area-panel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(.95) brightness(1.02) sepia(.06); transform: scale(1.04); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.area-panel.is-on img { transform: none; }
.area-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 30, 45, 0) 45%, rgba(11, 30, 45, .72) 100%); }
.area-panel figcaption { position: absolute; z-index: 1; left: 40px; right: 40px; bottom: 36px; color: #fff; }
.area-panel figcaption span { display: block; margin-bottom: 10px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #bfe0ea; }
.area-panel figcaption b { display: block; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
.area-panel figcaption p { margin: 12px 0 0; max-width: 40ch; font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, .85); }
/* En móvil no hay índice: las áreas pasan a tarjetas que se deslizan con el dedo, cada una con
   su foto y su proceso encima; la siguiente asoma por el borde para invitar a deslizar. */
@media (max-width: 900px) {
  .areas { padding-bottom: 104px; }
  .areas .h2 { margin-bottom: 28px; }
  .areas-grid { display: block; }
  .areas-list { display: none; }
  .areas-stage {
    display: flex; gap: 12px; min-height: 0; margin: 0 calc(-1 * var(--side)); padding: 0 var(--side);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side);
    background: none; border-radius: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .areas-stage::-webkit-scrollbar { display: none; }
  .area-panel { position: relative; inset: auto; flex: 0 0 82%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; opacity: 1; scroll-snap-align: start; background: #0d3b4f; }
  .area-panel img, .area-panel.is-on img { transform: none; }
  .area-panel figcaption { left: 20px; right: 20px; bottom: 22px; }
  .area-panel figcaption b { font-size: 26px; }
  .area-panel figcaption p { font-size: 15px; }
}
/* Cierre de la portada: un solo botón "Contactar", rectangular y sin sombra, como los de McKinsey
   o BlackRock y como "Contacto" en la barra; macizo en blanco para que se lea como botón. */
.closing-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; border: 1px solid #fff; border-radius: 0;
  background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .01em;
  transition: background .3s, color .3s;
}
.closing-btn span { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.closing-btn:hover { background: transparent; color: #fff; }
.closing-btn:hover span { transform: translateX(4px); }
.closing-btn:focus-visible { outline: 2px solid #bfe0ea; outline-offset: 4px; }
/* ── Vídeo de presentación: sustituye a la tira de fotos. Un solo panel ancho, de esquinas casi
   rectas como las fotos de áreas; botón pequeño y cuadrado para pausar, sin adornos. ── */
.promo { padding: 8px 0 152px; }
.promo-frame { position: relative; overflow: hidden; border-radius: 4px; background: #0c141b; aspect-ratio: 16 / 9; }
.promo-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo-toggle {
  position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px; display: grid; place-items: center;
  padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 0; background: rgba(12, 20, 27, .45); color: #fff; cursor: pointer;
  opacity: .7; transition: opacity .3s, background .3s;
}
.promo-toggle:hover, .promo-toggle:focus-visible { opacity: 1; background: rgba(12, 20, 27, .7); }
.promo-toggle:focus-visible { outline: 2px solid #bfe0ea; outline-offset: 2px; }
.promo-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promo-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.promo-toggle[aria-pressed="true"] .i-pause { display: none; }
.promo-toggle[aria-pressed="true"] .i-play { display: block; }
@media (max-width: 900px) {
  .promo { padding-bottom: 96px; }
  .promo .wrap { padding: 0 var(--inset); }
  .promo-toggle { right: 10px; bottom: 10px; width: 32px; height: 32px; }
}
/* ══ Proyectos: casos reales con su demo ══
   Pestañas con el nombre de cada cliente; debajo, el texto a la izquierda y a la derecha una demo:
   una ventana con la web pública real (capturas) y otra con el backoffice, redibujado a partir del
   código de cada proyecto. Un cursor recorre los dos (home.js). El lienzo mide 1200 × 750 y se
   escala al ancho disponible con --k, así la densidad es la de una pantalla real. */
.projects { padding: 24px 0 152px; }
.projects .h2 { margin: 0 0 48px; max-width: 26ch; text-align: left; }
.proj-note { margin: -32px 0 40px; max-width: 62ch; font-family: var(--sans); font-size: 14px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 900px) { .proj-note { margin: -18px 0 24px; font-size: 13.5px; } }
.proj-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-bottom: 48px; }
.proj-tab {
  display: grid; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink);
  opacity: .38; transition: opacity .4s ease;
}
.proj-tab:hover, .proj-tab.is-on { opacity: 1; }
.proj-tab .pt-n { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--sea); }
.proj-tab b { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; line-height: 1.15; }
.proj-tab .pt-s { font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--ink-2); }
.proj-tab:focus { outline: none; }
.proj-tab:focus-visible { outline: 2px solid var(--sea); outline-offset: 6px; }
.proj-panel { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); gap: 48px; align-items: center; }
.proj-panel[hidden] { display: none; }
.proj-text h3 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(26px, 2.2vw, 32px); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
.proj-text p { margin: 0 0 24px; font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--ink-2); }
.proj-mods { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; font-family: var(--sans); font-size: 15px; color: var(--ink); }
.proj-mods li { display: flex; align-items: center; gap: 12px; }
.proj-mods li::before { content: ""; width: 6px; height: 6px; background: var(--sea); flex: none; }
.proj-link { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--sea); transition: color .25s; }
.proj-link:hover { color: var(--ink); }
.proj-panel.is-live .proj-text { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }

/* Panel, etiquetas Web pública / Backoffice, lienzo escalado y ventanas */
.proj-shot { position: relative; border-radius: 4px; background: var(--sea-deep); padding: 52px 28px 28px; }
.demo { position: relative; }
.demo-tags { position: absolute; top: -38px; left: 0; display: flex; gap: 6px; font-family: var(--sans); font-size: 12px; }
.demo-tags span { padding: 5px 11px; border-radius: 999px; color: rgba(255, 255, 255, .55); transition: background .4s, color .4s; }
.demo-tags span.is-on { background: rgba(255, 255, 255, .14); color: #fff; }
.demo-fit { position: relative; width: 100%; aspect-ratio: 1200 / 750; overflow: hidden; border-radius: 10px; }
.demo-canvas { position: absolute; top: 0; left: 0; width: 1200px; height: 750px; transform: scale(var(--k, .5)); transform-origin: 0 0; font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, system-ui, sans-serif; }
.win { position: absolute; inset: 0; overflow: hidden; border-radius: 10px; background: #fff; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.win.is-on { opacity: 1; visibility: visible; }
.win-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #ecedea; }
.win-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #d3d5d0; }
.win-url { margin: 0 auto; min-width: 380px; padding: 4px 16px; border-radius: 6px; background: #fff; font-size: 12.5px; color: #5b6570; text-align: center; transform: translateX(-28px); }
.win-body { position: relative; height: 716px; overflow: hidden; }
.wp { position: absolute; inset: 0; width: 100%; height: auto; opacity: 0; transition: opacity .6s ease; }
.wp.is-on { opacity: 1; }
.hot { position: absolute; width: 2px; height: 2px; }
.scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.scr.is-on { opacity: 1; visibility: visible; }

/* Cursor: vive fuera del lienzo escalado, así mide lo mismo en cualquier pantalla. */
.cur { position: absolute; top: 0; left: 0; z-index: 5; width: 22px; height: 22px; pointer-events: none; opacity: 0;
  transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45, .05, .25, 1); transition-duration: .8s, .3s; }
.cur.is-on { opacity: 1; }
.cur svg { width: 22px; height: 22px; fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: transform .15s; transform-origin: 20% 15%; }
.cur.down svg { transform: scale(.82); }
.cur::after { content: ""; position: absolute; top: -10px; left: -10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); opacity: 0; transform: scale(.3); }
.cur.ping::after { animation: cur-ping .5s ease-out; }
@keyframes cur-ping { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }

/* ── Frank Makelaardij: Inter, azul marino #16263D, líneas finas, esquinas casi rectas ── */
.fk { background: #fff; color: #16263D; }
.fk-top { position: absolute; top: 18px; right: 24px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: #5C6675; }
.fk-top b { font-weight: 600; color: #16263D; }
.fk-top svg { width: 17px; height: 17px; fill: none; stroke: #5C6675; stroke-width: 1.5; }
.fk-in { max-width: 920px; margin: 0 auto; padding: 40px 0 0; }
.fk-in h1 { margin: 0; font-size: 50px; font-weight: 200; letter-spacing: -.02em; }
.fk-sub { margin: 4px 0 24px; font-size: 17px; color: #5C6675; }
.fk-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.fk-card { position: relative; grid-column: span 2; display: grid; gap: 4px; align-content: start; min-height: 104px; padding: 16px 18px 14px; background: var(--wash); color: var(--ink); transition: background .3s, color .3s, transform .3s; }
.fk-card.big { grid-column: span 3; min-height: 128px; }
.fk-card svg { width: 24px; height: 24px; margin-bottom: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fk-card b { font-size: 19px; font-weight: 500; }
.fk-card span { font-size: 13px; opacity: .8; }
.fk-card em { margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 500; opacity: .7; }
.fk-badge { position: absolute; top: 18px; right: 18px; padding: 3px 9px; background: var(--ink); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 500; }
.fk-card.hov { background: var(--ink); color: #fff; }
.fk-card.hov .fk-badge { background: #fff; color: var(--ink); }
.fk-also { display: flex; gap: 20px; align-items: center; margin-top: 20px; font-size: 13px; color: #5C6675; }
.fk-also span { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; color: #16263D; }
.fk-list { display: grid; grid-template-columns: 210px 1fr; }
.fk-side { display: flex; flex-direction: column; padding: 22px 0; box-shadow: inset -1px 0 #D8DCE3; font-size: 13.5px; color: #16263D; }
.fk-logo { padding: 0 22px 18px; font-size: 18px; font-weight: 500; letter-spacing: .3em; line-height: 1; }
.fk-logo small { display: block; margin-top: 5px; font-size: 8.5px; letter-spacing: .32em; }
.fk-g { margin: 16px 22px 6px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #5C6675; }
.fk-side a { padding: 7px 22px; }
.fk-side a.on { background: #F5F6F8; box-shadow: inset 2px 0 #16263D; font-weight: 500; }
.fk-main { padding: 30px 36px; }
.fk-head { display: flex; align-items: center; justify-content: space-between; }
.fk-head h1 { margin: 0; font-size: 34px; font-weight: 300; }
.fk-new { padding: 9px 16px; background: #16263D; color: #fff; font-size: 13px; }
.fk-desc { margin: 6px 0 18px; font-size: 14px; color: #5C6675; }
.fk-search { padding: 10px 12px; border: 1px solid #D8DCE3; font-size: 13px; color: #8a929e; margin-bottom: 16px; }
.fk-table { font-size: 13.5px; }
.fk-tr { display: grid; grid-template-columns: 1.1fr .8fr 1.7fr .9fr .9fr; align-items: center; gap: 12px; padding: 12px 10px; box-shadow: inset 0 -1px #D8DCE3; transition: background .3s; }
.fk-th { padding: 8px 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5C6675; }
.fk-tr.hov { background: #F5F6F8; }
.fk-tr.flash { animation: fk-flash 1.2s ease; }
@keyframes fk-flash { 0%, 100% { background: transparent; } 30% { background: #e6edf6; } }
.fk-name.unread { font-weight: 600; }
.fk-name.unread::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #27456B; vertical-align: middle; }
.sc { position: relative; display: inline-flex; align-items: flex-end; gap: 2px; font-size: 12.5px; color: #5C6675; }
.sc i { width: 3px; background: #D8DCE3; }
.sc i:nth-child(1) { height: 5px; } .sc i:nth-child(2) { height: 8px; } .sc i:nth-child(3) { height: 11px; margin-right: 6px; }
.sc.hi { color: #16263D; font-weight: 600; } .sc.hi i { background: #16263D; }
.sc.md i:nth-child(-n+2) { background: #16263D; }
.sc.lo i:nth-child(1) { background: #16263D; }
.fk-tip { position: absolute; left: 0; bottom: 22px; padding: 4px 8px; background: #16263D; color: #fff; font-style: normal; font-size: 11.5px; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: .25s; }
.fk-tip.is-on { opacity: 1; transform: none; }
.fk-st { position: relative; }
.fk-stv { display: inline-block; min-width: 92px; padding: 5px 9px; border: 1px solid #D8DCE3; font-weight: 400; }
.fk-st[data-k] .fk-stv::after { content: " ▾"; font-size: 10px; color: #5C6675; }
.fk-menu { position: absolute; z-index: 2; top: 30px; left: 0; display: grid; min-width: 110px; padding: 4px 0; background: #fff; box-shadow: 0 10px 24px -8px rgba(14, 27, 44, .3), 0 0 0 1px #D8DCE3; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s; }
.fk-menu.is-on { opacity: 1; visibility: visible; transform: none; }
.fk-menu i { padding: 6px 12px; font-style: normal; }
.fk-menu i.hov { background: #F5F6F8; }

/* ── Isa's Homes: barra lateral #16304F, Inter, fondo slate-50, barras por canal ── */
.ih { display: grid; grid-template-columns: 220px 1fr; background: #f8fafc; color: #0f172a; }
.ih-side { display: flex; flex-direction: column; gap: 3px; padding: 16px 12px; background: #16304F; color: #C9D4E3; font-size: 14px; }
.ih-brand { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: center; padding: 2px 6px 18px; }
.ih-logo { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: #FAF9F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M13 30V18a7 7 0 0114 0v12zM13 25c3-2 5 2 7 0s4-2 7 0' fill='none' stroke='%23A98C5F' stroke-width='1.4'/%3E%3Ccircle cx='20' cy='17' r='2.2' fill='none' stroke='%23A98C5F' stroke-width='1.4'/%3E%3C/svg%3E") center / 30px no-repeat; }
.ih-brand b { color: #fff; font-size: 15px; font-weight: 600; }
.ih-brand small { font-size: 11.5px; color: #9FB2CB; }
.ih-nav { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; transition: background .3s, color .3s; }
.ih-nav svg { width: 18px; height: 18px; fill: none; stroke: #8FA5C2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ih-nav.is-on, .ih-nav.hov { background: rgba(255, 255, 255, .12); color: #fff; }
.ih-nav.is-on svg { stroke: #fff; }
.ih-set { margin-top: auto; }
.ih-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; font-size: 13px; color: #fff; }
.ih-user span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #2c4a6e; font-size: 12px; }
.ih-user svg { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: #8FA5C2; stroke-width: 1.7; }
.ih-main { position: relative; }
.ih-top { height: 52px; display: flex; align-items: center; gap: 6px; padding: 0 20px; background: #fff; box-shadow: inset 0 -1px #e2e8f0; font-size: 13.5px; }
.ih-pill { padding: 6px 12px; border-radius: 8px; color: #475569; }
.ih-pill.on { background: #f1f5f9; color: #0f172a; font-weight: 500; }
.ih-sp { flex: 1; }
.ih-lang { margin-right: 6px; font-size: 12px; color: #64748b; }
.ih-new { padding: 7px 13px; border-radius: 8px; background: #1F3A5F; color: #fff; font-size: 13px; font-weight: 500; }
.ih-bell { position: relative; margin-left: 8px; }
.ih-bell svg { width: 19px; height: 19px; fill: none; stroke: #64748b; stroke-width: 1.7; }
.ih-bell i { position: absolute; top: -5px; right: -6px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: #ef4444; color: #fff; font-style: normal; font-size: 9.5px; }
.ih-content { padding: 18px 20px; }
.ih-calh { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.ih-calh b { margin-left: 6px; font-size: 16px; font-weight: 600; }
.ih-btn { padding: 6px 12px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; font-size: 13px; color: #334155; }
.ih-arw { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; box-shadow: inset 0 0 0 1px #e2e8f0; background: #fff; color: #475569; }
.ih-seg { display: flex; padding: 3px; border-radius: 9px; background: #e2e8f0; font-size: 12.5px; }
.ih-seg i { padding: 4px 10px; border-radius: 7px; font-style: normal; color: #475569; }
.ih-seg i.on { background: #fff; color: #0f172a; font-weight: 500; }
.ih-cal { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; }
.ih-crow { display: grid; grid-template-columns: 170px 1fr; min-height: 70px; box-shadow: inset 0 -1px #f1f5f9; }
.ih-lab { display: flex; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 500; box-shadow: inset -1px 0 #e2e8f0; }
.ih-chead { grid-template-columns: 170px repeat(14, 1fr); min-height: 44px; font-size: 11.5px; color: #64748b; }
.ih-chead .ih-lab { font-size: 10.5px; letter-spacing: .08em; color: #94a3b8; }
.ih-chead > span:not(.ih-lab) { display: grid; place-items: center; }
.ih-chead .we { background: #f8fafc; }
.ih-chead .today { display: flex; align-items: center; justify-content: center; gap: 3px; background: #eff6ff; }
.ih-chead .today i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #2563eb; color: #fff; font-style: normal; font-size: 10.5px; }
.ih-days { position: relative; background: linear-gradient(90deg, transparent calc(100% / 14 * 5), #f8fafc calc(100% / 14 * 5), #f8fafc calc(100% / 14 * 6), #eff6ff calc(100% / 14 * 6), #eff6ff calc(100% / 14 * 7), transparent calc(100% / 14 * 7), transparent calc(100% / 14 * 12), #f8fafc calc(100% / 14 * 12)); }
.bkb { position: absolute; top: 12px; height: 30px; left: calc((var(--s) - .5) / 14 * 100%); width: calc((var(--e) - var(--s)) / 14 * 100% - 3px); display: flex; align-items: center; padding: 0 9px; border-radius: 6px; color: #fff; font-style: normal; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.bkb.hov { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(15, 23, 42, .45); }
.air, .ih-legend i.air { background: #f43f5e; } .boo, .ih-legend i.boo { background: #6366f1; } .vrb, .ih-legend i.vrb { background: #f59e0b; } .dir, .ih-legend i.dir { background: #10b981; } .own, .ih-legend i.own { background: #64748b; }
.tch { position: absolute; bottom: 5px; left: calc((var(--c) - 1) / 14 * 100% + 4px); padding: 1px 6px; border-radius: 5px; background: #fef3c7; color: #92400e; font-size: 9.5px; font-weight: 500; }
.tch::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #a8a29e; vertical-align: middle; }
.tch.done::before { background: #10b981; }
.ih-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11.5px; color: #64748b; }
.ih-legend i { width: 9px; height: 9px; margin-left: 10px; border-radius: 3px; }
.ih-modal { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .35); opacity: 0; visibility: hidden; transition: .35s; }
.ih-modal.is-on { opacity: 1; visibility: visible; }
.ih-card { width: 440px; padding: 22px 24px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .5); transform: translateY(10px) scale(.98); transition: transform .4s cubic-bezier(.16, 1, .3, 1); font-size: 13px; }
.ih-modal.is-on .ih-card { transform: none; }
.ih-mh { display: flex; align-items: center; justify-content: space-between; }
.ih-mh b { font-size: 17px; font-weight: 600; }
.ch { padding: 3px 9px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 500; }
.ih-ms { margin: 4px 0 16px; color: #64748b; }
.ih-ml { display: block; margin-bottom: 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.ih-ln { display: flex; justify-content: space-between; padding: 7px 0; box-shadow: inset 0 -1px #f1f5f9; }
.ih-ln b { font-weight: 500; font-variant-numeric: tabular-nums; }
.ih-ln .neg { color: #64748b; }
.ih-ln.tot { box-shadow: none; padding-top: 10px; font-weight: 600; }
.ih-ln.tot b { font-weight: 700; font-size: 15px; }
.ih-portal { display: flex; justify-content: space-between; margin: 12px 0 16px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; color: #334155; }
.ih-portal span { color: #2563eb; font-weight: 500; }
.ih-mf { display: flex; justify-content: flex-end; gap: 8px; }
.ih-save { padding: 8px 14px; border-radius: 8px; background: #1F3A5F; color: #fff; font-weight: 500; transition: background .2s; }
.ih-save.hov { background: #16304F; }
.ih-fh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ih-fh b { display: block; font-size: 22px; font-weight: 700; }
.ih-fh small { font-size: 13px; color: #64748b; }
.ih-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.ih-kpis > div { display: grid; gap: 6px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; }
.ih-kpis span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.ih-kpis b { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ih-kpis .blu { color: #2563eb; } .ih-kpis .red { color: #dc2626; } .ih-kpis .grn { color: #059669; }
.ih-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.ih-box { padding: 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; }
.ih-bt { display: block; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; }
.ih-chart { display: flex; align-items: flex-end; gap: 12px; height: 300px; }
.ih-chart i { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 3px; }
.ih-chart i::before, .ih-chart i::after { content: ""; flex: 1; border-radius: 3px 3px 0 0; transform-origin: bottom; }
.ih-chart i::before { height: var(--a); background: #3B82F6; }
.ih-chart i::after { height: var(--b); background: #F87171; }
.ih-mon { display: flex; gap: 12px; margin-top: 6px; font-size: 10.5px; color: #94a3b8; }
.ih-mon span { flex: 1; text-align: center; }
.ih-sh { display: grid; grid-template-columns: 100px 1fr 40px; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; }
.ih-sh i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #1F3A5F var(--w), #f1f5f9 var(--w)); }
.ih-sh b { font-weight: 500; text-align: right; color: #475569; }

/* ── La Tosquera: barra stone-900, Inter, color tosquera, pestañas con subrayado ── */
.lt { display: grid; grid-template-columns: 210px 1fr; background: #f5f5f4; color: #1c1917; }
.lt-side { display: flex; flex-direction: column; gap: 1px; padding: 16px 10px; background: #1c1917; color: #a8a29e; font-size: 13px; }
.lt-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; }
.lt-logo { width: 36px; height: 36px; flex: none; border-radius: 9px; background: #fff url("/images/proyectos/tosquera-logo.png") center / 26px no-repeat; }
.lt-brand b { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.lt-brand small { font-family: ui-monospace, Menlo, monospace; font-size: 8.5px; letter-spacing: .14em; color: #a8a29e; }
.lt-side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.lt-side a.on { background: #292524; color: #fff; }
.lt-side svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lt-main { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.lt-head { padding: 14px 26px 0; background: #fff; box-shadow: inset 0 -1px #e7e5e4; }
.lt-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #78716c; }
.lt-sp { flex: 1; }
.lt-btn { padding: 6px 11px; border-radius: 8px; box-shadow: inset 0 0 0 1px #e7e5e4; font-size: 12px; color: #44403c; background: #fff; }
.lt-btn.red { color: #dc2626; }
.lt-btn.dark { background: #3a2b20; color: #fff; box-shadow: none; }
.lt-hrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 10px 0 16px; }
.lt-hrow h2 { margin: 0 0 8px; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.lt-pills { display: flex; gap: 6px; }
.lp { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.lp.free { background: #f5f5f4; color: #44403c; box-shadow: inset 0 0 0 1px #e7e5e4; } .lp.act { background: #d1fae5; color: #047857; } .lp.tri { background: #ede9fe; color: #6d28d9; }
.lt-addr { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; font-size: 13px; color: #78716c; }
.lt-addr svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lt-kpis { display: flex; overflow: hidden; border-radius: 12px; box-shadow: inset 0 0 0 1px #e7e5e4; }
.lt-kpis > div { display: grid; gap: 4px; padding: 10px 16px; box-shadow: inset -1px 0 #e7e5e4; }
.lt-kpis span { font-size: 9.5px; letter-spacing: .1em; color: #a8a29e; }
.lt-kpis b { font-family: ui-monospace, Menlo, monospace; font-size: 15px; font-weight: 500; }
.lt-kpis .pvp { background: #fafaf9; } .lt-kpis .pvp b { font-size: 18px; font-weight: 700; }
.lt-tabs { display: flex; gap: 22px; font-size: 13.5px; color: #78716c; }
.lt-tab { padding: 10px 0 12px; transition: color .25s, box-shadow .25s; }
.lt-tab.is-on { color: #1c1917; font-weight: 500; box-shadow: inset 0 -2px #3a2b20; }
.lt-tab.hov { color: #1c1917; }
.lt-pane { grid-row: 2; grid-column: 1; min-height: 0; padding: 20px 26px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lt-pane.is-on { opacity: 1; visibility: visible; }
.lt-vg { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.lt-card { padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #e7e5e4; }
.lt-cap { display: block; margin: 4px 0 10px; font-size: 9.5px; letter-spacing: .14em; color: #a8a29e; }
.lt-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; margin-bottom: 18px; }
.lt-fields span { display: block; font-size: 11px; color: #78716c; }
.lt-fields b { font-size: 13.5px; font-weight: 500; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.grn { color: #059669; }
.lt-sim { grid-column: span 2; padding: 8px 10px; border-radius: 10px; background: #f0fdf4; }
.lt-sim small { display: block; font-size: 11px; color: #78716c; }
.lt-sim b small { display: inline; }
.lt-map { position: relative; min-height: 330px; border-radius: 14px; overflow: hidden; background: #e8ebe4 repeating-linear-gradient(32deg, transparent 0 46px, #fff 46px 50px), repeating-linear-gradient(-58deg, transparent 0 70px, #f6f7f3 70px 76px); box-shadow: inset 0 0 0 1px #e7e5e4; }
.lt-map .pin { position: absolute; top: 44%; left: 50%; width: 22px; height: 22px; margin: -22px 0 0 -11px; border-radius: 50% 50% 50% 0; background: #dc2626; transform: rotate(-45deg); box-shadow: 0 4px 8px rgba(0, 0, 0, .25); }
.lt-map span { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 10px; background: #fff; font-size: 12px; }
.lt-eh { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; }
.lt-eh b { font-weight: 600; }
.lt-chips { display: flex; gap: 6px; margin-bottom: 14px; }
.lc { padding: 5px 11px; border-radius: 999px; font-size: 12px; color: #57534e; box-shadow: inset 0 0 0 1px #e7e5e4; transition: .25s; }
.lc.is-on { background: #1c1917; color: #fff; box-shadow: none; }
.lt-tr { display: grid; grid-template-columns: 1fr 2fr 1fr .8fr; align-items: center; gap: 12px; padding: 11px 6px; box-shadow: inset 0 -1px #f5f5f4; font-size: 13px; transition: opacity .35s, max-height .45s, padding .45s; max-height: 46px; overflow: hidden; }
.lt-th { font-size: 10.5px; letter-spacing: .08em; color: #a8a29e; }
.lt-tbl.f-cur .lt-tr:not(.lt-th):not(.ec) { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
.es { padding: 3px 9px; border-radius: 999px; background: #f5f5f4; color: #292524; font-style: normal; font-size: 11.5px; font-weight: 500; }
.es.blue { background: #dbeafe; color: #1e40af; }
.lt-sel { padding: 6px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px #e7e5e4; font-size: 12px; color: #44403c; }
.lt-sub { display: block; margin: -6px 0 14px; font-size: 12px; color: #78716c; }
.lt-chart { display: flex; align-items: flex-end; gap: 26px; height: 300px; padding: 0 10px; box-shadow: inset 0 -1px #e7e5e4; }
.lt-chart > div { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.lt-chart i { width: 26px; height: var(--h); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.lt-chart i.c, .lt-leg i.c { background: #f87171; } .lt-chart i.g, .lt-leg i.g { background: #34d399; }
.lt-chart span { position: absolute; bottom: -22px; font-size: 11px; color: #78716c; }
.lt-leg { display: flex; align-items: center; gap: 6px; margin-top: 32px; font-size: 12px; color: #57534e; }
.lt-leg i { width: 10px; height: 10px; margin-left: 10px; border-radius: 3px; }
.lt-pane.is-on .lt-chart i { animation: lt-grow 1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes lt-grow { from { transform: scaleY(0); } }

/* ── ALONIA Construcciones: barra blanca, fondo #F5F5F7, tinta #1D1D1F, naranja solo en lo activo ── */
.ab { display: grid; grid-template-columns: 200px 1fr; background: #F5F5F7; color: #1D1D1F; font-family: Manrope, Inter, system-ui, sans-serif; }
.ab-side { display: flex; flex-direction: column; gap: 1px; padding: 16px 10px; background: #fff; box-shadow: inset -1px 0 rgba(29, 29, 31, .08); font-size: 13px; color: #4A4A4F; }
.ab-brand { padding: 2px 8px 12px; }
.ab-brand b { display: block; font-size: 14.5px; font-weight: 600; color: #1D1D1F; letter-spacing: .04em; }
.ab-brand small { font-size: 11.5px; color: #86868B; }
.ab-search { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; padding: 6px 10px; border-radius: 999px; background: #F5F5F7; font-size: 12px; color: #86868B; }
.ab-search kbd { font-family: inherit; font-size: 10.5px; }
.ab-g { margin: 10px 8px 4px; font-size: 11.5px; color: #A1A1A6; }
.ab-side a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 9px; border-radius: 9px; }
.ab-side a.on { background: rgba(255, 107, 0, .07); color: #FF6B00; font-weight: 500; }
.ab-side svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ab-user { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 8px; font-size: 12.5px; }
.ab-user > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 107, 0, .14); color: #FF6B00; font-weight: 600; }
.ab-user b { display: block; font-weight: 600; color: #1D1D1F; } .ab-user small { color: #86868B; font-size: 11px; }
.ab-main { padding: 16px 22px; overflow: hidden; }
.ab-back { font-size: 12.5px; color: #86868B; }
.ab-hrow { display: flex; justify-content: space-between; align-items: flex-end; margin: 4px 0 12px; }
.ab-hrow h1 { margin: 0 0 6px; font-size: 32px; font-weight: 300; letter-spacing: -.02em; }
.ab-badges { display: flex; gap: 6px; }
.ab-badges span { padding: 3px 9px; border-radius: 999px; background: #EDEDF1; font-size: 11px; font-weight: 500; }
.ab-badges .blue { background: rgba(0, 113, 227, .1); color: #0071E3; }
.ab-venta { text-align: right; } .ab-venta span { display: block; font-size: 10px; letter-spacing: .1em; color: #86868B; } .ab-venta b { font-size: 20px; font-weight: 600; }
.ab-tabs { display: flex; gap: 16px; margin-bottom: 12px; font-size: 12.5px; color: #86868B; white-space: nowrap; box-shadow: inset 0 -1px rgba(29, 29, 31, .08); }
.ab-tabs span { padding-bottom: 8px; }
.ab-tabs .on { color: #1D1D1F; font-weight: 600; box-shadow: inset 0 -2px #1D1D1F; }
.ab-kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08); }
.ab-kpis > div { display: grid; gap: 3px; padding: 12px 16px; box-shadow: inset -1px 0 rgba(29, 29, 31, .06); }
.ab-kpis span { font-size: 11px; color: #86868B; }
.ab-kpis b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-kpis .red, .ab-tr .red { color: #D70015; } .ab-tr .grn { color: #248A3D; } .ab-tr .gry { color: #C7C7CC; }
.ab-prog { display: block; height: 4px; margin-top: 3px; border-radius: 2px; background: #EDEDF1; } .ab-prog i { display: block; width: var(--w); height: 100%; border-radius: 2px; background: #1D1D1F; }
.ab-tools { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; }
.ab-find { flex: 0 0 300px; padding: 7px 11px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08); color: #A1A1A6; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.ab-seg { display: flex; padding: 2px; border-radius: 9px; background: #EDEDF1; }
.ab-seg i { padding: 5px 10px; border-radius: 7px; font-style: normal; color: #4A4A4F; transition: .25s; }
.ab-seg i.is-on { background: #fff; color: #1D1D1F; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ab-sp { flex: 1; }
.ab-b { padding: 7px 11px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .1); }
.ab-b.dark { background: #1D1D1F; color: #fff; box-shadow: none; }
.ab-tbl { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08); font-size: 12px; }
.ab-tr { display: grid; grid-template-columns: 62px minmax(0, 2.6fr) .4fr .6fr .7fr .8fr; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; box-shadow: inset 0 -1px #F0F0F2; font-variant-numeric: tabular-nums; transition: background .3s, max-height .45s, opacity .35s; }
.ab-tr > span:nth-child(n+3) { text-align: right; }
.ab-tr .k { display: none; }
.ab-tbl.is-cc .ab-tr { grid-template-columns: 62px minmax(0, 2.2fr) .8fr .8fr .9fr .8fr .8fr .9fr; }
.ab-tbl.is-cc .ab-tr .t { display: none; }
.ab-tbl.is-cc .ab-tr .k { display: block; }
.ab-th { min-height: 30px; font-size: 10px; letter-spacing: .06em; color: #86868B; }
.ab-tot { background: #1D1D1F; color: #fff; font-weight: 600; }
.ab-tot small { margin-left: 6px; font-weight: 400; color: #A1A1A6; }
.ab-tot .red { color: #ff8a8a; }
.ab-cap { background: #EDEDF1; box-shadow: inset 3px 0 #1D1D1F, inset 0 -1px #e2e2e6; font-weight: 600; }
.ab-cap b { padding: 2px 6px; border-radius: 5px; background: #1D1D1F; color: #fff; font-size: 10.5px; }
.ab-cap small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .04em; color: #86868B; }
.ab-cap small em { font-style: normal; }
.ab-cap.hov { background: #e4e4ea; }
.ab-par { max-height: 0; min-height: 0; opacity: 0; overflow: hidden; }
.ab-tbl.open5 .ab-par { max-height: 40px; min-height: 34px; opacity: 1; }
.ab-par.sel { background: #EAF2FF; box-shadow: inset 3px 0 #0071E3, inset 0 -1px #F0F0F2; }
.ab-par.hov { background: #f7f7f9; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.dot.ej { background: #FF9500; } .dot.ad { background: #0071E3; } .dot.pe { background: #B0B0B5; }
.av { display: inline-block; width: 40px; height: 4px; margin-right: 6px; border-radius: 2px; vertical-align: middle; background: linear-gradient(90deg, #1D1D1F var(--w), #EDEDF1 var(--w)); }
.ab-tot .av { background: linear-gradient(90deg, #fff var(--w), #4A4A4F var(--w)); }
.ab-tr [data-k="desv"] { position: relative; }
.ab-tip { position: absolute; left: calc(100% + 8px); top: 50%; padding: 4px 9px; border-radius: 8px; background: #1D1D1F; color: #fff; font-style: normal; font-size: 11px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translate(-4px, -50%); transition: .25s; z-index: 2; }
.ab-tip.is-on { opacity: 1; transform: translate(0, -50%); }
.ab-hint { margin: 8px 2px 0; font-size: 11px; color: #A1A1A6; }

/* Frank: ficha del contacto (de dónde viene y qué miró) y analítica por casa */
.fk-det { padding: 22px 28px; }
.fk-crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; color: #5C6675; }
.fk-crumb b { color: #16263D; font-weight: 500; }
.fk-sp { flex: 1; }
.fk-cols { display: grid; grid-template-columns: 1fr 210px; gap: 22px; }
.fk-form, .fk-aside { display: grid; gap: 10px; align-content: start; }
.fk-form label, .fk-aside label { display: grid; gap: 4px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #5C6675; }
.fk-form label i, .fk-aside label i { padding: 7px 10px; border: 1px solid #D8DCE3; background: #fff; font-style: normal; font-size: 13px; letter-spacing: 0; text-transform: none; color: #16263D; }
.fk-form .ta { line-height: 1.45; }
.fk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fk-chip { display: inline-block; margin-right: 4px; padding: 1px 7px; background: #F5F6F8; font-size: 12px; font-weight: 500; }
.fk-journey { padding: 12px 14px; background: #F5F6F8; font-size: 12.5px; }
.fk-journey > b { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; }
.fk-facts { margin: 0 0 8px; color: #5C6675; }
.fk-facts b { color: #16263D; font-weight: 500; }
.fk-jl { display: block; margin-bottom: 4px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #5C6675; }
.fk-pv, .fk-ni { padding: 5px 0; }
.fk-pv a, .fk-ni a { display: block; color: #27456B; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.fk-pv small, .fk-ni small { font-size: 11.5px; color: #5C6675; }
.fk-hl { transition: background .3s, box-shadow .3s; }
.fk-hl.hov { background: #fff4c7; box-shadow: 0 0 0 4px #fff4c7; }
.fk-ctx { border: 1px solid #D8DCE3; }
.fk-ctxh { display: block; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.fk-ctxh::before { content: "▸ "; }
.fk-ctx.open .fk-ctxh::before { content: "▾ "; }
.fk-ctxb { display: grid; gap: 8px; max-height: 0; overflow: hidden; padding: 0 12px; transition: max-height .5s, padding .5s; }
.fk-ctx.open .fk-ctxb { max-height: 220px; padding: 0 12px 12px; }
.fk-ctxb { grid-template-columns: repeat(4, 1fr); }
.fk-ctxb > label { grid-column: 1 / -1; }
.fk-ctxb .fk-row2 { display: contents; }
.fk-in.wide { max-width: 1080px; padding-top: 24px; }
.fk-ah { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.fk-back { font-size: 12px; color: #5C6675; }
.fk-ah h2 { margin: 4px 0 2px; font-size: 32px; font-weight: 300; }
.fk-ah small { font-size: 13px; color: #5C6675; }
.fk-seg { display: flex; border: 1px solid #D8DCE3; }
.fk-seg i { padding: 6px 12px; font-style: normal; font-size: 12px; color: #5C6675; }
.fk-seg i.on { background: #16263D; color: #fff; }
.fk-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.fk-tiles div { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid #D8DCE3; }
.fk-tiles span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #5C6675; }
.fk-tiles b { font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; }
.fk-tiles small { font-size: 10.5px; color: #8a929e; }
.fk-atabs { display: flex; gap: 22px; margin-bottom: 14px; font-size: 13px; color: #5C6675; box-shadow: inset 0 -1px #D8DCE3; }
.fk-atabs span { padding-bottom: 8px; }
.fk-atabs .on { color: #16263D; font-weight: 500; box-shadow: inset 0 -2px #16263D; }
.fk-acols { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; }
.fk-box { padding: 14px 16px; border: 1px solid #D8DCE3; font-size: 12.5px; }
.fk-box > b { display: block; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.fk-bl { display: grid; grid-template-columns: 1fr 120px 44px; align-items: center; gap: 10px; padding: 6px 0; }
.fk-bl i { height: 8px; background: linear-gradient(90deg, #16263D var(--w), #edf0f5 var(--w)); }
.fk-bl em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: #5C6675; }
.fk-ni { box-shadow: inset 0 -1px #edf0f5; }

/* Isa's Homes: ficha de la casa, rentabilidad e informe del mes */
.ih-lab { transition: color .25s; }
.ih-lab.hov { color: #2563eb; text-decoration: underline; }
.ih-ph { margin-bottom: 10px; }
.ih-backl { font-size: 12.5px; color: #64748b; }
.ih-pt { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; }
.ih-pt b { font-size: 22px; font-weight: 700; }
.ih-ph small { font-size: 12.5px; color: #64748b; }
.ih-st { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.ih-st.occ { background: #dcfce7; color: #166534; } .ih-st.web { background: #e0f2fe; color: #0369a1; }
.ih-ptabs { display: flex; gap: 18px; margin-bottom: 14px; font-size: 13px; color: #64748b; white-space: nowrap; box-shadow: inset 0 -1px #e2e8f0; }
.ih-ptab { padding-bottom: 9px; transition: color .25s; }
.ih-ptab i { margin-left: 3px; padding: 0 6px; border-radius: 999px; background: #f1f5f9; font-style: normal; font-size: 10.5px; }
.ih-ptab.is-on { color: #0f172a; font-weight: 600; box-shadow: inset 0 -2px #0f172a; }
.ih-ptab.hov { color: #0f172a; }
.ih-ppanes { display: grid; font-size: 13px; }
.ih-ppane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.ih-ppane.is-on { opacity: 1; visibility: visible; }
.ih-rh { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ih-rh b { font-size: 15px; font-weight: 600; }
.ih-rh .ih-seg { margin-left: auto; }
.ih-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.ih-figs span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; }
.ih-figs span i { width: 8px; height: 8px; border-radius: 50%; }
.ih-figs b { display: block; margin: 2px 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ih-figs small { font-size: 11.5px; color: #94a3b8; }
.ih-euro { display: flex; height: 10px; margin-bottom: 10px; overflow: hidden; border-radius: 5px; }
.ih-euro i { width: var(--w); transition: filter .3s, transform .3s; }
.ih-euro i.hov { filter: brightness(1.12); transform: scaleY(1.7); }
.ih-eleg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; font-size: 11.5px; color: #475569; }
.ih-eleg span { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 6px; transition: background .3s; }
.ih-eleg i { width: 8px; height: 8px; border-radius: 2px; }
.ih-eleg b { font-weight: 500; color: #0f172a; }
.ih-eleg span.hov { background: #fef3c7; }
.ih-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 10px; border-radius: 10px; background: #f8fafc; }
.ih-strip div { display: grid; gap: 2px; padding: 10px 12px; }
.ih-strip span { font-size: 10.5px; color: #64748b; }
.ih-strip b { font-size: 15px; font-weight: 600; }
.ih-foot { margin: 0; font-size: 11.5px; color: #94a3b8; }
.ih-ok { margin: -6px 0 12px; padding: 8px 12px; border-radius: 9px; background: #ecfdf5; color: #047857; font-size: 12.5px; }
.ih-kpis.sm > div { padding: 12px; }
.ih-kpis.sm b { font-size: 19px; }
.ih-rep .ih-two { grid-template-columns: .9fr 1.3fr; }
.ih-gt { display: grid; grid-template-columns: 40px 1.3fr 1.2fr 52px 64px; gap: 8px; align-items: center; padding: 7px 4px; font-size: 11.5px; box-shadow: inset 0 -1px #f1f5f9; }
.ih-gt b { text-align: right; font-weight: 500; }
.ih-gt a { color: #2563eb; font-size: 11px; }
.ih-gth { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.ih-hlrow { border-radius: 6px; transition: background .3s; }
.ih-hlrow.hov { background: #fef9c3; }

/* ALONIA: pestañas de la obra, tareas, partes e imputación */
.ab-main { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.ab-tab { transition: color .25s, box-shadow .25s; }
.ab-tab.is-on { color: #1D1D1F; font-weight: 600; box-shadow: inset 0 -2px #1D1D1F; }
.ab-tab.hov { color: #1D1D1F; }
.ab-pane { grid-row: 4; grid-column: 1; min-height: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.ab-pane.is-on { opacity: 1; visibility: visible; }
.ab-stats { display: flex; gap: 30px; margin-bottom: 10px; }
.ab-stats span { display: block; font-size: 11px; color: #86868B; }
.ab-stats b { font-size: 19px; font-weight: 600; }
.ab-pills { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12px; }
.ab-pills i { padding: 4px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .1); font-style: normal; color: #4A4A4F; }
.ab-pills i.is-on { background: #1D1D1F; color: #fff; box-shadow: none; }
.ab-pills span { margin-left: 6px; color: #A1A1A6; }
.ab-newt { display: flex; gap: 8px; margin-bottom: 10px; }
.ab-newt .ab-inp { flex: 1; }
.ab-inp { display: flex; align-items: center; min-height: 32px; padding: 0 11px; overflow: hidden; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .12); font-size: 12.5px; white-space: nowrap; transition: box-shadow .2s; }
.ab-inp em { font-style: normal; color: #A1A1A6; }
.ab-inp.has-text em { display: none; }
.ab-inp b { font-weight: 500; }
.ab-inp.typing, .ab-inp.hov { box-shadow: inset 0 0 0 2px #0071E3; }
.ab-tasks, .ab-plist { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08); font-size: 12.5px; }
.ab-tk { display: grid; grid-template-columns: 2fr 1.6fr .8fr .8fr .9fr; gap: 10px; align-items: center; min-height: 38px; padding: 0 14px; box-shadow: inset 0 -1px #F0F0F2; }
.ab-tk > span:nth-child(3), .ab-tk > span:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.ab-tkh { min-height: 30px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #86868B; }
.ab-tk.done > span:first-child { color: #86868B; text-decoration: line-through; }
.ab-tk .mut { color: #A1A1A6; }
.ab-tk b { font-weight: 400; }
.ab-tknew { max-height: 0; min-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s, min-height .45s, opacity .35s, background .5s; }
.ab-tknew.is-on { max-height: 40px; min-height: 38px; opacity: 1; background: #EAF2FF; }
.ab-est { padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 600; transition: background .3s, color .3s; }
.ab-est.pen { background: rgba(176, 120, 0, .1); color: #B07800; } .ab-est.run { background: rgba(0, 113, 227, .1); color: #0071E3; }
.ab-est.blk { background: rgba(255, 59, 48, .1); color: #FF3B30; } .ab-est.ok { background: rgba(36, 138, 61, .1); color: #248A3D; }
.ab-tform { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 10px; max-height: 0; padding: 0 14px; overflow: hidden; opacity: 0; background: #FAFAFC; transition: max-height .5s, opacity .4s, padding .5s; }
.ab-tform.is-on { max-height: 170px; padding: 12px 14px; opacity: 1; box-shadow: inset 0 -1px #F0F0F2; }
.ab-tform label, .ab-pp2 label { display: grid; gap: 4px; font-size: 10.5px; color: #86868B; }
.ab-tform .w2 { grid-column: span 2; }
.ab-ph { display: flex; align-items: center; gap: 30px; margin-bottom: 12px; }
.ab-ph b { display: block; font-size: 26px; font-weight: 300; }
.ab-ph span { font-size: 11.5px; color: #86868B; }
.ab-pentry { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08); }
.ab-pentry .ab-inp { flex: 0 0 92px; }
.ab-pentry .ab-inp.sm { flex-basis: 58px; }
.ab-pentry .ab-inp.lg { flex: 1 1 auto; }
.ab-sel { position: relative; flex: 0 0 196px; display: flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .12); font-size: 12px; white-space: nowrap; }
.ab-sel .tx { overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ab-sel::after { content: "▾"; margin-left: auto; padding-left: 6px; color: #86868B; }
.ab-menu { position: absolute; z-index: 3; top: 36px; left: 0; min-width: 250px; display: grid; padding: 4px; border-radius: 10px; background: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .3), 0 0 0 1px rgba(29, 29, 31, .08); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s; }
.ab-menu.is-on { opacity: 1; visibility: visible; transform: none; }
.ab-menu i { padding: 7px 10px; border-radius: 7px; font-style: normal; }
.ab-menu i.hov { background: #EAF2FF; color: #0071E3; }
.ab-pr { display: grid; grid-template-columns: 50px 2.4fr 1.4fr 70px; gap: 10px; align-items: center; min-height: 42px; padding: 0 14px; box-shadow: inset 0 -1px #F0F0F2; }
.ab-pr b { font-weight: 600; }
.ab-pr .pcc { font-size: 11.5px; color: #4A4A4F; }
.ab-pr .pcc.warn { color: #FF9500; font-weight: 600; }
.ab-pr .ph { text-align: right; }
.ab-pr .ph b { display: block; }
.ab-pr .ph small { color: #86868B; }
.ab-prnew { max-height: 0; min-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s, min-height .45s, opacity .35s; }
.ab-prnew.is-on { max-height: 46px; min-height: 42px; opacity: 1; background: #EAF2FF; }
.ab-ppanel { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08); font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: .4s; }
.ab-ppanel.is-on { opacity: 1; transform: none; }
.ab-ppanel > b { font-size: 13.5px; }
.ab-pp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.ab-cost { margin: 0 0 2px; font-size: 13px; }
.ab-cost b { color: #0071E3; }
.ab-ppanel small { color: #86868B; }
.ab-tr .k.flash { animation: ab-flash 1.6s ease; }
@keyframes ab-flash { 25% { background: #fff1b8; } }
/* La Tosquera: Ingresos y Gastos con filtros desplegables, resumen y lista de movimientos */
.lt-pane[data-k="ping"] { padding-top: 14px; }
.lt-filt { display: flex; gap: 8px; margin-bottom: 8px; }
.lt-dd { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #d6d3d1; border-radius: 6px; background: #fff; font-size: 12.5px; color: #44403c; transition: background .2s, box-shadow .2s; }
.lt-dd::after { content: "▾"; font-size: 10px; color: #78716c; }
.lt-dd b { font-weight: 400; }
.lt-dd.on { border-color: #3a2b20; box-shadow: 0 0 0 2px rgba(58, 43, 32, .12); font-weight: 500; }
.lt-dd.hov { background: #fafaf9; }
.lt-menu { position: absolute; z-index: 3; top: 32px; left: 0; min-width: 170px; display: grid; padding: 4px; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .3), 0 0 0 1px #e7e5e4; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s; }
.lt-menu.is-on { opacity: 1; visibility: visible; transform: none; }
.lt-menu i { padding: 6px 10px; border-radius: 6px; font-style: normal; font-weight: 400; }
.lt-menu i.hov { background: #f5f5f4; color: #1c1917; font-weight: 500; }
.lt-seg { padding: 0; overflow: hidden; }
.lt-segh { padding: 8px 18px; box-shadow: inset 0 -1px #f5f5f4; }
.lt-segh b { display: block; font-size: 14px; font-weight: 600; }
.lt-segh small { font-size: 11.5px; color: #a8a29e; }
.lt-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px 18px; }
.lt-res > div { padding: 7px 12px; border-radius: 10px; background: #fafaf9; }
.lt-res span { font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a8a29e; }
.lt-res b { display: block; margin: 0 0 2px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 6px; }
.lt-res b.red { color: #dc2626; } .lt-res b.grn { color: #047857; }
.lt-res b.flash { animation: lt-flash 1.2s ease; }
@keyframes lt-flash { 25% { background: #fef3c7; } }
.lt-res p { display: flex; justify-content: space-between; margin: 0; font-size: 11.5px; color: #78716c; }
.lt-res em { font-family: ui-monospace, Menlo, monospace; font-style: normal; color: #57534e; }
.lt-res em.amb { color: #b45309; }
.lt-mvh { display: flex; align-items: center; gap: 8px; padding: 2px 18px 6px; }
.lt-mvh b { font-size: 13.5px; font-weight: 600; }
.lt-find { width: 150px; padding: 5px 10px; border: 1px solid #e7e5e4; border-radius: 8px; font-size: 11.5px; color: #a8a29e; }
.lt-mv { font-size: 12px; }
.lt-mr { display: grid; grid-template-columns: 82px minmax(0, 2.4fr) 82px 88px 74px 78px 104px; gap: 8px; align-items: center; padding: 4px 18px; box-shadow: inset 0 -1px #f5f5f4; transition: background .25s; }
.lt-mr > span:nth-child(4), .lt-mr > span:nth-child(5) { text-align: right; font-family: ui-monospace, Menlo, monospace; white-space: nowrap; }
.lt-mr > span:nth-child(6), .lt-mr > span:nth-child(7) { text-align: center; }
.lt-mr > span:nth-child(1), .lt-mr > span:nth-child(3) { color: #78716c; white-space: nowrap; }
.lt-mr b { font-weight: 500; }
.lt-mr small { display: block; overflow: hidden; font-size: 11px; color: #a8a29e; white-space: nowrap; text-overflow: ellipsis; }
.lt-mr em { font-style: normal; font-weight: 500; }
.lt-mr em.g { color: #dc2626; } .lt-mr em.i { color: #047857; }
.lt-mr u { color: #78716c; text-underline-offset: 2px; }
.lt-mr .neg { color: #dc2626; } .lt-mr .pos { color: #047857; }
.lt-mrh { padding: 6px 18px; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; color: #a8a29e; }
.lt-mr.hov { background: #fafaf9; }
.es.amb { background: #fef3c7; color: #92400e; } .es.ok { background: #d1fae5; color: #065f46; } .es.par { background: #ffedd5; color: #c2410c; }
.lt-rp { display: inline-block; padding: 3px 8px; border: 1px solid #e7e5e4; border-radius: 7px; font-style: normal; font-size: 11px; color: #44403c; transition: background .2s; }
.lt-rp.hov { background: #1c1917; color: #fff; border-color: #1c1917; }
.lt-mv.f-y25 .lt-mr:not(.lt-mrh):not(.y25), .lt-mv.f-obra .lt-mr:not(.lt-mrh):not(.tobra) { display: none; }
/* Frank: listado de propiedades (Publicada / Borrador y Reservada / Vendida con un clic) */
.fk-main { position: relative; }
.fk-ptable { font-size: 13px; }
.fk-pr { display: grid; grid-template-columns: 70px 1.6fr .8fr 150px 86px 120px .9fr; gap: 10px; align-items: center; padding: 10px; box-shadow: inset 0 -1px #D8DCE3; }
.fk-pr b { font-weight: 500; }
.fk-pr.flash { animation: fk-flash 1.2s ease; }
.fk-av { display: flex; gap: 6px; }
.fk-av i { padding: 4px 8px; border: 1px solid #d8dce3; border-radius: 2px; background: #fff; color: #5c6675; font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transition: .25s; }
.fk-av i.hov { border-color: #27456b; color: #16263d; }
.fk-av i.res { background: #f5f6f8; border-color: #16263d; color: #16263d; }
.fk-av i.sld { background: #16263d; border-color: #16263d; color: #fff; }
.fk-vis { display: flex; align-items: center; gap: 10px; color: #5c6675; }
.fk-vis i { position: relative; width: 34px; height: 18px; flex: none; border-radius: 9px; background: #d8dce3; transition: background .3s; }
.fk-vis i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s; }
.fk-vis.on { color: #16263d; }
.fk-vis.on i { background: #16263d; }
.fk-vis.on i::after { transform: translateX(16px); }
.fk-vis b { font-weight: 400; }
.fk-toast { position: absolute; right: 28px; bottom: 24px; padding: 10px 16px; background: #16263d; color: #fff; font-size: 13px; opacity: 0; transform: translateY(8px); transition: .35s; }
.fk-toast.is-on { opacity: 1; transform: none; }

/* Isa's Homes: pantalla Hoy (Operaciones) */
.ih-hoy .ih-fh { margin-bottom: 10px; }
.ih-warn { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 8px 12px; border: 1px solid #fde68a; border-radius: 10px; background: #fffbeb; color: #92400e; font-size: 12.5px; }
.ih-warn span { margin-left: auto; font-weight: 600; }
.ih-kstrip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #f1f5f9; }
.ih-kstrip > div { display: grid; gap: 2px; min-width: 0; padding: 12px 16px; border-radius: 14px; box-shadow: inset -1px 0 #f1f5f9; transition: background .3s; }
.ih-kstrip span { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .08em; color: #94a3b8; }
.ih-kstrip span i { width: 8px; height: 8px; border-radius: 2px; }
.ih-kstrip i.em { background: #10b981; } .ih-kstrip i.bl { background: #3b82f6; } .ih-kstrip i.vi { background: #8b5cf6; } .ih-kstrip i.am { background: #f59e0b; }
.ih-kstrip b { font-size: 24px; font-weight: 700; }
.ih-kstrip small { overflow: hidden; font-size: 12px; color: #94a3b8; white-space: nowrap; text-overflow: ellipsis; }
.ih-hl.hov { background: #f1f5f9; }
.ih-hgrid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; font-size: 13px; }
.ih-hgrid .ih-box { padding: 12px; }
.ih-hgrid .ih-bt { margin-bottom: 8px; }
.ih-chip { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #f1f5f9; font-style: normal; font-size: 10.5px; font-weight: 500; color: #64748b; }
.ih-cnt { float: right; font-style: normal; font-weight: 500; color: #94a3b8; }
.ih-mvr { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 10px; transition: background .3s; }
.ih-mvr > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-style: normal; font-size: 15px; }
.ih-mvr > i.in { background: #ecfdf5; color: #059669; } .ih-mvr > i.in::after { content: "→"; }
.ih-mvr > i.out { background: #eff6ff; color: #2563eb; } .ih-mvr > i.out::after { content: "←"; }
.ih-mvr b { font-size: 13.5px; font-weight: 600; }
.ih-mvr small { display: block; font-size: 11.5px; color: #94a3b8; }
.ih-mvr p { margin: 0; text-align: right; }
.ih-mvr p b { font-size: 12.5px; color: #64748b; }
.ih-mvr p b.em { color: #059669; } .ih-mvr p b.am { color: #d97706; }
.ih-mvr p small { font-size: 10px; } .ih-mvr p small.em { color: #10b981; } .ih-mvr p small.bl { color: #60a5fa; }
.ih-rcol { display: grid; gap: 10px; align-content: start; }
.ih-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ih-minis .ih-box { display: grid; gap: 2px; padding: 10px 12px; }
.ih-minis span { font-size: 12px; color: #64748b; }
.ih-minis b { font-size: 20px; font-weight: 700; }
.ih-minis small { font-size: 11px; color: #94a3b8; } .ih-minis small.red { color: #ef4444; font-weight: 700; }
.ih-act { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; }
.ih-act b { font-weight: 600; } .ih-act small { display: block; font-size: 11px; color: #94a3b8; } .ih-act span { font-size: 11px; color: #64748b; }
.ih-est { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
.ih-est i { width: 6px; height: 6px; border-radius: 50%; background: #e2e8f0; } .ih-est i.on { background: #10b981; }
.ih-est em { margin-left: auto; font-style: normal; font-size: 11px; color: #059669; } .ih-est em.off { color: #cbd5e1; }

/* ALONIA: listado de obras (lo primero al entrar en Obras) */
.ab-main { position: relative; }
.ab-list { position: absolute; inset: 0; z-index: 4; padding: 22px 26px; background: #F5F5F7; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.ab-list.is-on { opacity: 1; visibility: visible; }
.ab-lh { display: flex; justify-content: space-between; align-items: center; max-width: 780px; margin-bottom: 16px; }
.ab-lh h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ab-lcard { max-width: 780px; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08); }
.ab-lr { display: flex; align-items: center; gap: 10px; padding: 14px 20px; box-shadow: inset 0 -1px rgba(29, 29, 31, .06); transition: background .25s; }
.ab-lr.hov { background: rgba(29, 29, 31, .035); }
.ab-lr > div { flex: 1; }
.ab-lr b { display: block; font-size: 15px; font-weight: 500; }
.ab-lr small { font-size: 12.5px; color: #86868B; }
.ab-lt { font-size: 12.5px; color: #6E6E73; }
.ab-badge { padding: 4px 10px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 500; }
.ab-badge.info { background: rgba(0, 113, 227, .1); color: #0071E3; } .ab-badge.ok { background: rgba(52, 199, 89, .12); color: #248A3D; }
.ab-badge.warn { background: rgba(255, 149, 0, .12); color: #C76E00; } .ab-badge.mut { background: rgba(134, 134, 139, .12); color: #6E6E73; }

/* ALONIA: detalle de una partida con sus gastos (facturas y partes imputados) */
.ab-pane[data-k="ppre"] { overflow: hidden; }
.ab-det { max-height: 0; overflow: hidden; opacity: 0; background: #F7FAFF; box-shadow: inset 3px 0 #0071E3; transition: max-height .5s, opacity .4s; }
.ab-det.is-on { max-height: 260px; opacity: 1; }
.ab-dh { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 4px 20px; }
.ab-dh b { font-size: 13px; font-weight: 600; }
.ab-dh span { padding: 3px 9px; border-radius: 999px; background: rgba(255, 149, 0, .12); color: #C76E00; font-size: 11px; font-weight: 600; }
.ab-dfig { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 6px 16px 8px 20px; }
.ab-dfig span { display: block; font-size: 10px; color: #86868B; }
.ab-dfig b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-dfig b.red { color: #D70015; }
.ab-dg { margin: 0 16px 12px 20px; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .08); }
.ab-dgt { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: #1D1D1F; }
.ab-dgr { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 5px 4px; border-radius: 8px; font-size: 12px; box-shadow: inset 0 -1px #F0F0F2; transition: background .3s; }
.ab-dgr:last-child { box-shadow: none; }
.ab-dgr > span:first-child { color: #86868B; }
.ab-dgr b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-dgr a { margin-left: 6px; color: #0071E3; text-decoration: underline; text-underline-offset: 2px; }
.ab-dgr.parte { background: #EAF2FF; }
.ab-dgr.hov { background: #dbe9ff; }
@media (max-width: 1100px) {
  .proj-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .proj-text { max-width: 60ch; }
}
@media (max-width: 900px) {
  .projects { padding-bottom: 104px; }
  .projects .h2 { margin-bottom: 28px; }
  .proj-tabs { display: flex; gap: 24px; margin: 0 calc(-1 * var(--side)) 24px; padding: 0 var(--side) 4px; overflow-x: auto; scrollbar-width: none; }
  .proj-tabs::-webkit-scrollbar { display: none; }
  .proj-tab { flex: none; }
  .proj-tab b { font-size: 20px; white-space: nowrap; }
  .proj-panel { gap: 22px; }
  .proj-shot { order: -1; margin: 0 calc(-1 * var(--side) + var(--inset)); padding: 42px 12px 12px; }
  .demo-tags { top: -32px; font-size: 11px; }
  .cur, .cur svg { width: 16px; height: 16px; }
  .proj-text h3 { margin-bottom: 12px; font-size: 24px; }
  .proj-text p { margin-bottom: 16px; font-size: 15.5px; }
  .proj-mods { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cur { display: none; }
}

/* Botón principal sobre fondo claro: rectangular, en tinta y con letra blanca, como "Contacto"
   en la barra; la flecha avanza al pasar el ratón. */
.btn-sq {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 15px 30px; border-radius: 0;
  background: var(--ink); color: #fff; font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .01em;
  transition: background .3s;
}
.btn-sq span { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.btn-sq:hover { background: var(--sea-deep); color: #fff; }
.btn-sq:hover span { transform: translateX(4px); }
.btn-sq:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }