/* ==========================================================
   Fuga — estudio de interiorismo efímero
   Paleta y tipografía tomadas del PDF "Trabajo final"
   ========================================================== */

:root {
  /* color */
  --vino: #500001;          /* fondo de contacto */
  --vino-hondo: #2c0006;
  --ciruela: #6e2540;       /* encabezados de tablas, "Fuga." */
  --ciruela-claro: #8d3154;
  --terciopelo: #5d2528;
  --rosa: #fcedf2;          /* filas alternas */
  --rosa-medio: #f6dce5;
  --rosa-fuerte: #dca6b7;   /* celdas del Gantt */
  --rosa-subtotal: #e9bfcc;
  --salmon: #df8270;        /* títulos FODA, matriz */
  --salmon-claro: #f0b4a6;
  --foda-f: #f3dad6;
  --foda-o: #c4605a;
  --foda-a: #b9524e;
  --foda-d: #de8a72;
  --papel: #f1f0eb;         /* marco polaroid */
  --tinta: #2a0a12;
  --crema: #fbefea;
  --linea-venn: #e8b9b1;

  /* tipografía */
  --f-texto: "Poppins", system-ui, sans-serif;
  --f-titulo: "Archivo", "Poppins", system-ui, sans-serif;

  --t-0: 0.8125rem;
  --t-1: 1rem;
  --t-2: 1.125rem;
  --t-3: 1.375rem;
  --t-4: clamp(1.6rem, 2.6vw, 2.1rem);
  --t-5: clamp(2.3rem, 4.8vw, 4.1rem);

  --margen: clamp(16px, 5vw, 72px);
  --ancho: 1240px;
  --cabecera: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cabecera) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--vino-hondo);
  color: var(--crema);
  font-family: var(--f-texto);
  font-size: var(--t-1);
  line-height: 1.65;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid #ffe3d8;
  outline-offset: 4px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.saltar {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--crema); color: var(--tinta);
  padding: .6rem 1rem; border-radius: 6px; text-decoration: none;
}
.saltar:focus { top: 12px; }

.contenedor {
  width: min(100% - 2 * var(--margen), var(--ancho));
  margin-inline: auto;
}

/* ---------- Títulos de estilo Fuga ---------- */
.titulo-ancho {
  font-family: var(--f-titulo);
  font-stretch: 118%;
  font-weight: 800;
  font-size: var(--t-5);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: #fff;
  text-wrap: balance;
}
.titulo-medio {
  font-family: var(--f-titulo);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--t-4);
  line-height: 1.1;
  color: #fff;
}
.titulo-versal {           /* FORTALEZAS, CLIENTES ACTIVOS… como en el PDF */
  font-family: var(--f-titulo);
  font-stretch: 108%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: var(--t-3);
  line-height: 1.2;
}

/* ==========================================================
   Cabecera
   ========================================================== */
.cabecera {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--cabecera);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(16px, 4.4vw, 64px);
  transition: background-color .35s ease, backdrop-filter .35s ease;
}
.cabecera.es-solida {
  background: rgb(44 0 6 / .62);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.marca {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: #fff;
  font-family: var(--f-texto); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.marca svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: clamp(1rem, 4.2vw, 4.4rem); }
.nav a {
  text-decoration: none; color: #fff;
  font-size: var(--t-2); font-weight: 400;
  padding-block: .4rem;
  transition: opacity .2s;
}
.nav a:hover { opacity: .75; }
.nav a.es-actual { font-weight: 600; }

/* ==========================================================
   Inicio
   ========================================================== */
.inicio {
  position: relative;
  min-height: 100svh;
  min-height: max(100svh, 560px);
  overflow: hidden;
  isolation: isolate;
}
.inicio__foto {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
  z-index: -2;
}
.inicio::after {               /* leve oscurecido para leer el texto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(20 0 4 / .28), transparent 30%, transparent 70%, rgb(20 0 4 / .35));
}
.inicio__vidrio {
  position: absolute;
  left: clamp(16px, 3.4vw, 48px);
  top: clamp(16px, 5.2vh, 44px);
  bottom: clamp(16px, 5.2vh, 44px);
  width: min(56%, 820px);
  border-radius: 28px;
  background: rgb(255 255 255 / .16);
  border: 1px solid rgb(255 255 255 / .2);
  -webkit-backdrop-filter: blur(3px) saturate(1.08);
  backdrop-filter: blur(3px) saturate(1.08);
  display: flex; flex-direction: column;
  padding: calc(var(--cabecera) + 4vh) clamp(20px, 2.6vw, 40px) 5.5rem;
}
.inicio__marca {
  font-family: var(--f-texto);
  font-weight: 700;
  font-size: clamp(5.2rem, 12.5vw, 12.5rem);
  line-height: .8;
  letter-spacing: -0.045em;
  color: #fff;
  margin-top: 3vh;
}
.inicio__marca span { display: inline-block; }
.inicio__bajada {
  margin-top: auto;
  max-width: 24ch;
  font-size: var(--t-3);
  line-height: 1.35;
  font-weight: 400;
  color: #fff;
}
.inicio__pie {
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 6.4vh, 56px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: clamp(36px, 5.4vw, 90px);
  font-size: var(--t-2); color: #fff;
}
.inicio__pie a { text-decoration: none; justify-self: end; }
.inicio__pie a:hover { text-decoration: underline; text-underline-offset: 4px; }
.inicio__pie span:nth-child(2) { justify-self: center; }

/* Momento de carga: único movimiento automático de la página */
@media (prefers-reduced-motion: no-preference) {
  .inicio__vidrio { animation: vidrio 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .inicio__marca span { animation: letra .9s cubic-bezier(.2,.75,.15,1) both; }
  .inicio__marca span:nth-child(1) { animation-delay: .35s; }
  .inicio__marca span:nth-child(2) { animation-delay: .43s; }
  .inicio__marca span:nth-child(3) { animation-delay: .51s; }
  .inicio__marca span:nth-child(4) { animation-delay: .59s; }
  .inicio__bajada, .inicio__pie { animation: aparecer 1s ease .9s both; }
}
@keyframes vidrio { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes letra { from { opacity: 0; transform: translateY(.45em); } }
@keyframes aparecer { from { opacity: 0; } }

/* ==========================================================
   Escenas con fondo fijo (manos / terciopelo)
   ========================================================== */
.escena { position: relative; overflow: clip; }
.escena__fondo {
  position: sticky; top: 0;
  height: 100vh; height: 100lvh;
  margin-bottom: -100vh; margin-bottom: -100lvh;
  background-position: center; background-size: cover;
  z-index: 0;
  pointer-events: none;
}
.escena > :not(.escena__fondo) { position: relative; z-index: 1; }

.escena--manos .escena__fondo {
  background-image:
    linear-gradient(rgb(36 4 6 / .45), rgb(36 4 6 / .45)),
    url("img/fondo-manos.jpg");
  background-color: #1d0a06;
}
.escena--terciopelo .escena__fondo {
  background-image:
    linear-gradient(rgb(40 4 8 / .18), rgb(40 4 8 / .18)),
    url("img/terciopelo.jpg");
  background-color: var(--terciopelo);
  filter: blur(1.5px) saturate(1.05);
  transform: scale(1.03);
}

.bloque {
  min-height: 100svh;
  display: grid; align-content: center;
  grid-template-columns: minmax(0, 1fr);
  padding-block: calc(var(--cabecera) + 2.5rem) 4.5rem;
}

/* ---------- Estudio (tarjeta con clip) ---------- */
.estudio {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.tarjeta {
  position: relative;
  container-type: inline-size;
  max-width: 470px;
  filter: drop-shadow(0 26px 30px rgb(10 0 0 / .45));
}
.tarjeta img { width: 100%; }
.tarjeta__titulo {
  position: absolute; left: 0; right: 0; top: 49%;
  translate: 0 -50%;
  text-align: center;
  font-family: var(--f-texto); font-weight: 700;
  font-size: 18cqi; line-height: 1; letter-spacing: -0.035em;
  color: var(--ciruela);
}
.estudio__texto {
  font-size: clamp(1.06rem, 1.45vw, 1.3rem);
  line-height: 1.6;
  max-width: 54ch;
  color: #fff;
}
.estudio__texto p + p { margin-top: .9em; }

/* ---------- Venn ---------- */
.venn { display: grid; justify-items: center; }
.venn svg {
  width: 100%; max-width: 840px;
  max-height: calc(100svh - var(--cabecera) - 70px);
  overflow: visible;
}
.venn circle { fill: none; stroke: var(--linea-venn); stroke-width: 4.5; }
.venn .rotulo { fill: #f7ddd6; font-family: var(--f-texto); font-size: 18px; font-weight: 500; }
.venn .item { fill: #fff3ef; font-family: var(--f-texto); font-size: 12.5px; text-anchor: middle; }
.venn .item--chico { font-size: 10.5px; }
.venn .item--centro { font-size: 15px; font-weight: 600; fill: #fff; }
.venn-lista { display: none; }

/* ---------- FODA ---------- */
.foda {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2.5rem, 7vw, 7rem);
  row-gap: clamp(2.2rem, 5vh, 3.6rem);
  max-width: 1060px; margin-inline: auto;
}
.foda__cuadro h3 {
  text-align: center;
  color: var(--salmon);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: .6rem;
}
.foda__caja {
  border-radius: 26px;
  padding: 1.25rem 1.6rem 1.35rem 1.9rem;
  font-size: .95rem;
  line-height: 1.45;
  min-height: 100%;
}
.foda__caja ul { padding-left: 1rem; }
.foda__caja li + li { margin-top: .3rem; }
.foda__cuadro--f .foda__caja { background: var(--foda-f); color: var(--tinta); }
.foda__cuadro--o .foda__caja { background: var(--foda-o); color: #fff; font-size: 1.02rem; }
.foda__cuadro--a .foda__caja { background: var(--foda-a); color: #fff; }
.foda__cuadro--d .foda__caja { background: var(--foda-d); color: var(--tinta); }
.foda__cuadro { display: grid; grid-template-rows: auto 1fr; }
.foda__titulo-movil {
  display: none;
  text-align: center; color: #fff;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  margin-bottom: 1.6rem;
}

.foda__aro {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -38%;
  width: clamp(9.5rem, 15vw, 12.5rem); aspect-ratio: 1;
  display: grid; place-items: center;
  pointer-events: none;
}
.foda__aro::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(
    var(--foda-o) 0 24.2%, transparent 0 25.8%,
    var(--foda-d) 0 49.2%, transparent 0 50.8%,
    #e6b0a8 0 74.2%, transparent 0 75.8%,
    var(--foda-f) 0 99.2%, transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 60.5%);
  mask: radial-gradient(circle, transparent 60%, #000 60.5%);
}
.foda__aro h2 {
  position: relative;
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: rgb(60 12 10 / .42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--f-titulo); font-stretch: 105%; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.15;
  color: #fff3ee;
}

/* ---------- Matriz público / producto ---------- */
.posicion {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.matriz {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  color: #f9d9d0;
  font-family: var(--f-titulo); font-stretch: 108%; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
}
.matriz th, .matriz td {
  border: 6px solid var(--salmon);
  text-align: center; vertical-align: middle;
  padding: .7rem .5rem;
}
.matriz .vacia { border: 0; }
.matriz thead tr:first-child th { font-size: clamp(1.1rem, 2.1vw, 1.7rem); height: 4.6rem; }
.matriz thead tr:last-child th { font-size: clamp(.85rem, 1.45vw, 1.2rem); height: 4.2rem; }
.matriz tbody th[scope="row"] { font-size: clamp(.8rem, 1.35vw, 1.1rem); }
.matriz tbody td { height: clamp(6rem, 13vh, 8.6rem); }
.matriz .vertical {
  width: 4.4rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  letter-spacing: .06em;
}
.matriz col.c-vertical { width: 4.6rem; }
.matriz col.c-filas { width: 26%; }
.matriz .marca-x {
  font-family: var(--f-texto); font-weight: 300; font-size: clamp(3rem, 6vw, 5rem);
  color: #fff1ec; line-height: 1;
}
.panel-vidrio {
  border-radius: 30px;
  background: rgb(255 255 255 / .2);
  border: 1px solid rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: #fff;
}

/* ==========================================================
   Telón: ¿a quién está dirigido? / ¿cómo ofrecerlo?
   ========================================================== */
.telon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background:
    linear-gradient(rgb(36 0 4 / .58), rgb(36 0 4 / .58)),
    url("img/telon.jpg") 85% 0 / 260% auto;
  background-color: #4b0208;
}
.telon__escena {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.telon__escena img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
}
.telon__fuga {
  position: absolute; left: 50%; top: 40%;
  translate: -50% -50%;
  font-family: var(--f-texto); font-weight: 700;
  font-size: clamp(3.4rem, 6.4vw, 6rem);
  letter-spacing: -0.04em; line-height: 1;
  color: #fff;
  text-shadow: 0 4px 30px rgb(80 0 0 / .35);
}
.telon__actos {
  padding: calc(var(--cabecera) + 4rem) clamp(20px, 5vw, 80px) 6rem clamp(20px, 3.5vw, 56px);
  display: grid; gap: 7rem;
  align-content: start;
}
.acto { max-width: 36rem; min-height: 72vh; display: grid; align-content: center; gap: 1.4rem; }
.acto h2 {
  font-family: var(--f-titulo); font-stretch: 100%; font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3.25rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: #fff;
}
.acto__sub {
  font-size: var(--t-3); font-weight: 400;
  margin-top: -.6rem;
  color: #fff;
}
.acto h3 { color: #fff; font-size: clamp(1.25rem, 1.9vw, 1.6rem); margin-bottom: .5rem; }
.acto p, .acto li { font-size: 1rem; line-height: 1.6; color: #fff5f2; }
.acto ul { padding-left: 1.2rem; display: grid; gap: .55rem; }
.acto li::marker { color: var(--salmon-claro); }
.acto strong { font-weight: 600; }
.segmentos { display: grid; gap: 2rem; }

/* ==========================================================
   Proyectos
   ========================================================== */
.proyectos { padding-bottom: 4rem; }

.polaroid {
  background: var(--papel);
  padding: 4.5% 4.5% 17%;
  box-shadow: 0 1px 1px rgb(0 0 0 / .08), 0 28px 44px -20px rgb(15 0 0 / .7);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1.06;
  object-fit: cover;
  background: #ddd;
}

.indice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 5.2rem);
  align-items: start;
}
.indice a { text-decoration: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.indice .polaroid { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.indice a:hover .polaroid,
.indice a:focus-visible .polaroid { transform: translateY(-8px) rotate(-1deg); }
.indice h3 { font-size: clamp(1.6rem, 2.8vw, 2.6rem); }

.oficinas {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4.6fr) minmax(0, 4fr);
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.6rem);
}
.oficinas .polaroid:first-child { margin-top: 3rem; }
.oficinas h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }

.residenciales {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: start;
}
.residenciales .polaroid:nth-child(2) { margin-top: -2.4rem; }
.residenciales h2 { grid-column: 1 / -1; text-align: center; margin-top: 1rem; }

/* ---------- Diseño escenográfico ---------- */
.escenografico {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 5rem; padding-block: calc(var(--cabecera) + 2rem) 3rem;
}
.proyecto-portada {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.proyecto-portada .polaroid { max-width: 460px; transform: rotate(-1.5deg); }
.proyecto-portada__texto { display: grid; gap: 1.4rem; }
.proyecto-portada__texto p { max-width: 46ch; font-size: var(--t-2); color: #fff; }
.ficha {
  display: grid; grid-template-columns: max-content 1fr;
  gap: .55rem 1.4rem;
  border-top: 1px solid rgb(255 255 255 / .35);
  padding-top: 1.2rem;
  color: #fff;
}
.ficha dt { font-weight: 600; }

.subnav {
  position: sticky; top: calc(var(--cabecera) + 6px); z-index: 5;
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding: .55rem;
  border-radius: 999px;
  background: rgb(44 0 8 / .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  width: fit-content; max-width: 100%;
  margin-inline: auto;
}
.subnav a {
  text-decoration: none; color: #fff;
  font-size: .92rem;
  padding: .38rem .95rem;
  border-radius: 999px;
  transition: background-color .2s;
}
.subnav a:hover { background: rgb(255 255 255 / .14); }
.subnav a.es-actual { background: var(--crema); color: var(--ciruela); font-weight: 600; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; scroll-margin-top: calc(var(--cabecera) + 80px); }
.doc__cabeza { display: grid; gap: .4rem; }
.doc__cabeza p { color: #fbe3dc; max-width: 62ch; }

.ampliable {
  display: block; width: 100%;
  border: 0; padding: 0; margin: 0;
  background: none; cursor: zoom-in;
  position: relative;
}
.ampliable img { width: 100%; box-shadow: 0 30px 50px -26px rgb(10 0 0 / .8); }
.ampliable__aviso {
  position: absolute; right: 14px; bottom: 14px;
  background: rgb(44 0 8 / .82); color: #fff;
  font-size: .82rem; padding: .35rem .8rem; border-radius: 999px;
  opacity: 0; transition: opacity .2s;
}
.ampliable:hover .ampliable__aviso,
.ampliable:focus-visible .ampliable__aviso { opacity: 1; }

/* Tabla sobre terciopelo: honorarios */
.desplazable {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
}
.desplazable:focus-visible { outline-offset: 2px; }

.honorarios {
  width: 100%; min-width: 760px;
  border-collapse: collapse;
  color: #fff;
  border: 2px solid #fff;
}
.honorarios th, .honorarios td { border-inline: 2px solid #fff; padding: .2rem 1rem; }
.honorarios thead th {
  border-bottom: 2px solid #fff;
  padding: 1rem;
  font-family: var(--f-titulo); font-stretch: 108%; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; font-size: .95rem;
}
.honorarios tbody { border-top: 2px solid #fff; }
.honorarios tbody tr:first-child td { padding-top: 1rem; }
.honorarios tbody tr:last-child td { padding-bottom: 1rem; }
.honorarios .etapa { text-align: center; font-weight: 400; font-size: 1.05rem; width: 24%; }
.honorarios .tarea { font-size: .9rem; color: #fde9e3; }
.honorarios .horas { text-align: center; font-size: .9rem; width: 12%; font-variant-numeric: tabular-nums; }
.honorarios .monto { text-align: center; font-size: 1.1rem; width: 20%; font-variant-numeric: tabular-nums; }
.honorarios tfoot td { border-top: 2px solid #fff; padding: 1rem; font-size: 1.1rem; }
.honorarios tfoot .monto { font-size: 1.35rem; font-weight: 600; }

/* Carta */
.carta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.carta .ampliable { max-width: 520px; }
.carta__resumen { display: grid; gap: 1.6rem; }
.carta__datos {
  display: grid; grid-template-columns: max-content 1fr;
  gap: .7rem 1.4rem; color: #fff;
}
.carta__datos dt { color: #fbd6cc; }
.carta__datos dd { font-weight: 500; }

/* Hojas blancas (cómputo, seguimiento, Gantt) */
.hoja {
  background: #fff;
  color: var(--tinta);
  border-radius: 3px;
  padding: clamp(.6rem, 1.4vw, 1.1rem);
  box-shadow: 0 30px 50px -26px rgb(10 0 0 / .75);
}
.tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}
.tabla th, .tabla td { padding: .55rem .7rem; border: 1px solid #eacdd7; text-align: left; vertical-align: middle; }
.tabla thead th {
  background: var(--ciruela); color: #fff;
  font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em;
  text-align: center; border-color: #85385a;
  line-height: 1.25;
}
.tabla tbody tr:nth-child(even) { background: var(--rosa); }
.tabla .num { text-align: right; white-space: nowrap; }
.tabla .cen { text-align: center; }
.tabla .peq { font-size: .8rem; color: #5a3742; }
.tabla tfoot td, .tabla tfoot th { background: var(--rosa-subtotal); font-weight: 700; color: var(--ciruela); }
.tabla .resaltada td, .tabla .resaltada th { font-weight: 700; color: var(--ciruela); }
.tabla .negativo { color: #9c0b1e; }
.tabla--computo { min-width: 980px; }
.tabla--pagos { min-width: 900px; }
.tabla--cobros { min-width: 760px; }
.tabla--economico { min-width: 680px; }

.ficha-hoja {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #c98ea3; border-radius: 6px;
  background: var(--rosa-medio);
  margin-bottom: 1rem; overflow: hidden;
}
.ficha-hoja div { padding: .7rem .9rem; border-left: 1px solid #c98ea3; }
.ficha-hoja div:first-child { border-left: 0; }
.ficha-hoja dt { font-size: .7rem; font-weight: 700; color: var(--ciruela); text-transform: uppercase; letter-spacing: .05em; }
.ficha-hoja dd { font-size: .88rem; }

.total-barra {
  display: flex; flex-wrap: wrap; gap: .6rem 3rem; align-items: baseline;
  margin-top: 1rem; padding: 1rem 1.2rem;
  background: #e8bccb; border: 1px solid var(--ciruela); border-radius: 6px;
  color: var(--ciruela);
}
.total-barra strong { font-size: 1.3rem; margin-left: .7rem; }
.hoja h4 {
  font-size: .9rem; font-weight: 700; color: var(--ciruela);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 1.4rem 0 .8rem;
}

/* Gantt */
.gantt {
  border-collapse: collapse;
  font-size: .78rem;
  min-width: 1080px; width: 100%;
}
.gantt th, .gantt td { border: 1px solid #ecd2da; }
.gantt thead th { background: var(--ciruela); color: #fff; font-weight: 600; padding: .5rem; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.gantt thead tr:nth-child(2) th { background: var(--ciruela-claro); }
.gantt thead tr:nth-child(3) th { background: var(--rosa-medio); color: var(--tinta); font-weight: 600; padding: .3rem 0; width: 26px; }
.gantt thead tr:nth-child(3) th.tarea-col { width: auto; }
.gantt tbody th {
  text-align: left; font-weight: 400; padding: .4rem .6rem;
  position: sticky; left: 0; z-index: 1;
  background: #fff; min-width: 320px;
}
.gantt tbody tr:nth-child(even) th { background: var(--rosa); }
.gantt tbody tr:nth-child(even) td { background-color: #fff8fa; }
.gantt .dias { text-align: center; font-size: 1rem; font-weight: 500; width: 44px; }
.gantt td.dia { width: 26px; height: 28px; padding: 0; position: relative; }
.gantt td.dia.si { background: var(--rosa-fuerte) !important; }
.gantt td.dia.si::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 9px; height: 9px; background: #111;
}
.gantt td.dia.reserva { background: var(--ciruela) !important; }
.gantt td.dia.reserva::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 9px; height: 9px; border: 2px solid #fff;
}
.gantt .fin-semana { border-right: 2px solid #c98ea3; }

/* Pestañas de seguimiento */
.pestanas {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.2rem;
}
.pestanas button {
  border: 1px solid rgb(255 255 255 / .5);
  background: transparent;
  color: #fff;
  padding: .5rem 1.1rem; border-radius: 999px;
  font-size: .95rem; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.pestanas button:hover { background: rgb(255 255 255 / .12); }
.pestanas button[aria-selected="true"] { background: var(--crema); color: var(--ciruela); font-weight: 600; border-color: var(--crema); }
.panel-pestana[hidden] { display: none; }
.panel-pestana > p.nota { color: #fbe3dc; margin-bottom: 1rem; max-width: 64ch; }

/* Recibos */
.recibos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.4rem);
}
.recibos figure { display: grid; gap: .9rem; }
.recibos figcaption { font-size: .92rem; color: #fde6df; line-height: 1.45; }
.recibos figcaption strong { color: #fff; font-weight: 600; display: block; }

/* ==========================================================
   Contacto
   ========================================================== */
.contacto {
  background: var(--vino);
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--cabecera) + 1rem) var(--margen) 2rem;
}
.sobre {
  position: relative;
  container-type: inline-size;
  width: min(100%, 860px);
}
.sobre img { width: 100%; }
.sobre__texto {
  position: absolute;
  left: 24%; right: 4%; top: 37%; bottom: 13%;
  display: grid; align-content: center; justify-items: center;
  gap: 1.6cqi;
  text-align: center;
  color: #000;
  transform: rotate(1.2deg);
}
.sobre__texto h2 {
  font-family: var(--f-titulo); font-stretch: 112%; font-weight: 800;
  font-size: 8.2cqi; line-height: 1; color: var(--ciruela);
  margin-bottom: 2.2cqi;
}
.sobre__texto p, .sobre__texto a {
  font-family: var(--f-titulo); font-stretch: 115%; font-weight: 800;
  font-size: 4.3cqi; line-height: 1.15;
  text-decoration: none; color: #000;
}
.sobre__texto a {
  color: var(--ciruela); font-size: 3.6cqi; margin-top: 1cqi;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
}

.pie {
  background: var(--vino);
  border-top: 1px solid rgb(255 255 255 / .14);
  padding: 1.6rem var(--margen);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  font-size: .95rem; color: #f8dcd3;
}
.pie a { text-decoration: none; }
.pie a:hover { text-decoration: underline; }

/* ==========================================================
   Visor de imágenes
   ========================================================== */
.visor {
  border: 0; padding: 0; background: transparent;
  max-width: min(96vw, 1500px); max-height: 94vh;
  width: 100%;
  color: #fff;
}
.visor::backdrop { background: rgb(20 0 4 / .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.visor__marco { display: grid; gap: .8rem; justify-items: center; }
.visor img { max-height: 84vh; width: auto; max-width: 100%; object-fit: contain; background: #fff; }
.visor__barra { display: flex; justify-content: space-between; gap: 1rem; width: 100%; align-items: center; }
.visor__barra p { font-size: .95rem; }
.visor__cerrar {
  border: 1px solid rgb(255 255 255 / .6); background: transparent; color: #fff;
  border-radius: 999px; padding: .45rem 1.1rem; cursor: pointer;
}
.visor__cerrar:hover { background: rgb(255 255 255 / .12); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 960px) {
  .foda { column-gap: 1.6rem; }
  .foda__aro { display: none; }
  .foda__titulo-movil { display: block !important; }
  .telon { grid-template-columns: 1fr; }
  .telon__escena { position: relative; height: 70svh; }
  .telon__actos { padding: 3.5rem var(--margen) 5rem; gap: 4rem; }
  .acto { min-height: 0; }
  .oficinas { grid-template-columns: 1fr 1fr; }
  .oficinas h2 { grid-column: 1 / -1; grid-row: 1; }
  .oficinas .polaroid:first-child { margin-top: 0; }
}

@media (max-width: 760px) {
  :root { --cabecera: 64px; }
  .marca span { display: none; }
  .nav { gap: 1.05rem; }
  .nav a { font-size: .95rem; }

  .inicio__vidrio { width: auto; right: 16px; padding-bottom: 6.5rem; }
  .inicio__marca { font-size: 30vw; }
  .inicio__pie { grid-template-columns: 1fr; justify-items: start; gap: .1rem; font-size: .95rem; padding-inline: 36px; bottom: 34px; }
  .inicio__pie a { justify-self: start; }
  .inicio__pie span:nth-child(2) { display: none; }

  .bloque { min-height: 0; padding-block: 5.5rem 3.5rem; }
  .estudio, .posicion, .proyecto-portada, .carta { grid-template-columns: 1fr; }
  .tarjeta { width: 78%; margin-inline: auto; }

  .venn svg { display: none; }
  .venn-lista { display: grid; gap: 1.4rem; width: 100%; }
  .venn-lista h3 { font-size: 1.15rem; color: var(--salmon-claro); margin-bottom: .4rem; }
  .venn-lista p { color: #fff; }
  .venn-lista .centro { border: 2px solid var(--linea-venn); border-radius: 22px; padding: 1rem 1.2rem; }

  .foda { grid-template-columns: 1fr; }
  .matriz { letter-spacing: 0; }
  .matriz .vertical { width: 2.6rem; font-size: 1rem; }
  .matriz col.c-vertical { width: 2.6rem; }
  .matriz col.c-filas { width: 30%; }
  .matriz th, .matriz td { border-width: 4px; padding: .5rem .2rem; }
  .matriz thead tr:first-child th { font-size: .92rem; height: 3.4rem; }
  .matriz thead tr:last-child th,
  .matriz tbody th[scope="row"] { font-size: .64rem; }
  .matriz tbody td { height: 5.4rem; }

  .indice { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .oficinas, .residenciales { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .residenciales h2 { grid-row: 1; margin-top: 0; }
  .residenciales .polaroid:nth-child(2) { margin-top: 0; }
  .subnav {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    width: 100%; scrollbar-width: none;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { font-size: .85rem; padding: .3rem .75rem; white-space: nowrap; flex: none; }
  .gantt tbody th { min-width: 190px; font-size: .72rem; }
  .contacto { min-height: 0; padding-block: calc(var(--cabecera) + 2rem) 3rem; }
  .recibos { grid-template-columns: 1fr; max-width: 420px; }
  .ficha-hoja { grid-template-columns: 1fr 1fr; }
  .ficha-hoja div:nth-child(3) { border-left: 0; }
  .ficha-hoja div:nth-child(n+3) { border-top: 1px solid #c98ea3; }
  .sobre__texto { left: 23%; right: 3%; }
}

@media (hover: none) {
  .ampliable__aviso { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
