/* Antonio Boccadoro Arquitecto — sitio estático. Réplica medida de la versión de Framer.
   Cortes: computadora ≥ 1200 px · tablet 810–1199 px · celular ≤ 809 px */
@font-face { font-family: "Jost"; src: url("/fuentes/jost-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fuentes/jost-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --resorte: linear(0, 0.1734, 0.4422, 0.6575, 0.8009, 0.8883, 0.9389, 0.9672, 0.9826, 0.9909, 0.9953, 0.9976, 0.9988, 0.9994, 1);
  --tween: cubic-bezier(0.44, 0, 0.56, 1);
  --cortina: cubic-bezier(0.65, 0, 0.13, 0.98);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: rgb(30, 30, 30); font-family: "Jost", "Jost Placeholder", sans-serif; font-weight: 300; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
/* el espaciado va en em sobre cada elemento (como en Framer), no heredado en px del body */
p, a, h1, h2, h3, input, textarea, button { letter-spacing: 0.01em; }
p { white-space: pre-wrap; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; font-weight: 300; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; color: rgb(17, 17, 17); }
h2, h3 { font-size: 15px; font-weight: 400; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(17, 17, 17); }

/* Barra: invierte colores sobre lo que tiene debajo (difference): blanco se ve negro sobre fondo blanco */
.barra { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 26px 20px 16px; mix-blend-mode: difference; transition: transform 1s var(--resorte), opacity 1s var(--resorte); }
.barra.oculta { transform: translateY(-62px); opacity: 0; pointer-events: none; }
.menu { display: flex; gap: 46px; }
.menu a, .solapas a { text-decoration: none; text-transform: uppercase; font-weight: 400; }
.menu a { font-size: 17px; letter-spacing: 0.08em; line-height: 1.2; color: rgb(120, 120, 120); transition: color 0.3s var(--tween); }
.menu a:hover, .menu a.cur { color: #fff; }
.logo img { width: 166px; height: 48px; }
.logo .negro, .abre, .panel { display: none; }

/* Enlace con línea: se va hacia la derecha al pasar el mouse y vuelve desde la izquierda */
.linea { position: relative; display: block; width: fit-content; font-size: 16px; font-weight: 400; line-height: 16px; padding-bottom: 4px; text-decoration: none; }
.linea::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor; transform-origin: left; transition: transform 0.25s var(--tween); }
.linea:hover::after { transform: scaleX(0); transform-origin: right; }
/* variante: la línea aparece al pasar el mouse */
.linea.entra::after { transform: scaleX(0); transform-origin: right; }
.linea.entra:hover::after { transform: scaleX(1); transform-origin: left; }

/* Tarjetas: blanco y negro, color y título al pasar el mouse */
.tarjeta { position: relative; display: block; overflow: hidden; background: rgb(20, 20, 20); }
.tarjeta img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.75s var(--resorte); }
.tarjeta span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; color: #fff; font-size: 13px; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0; transition: opacity 0.75s var(--resorte); }
.tarjeta:hover img, .tarjeta:focus-visible img { filter: grayscale(0); }
.tarjeta:hover span, .tarjeta:focus-visible span { opacity: 1; }

/* Presentación: cortina negra que sube, deja el gris y después se levanta (misma secuencia que el PreLoader de Framer) */
.presenta { position: fixed; z-index: 40; inset: 0; overflow: hidden; pointer-events: none; }
.presenta i { position: absolute; left: 0; right: 0; }
.presenta .gris { top: -100px; bottom: -100px; background: rgb(245, 245, 245); animation: sale 1.2s var(--cortina) 2.25s both; }
.presenta .negro { top: calc(100% + 100px - 1vh); bottom: -100px; background: #000; animation: sube 1.2s var(--cortina) 0.25s both, sale 1.2s var(--cortina) 1.65s both; }
.presenta img { position: absolute; left: 50%; top: 50%; width: 460px; max-width: none; height: auto; transform: translate(-50%, -50%); mix-blend-mode: difference; animation: apaga 1.2s var(--cortina) 2.25s both; }
@keyframes sube { from { top: calc(100% + 100px - 1vh); } to { top: -100px; } }
@keyframes sale { from { bottom: -100px; } to { bottom: calc(100% + 100px - 1vh); } }
@keyframes apaga { to { opacity: 0; } }

/* Inicio: una sola pantalla */
.inicio { height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: 96px 0 28px; overflow: hidden; }
.pasarela { flex: 1; min-height: 0; overflow: hidden; }
.cinta { display: flex; height: 100%; width: max-content; animation: corre 152s linear infinite; }
.copia { display: contents; }
.cinta .tarjeta { flex: none; width: 640px; height: 100%; margin-right: 6px; }
@keyframes corre { to { transform: translateX(-50%); } }
.frase { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 20px 0; color: rgb(38, 38, 38); }
.frase .lugar { font-size: 12px; line-height: 12px; letter-spacing: -0.04em; color: rgb(82, 82, 82); }
.frase .texto { width: 550px; max-width: 100%; font-size: 20px; font-weight: 400; line-height: 20px; letter-spacing: -0.02em; text-align: center; }

/* Arquitectura: solapas + grilla */
.solapas { display: flex; justify-content: center; gap: 36px; padding: 104px 20px 22px; }
.solapas a { font-size: 14px; letter-spacing: 0.12em; line-height: 1.3; color: rgb(150, 150, 150); }
.solapas a.cur { color: rgb(17, 17, 17); }
.grilla { display: grid; grid-template-columns: repeat(4, 1fr); }
.grilla .tarjeta { aspect-ratio: 2 / 1; }
.wa { display: flex; justify-content: center; padding: 56px 20px; }
.wa a { font-size: 15px; font-weight: 400; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; }
.wa a:hover, .consultas a:hover { color: rgb(120, 120, 120); }

/* Ficha de proyecto */
.cabeza { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; align-items: start; padding: 116px 20px 64px; }
.cabeza > * { min-width: 0; }
.datos { display: flex; flex-direction: column; gap: 30px; }
.lineas { display: flex; flex-direction: column; gap: 4px; }
.lineas p { display: flex; gap: 5px; }
.lineas span:first-child { flex: none; }
.lineas span:last-child { flex: 1; min-width: 0; }
.enfoque { display: flex; flex-direction: column; gap: 12px; }
.portada img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; }
.galeria { display: flex; flex-direction: column; gap: 20px; padding: 0 20px; }
.fila { display: grid; gap: 20px; align-items: start; }
.fila img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; background: #eee; }
.renders { grid-template-columns: repeat(3, 1fr); }
.renders img { aspect-ratio: 7 / 5; object-fit: cover; }
.croquis { grid-template-columns: 1fr 2fr 1fr; }
.croquis img { object-fit: cover; aspect-ratio: 3 / 2; }
.croquis img:first-child, .croquis img:last-child { aspect-ratio: 3 / 4; }
.croquis.solo img { display: none; }
.par { grid-template-columns: repeat(2, 1fr); }
.pasos { display: flex; justify-content: center; gap: 40px; padding: 20px 20px 92px; color: rgb(38, 38, 38); }
.cierre { position: relative; margin: 20px 20px 20px; height: 98vh; overflow: hidden; background: #fff; }
.cierre img { position: absolute; left: 0; top: -18%; width: 100%; height: 136%; max-width: none; object-fit: cover; will-change: transform; filter: grayscale(1); }
.cierre div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 20px; color: #fff; }
.cierre p { width: 649px; max-width: 100%; font-size: 60px; line-height: 0.9; letter-spacing: -0.06em; text-transform: uppercase; text-align: center; }
.cierre .linea { font-size: 20px; line-height: 20px; }
.cierre .linea::after { bottom: 0; }

/* + Info */
.info { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 116px 20px 40px; }
.info .texto { display: flex; flex-direction: column; gap: 30px; width: 680px; max-width: 100%; }
.info .cab { display: flex; flex-direction: column; gap: 8px; }
.info .cab p { line-height: 1.6; }
.bio { display: flex; flex-direction: column; gap: 12px; }
.bio p { font-size: 18px; line-height: 1.6; }
.servicios { display: flex; flex-direction: column; gap: 14px; }
.servicios div { display: flex; flex-direction: column; gap: 2px; }
.servicios h3 { line-height: 1.55; }
.servicios p { font-size: 15px; color: rgb(70, 70, 70); }
.retrato { flex: none; width: 300px; }
.retrato img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; }

/* Contacto */
.contacto { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: start; padding: 116px 20px 44px; }
.contacto > * { min-width: 0; }
.contacto .col { display: flex; flex-direction: column; gap: 30px; }
.contacto .intro { font-size: 15px; }
form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
form input, form textarea { display: block; width: 100%; height: 42px; margin: 0; padding: 10px; border: 1px solid rgb(200, 200, 200); border-radius: 0; background: transparent; font: 300 14px/1.4 "Jost", sans-serif; color: rgb(17, 17, 17); appearance: none; }
form input::placeholder, form textarea::placeholder { color: rgb(150, 150, 150); opacity: 1; }
form input:focus, form textarea:focus { outline: none; border-color: rgb(17, 17, 17); }
form textarea { height: 120px; resize: vertical; }
form button { width: 160px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgb(51, 51, 51); color: #fff; font: 300 14px/1.2 "Jost", sans-serif; letter-spacing: 0; cursor: pointer; transition: background-color 0.2s ease-out; }
form button:hover { background: rgba(51, 51, 51, 0.85); }
.aviso { font-size: 13px; color: rgb(85, 85, 85); }
.aviso:empty { display: none; }
.consultas { display: flex; flex-direction: column; gap: 4px; }
.foto img { width: 100%; height: 80vh; object-fit: cover; }

.nada { padding: 160px 20px; text-align: center; }
.nada p { margin-top: 20px; }

/* ───────── Tablet ───────── */
@media (max-width: 1199px) {
  .barra { padding: 22px 20px 14px; }
  .menu { gap: 30px; }
  .menu a { font-size: 14px; }
  .logo img { width: 132px; height: 38px; }
  .inicio { padding: 84px 0 24px; }
  .cinta .tarjeta { width: 480px; }
  .frase { gap: 20px; }
  .frase .texto { font-size: 18px; line-height: 18px; }
  .grilla { grid-template-columns: repeat(2, 1fr); }
  .cabeza { grid-template-columns: 1fr 2fr; gap: 28px; padding: 90px 20px 56px; }
  .ficha h1, .info h1 { font-size: 28px; }
  .galeria { gap: 16px; }
  .croquis, .par { grid-template-columns: 1fr; }
  .croquis img, .croquis img:first-child, .croquis img:last-child { aspect-ratio: var(--ar); }
  .croquis.solo img { display: block; }
  .pasos { padding: 16px 20px 72px; }
  .cierre { margin-top: 16px; }
  .cierre p { font-size: 48px; }
  .cierre .linea { font-size: 16px; line-height: 16px; }
  .cierre .linea::after { bottom: 1px; }
  .info { gap: 28px; padding: 90px 20px 56px; }
  .info .texto { flex: 1; width: auto; }
  .retrato { width: 220px; }
  .contacto { grid-template-columns: 1fr 1fr; gap: 28px; padding: 90px 20px 40px; }
  .foto img { height: 60vh; }
}

/* ───────── Celular ───────── */
@media (max-width: 809px) {
  .barra { height: 66px; padding: 16px; background: #fff; mix-blend-mode: normal; }
  .menu, .logo .blanco { display: none; }
  .logo .negro { display: block; }
  .logo img { width: 118px; height: 34px; }
  .abre { display: block; margin: 0; padding: 0; border: 0; background: none; font: 300 16px/1.18 "Jost", sans-serif; letter-spacing: -0.02em; color: rgb(38, 38, 38); cursor: pointer; }
  .panel { display: block; position: fixed; z-index: 15; top: 0; left: 0; right: 0; height: 66px; overflow: hidden; visibility: hidden; background: #fff; padding: 87px 16px 16px; transition: height 0.35s var(--resorte), visibility 0s 0.35s; }
  .menu-abierto { overflow: hidden; }
  .menu-abierto .panel { height: 100vh; height: 100dvh; visibility: visible; transition: height 0.35s var(--resorte); }
  .panel .rotulo { font-size: 12px; line-height: 12px; letter-spacing: -0.04em; color: rgb(115, 115, 115); margin-bottom: 16px; }
  .panel nav { display: flex; flex-direction: column; gap: 8px; }
  .panel .linea { font-size: 20px; line-height: 20px; padding-bottom: 4px; color: rgb(64, 64, 64); }
  .panel .linea::after { bottom: 0; }
  .presenta img { width: 70vw; }
  .linea { font-size: 14px; line-height: 15px; padding-bottom: 3px; }
  .linea.entra::after { transform: none; }
  .panel .linea.entra::after { transform: scaleX(0); }
  .inicio { justify-content: center; padding: 72px 0 22px; }
  .pasarela { flex: none; height: 388.2px; }
  .cinta .tarjeta { width: 330px; }
  .frase { padding: 24px 16px 0; }
  .frase .texto { width: 100%; }
  .solapas { gap: 28px; padding: 80px 16px 18px; }
  .grilla { grid-template-columns: 1fr; }
  .cabeza { grid-template-columns: 1fr; gap: 28px; padding: 84px 16px 40px; }
  .galeria { gap: 12px; padding: 0 16px; }
  .fila { gap: 6px; }
  .pasos { padding: 12px 16px 44px; }
  .cierre { margin: 12px 16px 16px; height: 70vh; }
  .cierre p { font-size: 36px; }
  .cierre .linea { font-size: 14px; line-height: 15px; padding-bottom: 3px; }
  .info { flex-direction: column; gap: 28px; padding: 84px 16px 40px; }
  .info .texto { flex: none; width: 100%; }
  .retrato { width: 55%; }
  .contacto { grid-template-columns: 1fr; gap: 28px; padding: 84px 16px 32px; }
  .foto img { height: 34vh; }
}

@media (prefers-reduced-motion: reduce) {
  .cinta { animation: none; }
  .pasarela { overflow-x: auto; }
}
