/* Rizo Arquitectura — hoja de estilos */
:root {
  --ink: #111111;
  --paper: #F3F2EF;
  --white: #FFFFFF;
  --grey-1: #3F3D3A;
  --grey-2: #5E5B57;
  --grey-3: #A8A49E;
  --line: #CFCBC5;
  --dark-line: #3A3836;
  --accent: #9C4A24;
  --wrap: 1360px;
  --font: "Archivo", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-stretch: 125%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 640px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.label { margin: 0; font-stretch: 125%; font-size: 13px; letter-spacing: 0.16em; color: var(--grey-2); text-transform: uppercase; }
.small-label { display: block; font-stretch: 125%; font-size: 12px; letter-spacing: 0.14em; color: var(--grey-2); text-transform: uppercase; }
.title { margin: 0; font-weight: 300; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; }

/* Navegación */
.nav { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.nav__logo { display: block; line-height: 0; margin: 0 0 3px; }
.nav__logo img { width: clamp(165px, 14.3vw, 231px); height: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; font-stretch: 125%; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav__links a { text-decoration: none; padding: 12px 0; }
.nav__icon { display: flex; align-items: center; min-width: 24px; min-height: 44px; }

/* Portada */
.hero { position: relative; min-height: 760px; min-height: max(560px, 92vh); background: var(--ink); color: var(--white); overflow: hidden; display: flex; flex-direction: column; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.25) 45%, rgba(10,10,10,0.35) 100%); }
.hero .nav, .hero__bottom { position: relative; }
.hero .nav a:hover { color: #E8C9B8; }
.hero__bottom { flex: 1; display: flex; align-items: flex-end; padding-top: 40px; padding-bottom: 64px; }
.signature { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.signature__r { height: 40px; width: auto; flex: none; }
.signature__line { width: 2px; height: 40px; flex: none; background: var(--accent); margin-left: -10px; }
.signature__text { margin: 0; font-stretch: 125%; font-size: 12px; line-height: 1; letter-spacing: 0.2em; text-transform: uppercase; color: #E6E3DE; padding-bottom: 1px; }

/* Secciones */
.section { padding-top: 120px; padding-bottom: 120px; }
.section--white { background: var(--white); }
@media (max-width: 640px) { .section { padding-top: 80px; padding-bottom: 80px; } }

/* Estudio */
.estudio { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.estudio__side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px; }
.estudio__side img { height: 64px; width: auto; align-self: flex-start; }
.estudio__main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.estudio__text { margin: 0; max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--grey-1); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts dt { font-stretch: 125%; font-size: 12px; letter-spacing: 0.14em; color: var(--grey-2); text-transform: uppercase; }
.facts dd { margin: 0; font-size: 16px; }
.team { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 16px; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 24px; }
.member { display: flex; flex-direction: column; gap: 12px; }
.member img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 25%; }
.member h3 { margin: 4px 0 0; font-weight: 600; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.member p { margin: 0; font-stretch: 125%; font-size: 12px; letter-spacing: 0.12em; color: var(--grey-2); }
.member a { font-size: 15px; text-decoration: none; padding: 4px 0; }

/* Proyectos */
.projects__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.projects__head > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-family: var(--font); font-stretch: 125%; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 56px 32px; }
.project { display: flex; flex-direction: column; gap: 16px; }
.project[hidden] { display: none; }
.project__photo { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #DAD7D2; cursor: zoom-in; }
.project__photo img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.project__badge { position: absolute; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; color: var(--white); font-stretch: 125%; font-size: 12px; letter-spacing: 0.12em; text-shadow: 0 1px 3px rgba(0,0,0,0.55); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
.project__meta { display: flex; justify-content: space-between; gap: 16px; font-stretch: 125%; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-2); }
.project h3 { margin: 0; font-weight: 500; font-size: 20px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.04em; }
.project p { margin: 0; font-size: 15px; color: var(--grey-2); }

/* Servicios */
.services { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.services__side { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.services__side img { width: 100%; height: 600px; object-fit: cover; object-position: 70% 60%; margin-top: 16px; }
@media (max-width: 640px) { .services__side img { height: 380px; } }
.services__list { flex: 2 1 320px; display: flex; flex-direction: column; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.services__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.services__list li:last-child { border-bottom: 1px solid var(--line); }
.services__list span { flex: 0 0 32px; font-stretch: 125%; font-size: 12px; color: var(--accent); }
.services__list h3 { flex: 1 1 220px; margin: 0; font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Contacto */
.contact { display: flex; flex-wrap: wrap; gap: 56px 80px; }
.contact__info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 32px; }
.contact__list { display: flex; flex-direction: column; gap: 20px; font-size: 16px; line-height: 1.6; margin: 0; padding: 0; list-style: none; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list li:first-child { align-items: flex-start; }
.contact__list svg { flex: none; }
.contact__list li:first-child svg { margin-top: 3px; }
.contact__list a { text-decoration: none; }
.form { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-stretch: 125%; font-size: 12px; letter-spacing: 0.14em; color: var(--grey-1); text-transform: uppercase; }
.field input, .field select, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid var(--grey-3); border-radius: 0; background: var(--white); font-family: var(--font); font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.field textarea { padding: 14px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--grey-1); }
.check input { width: 20px; height: 20px; margin: 0; flex: none; }
.form__note { margin: 0; font-size: 12px; line-height: 1.6; color: var(--grey-2); }
.button { align-self: flex-start; display: inline-flex; align-items: center; min-height: 52px; padding: 0 32px; border: 0; background: var(--ink); color: var(--white); font-family: var(--font); font-stretch: 125%; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent); color: var(--white); }
.hp { position: absolute; left: -9999px; }

/* Pie */
.footer { background: var(--ink); color: var(--white); }
.footer__inner { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer__top > img { height: 72px; width: auto; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-stretch: 125%; font-size: 12px; letter-spacing: 0.12em; color: var(--grey-3); text-transform: uppercase; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom a { text-decoration: none; padding: 12px 0; }
.footer__bottom span { padding: 12px 0; }

/* Visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,0.95); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 72px 24px 32px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 180px); width: auto; height: auto; object-fit: contain; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; font-stretch: 125%; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.lightbox__count { color: var(--grey-3); }
.lightbox__btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--grey-2); background: transparent; cursor: pointer; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; }

/* Páginas interiores */
.page-head { background: var(--ink); color: var(--white); }
.page-head .nav a:hover { color: #E8C9B8; }
.legal { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: 96px; padding-bottom: 120px; }
.legal__side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px; }
.legal__index { display: flex; flex-direction: column; font-stretch: 125%; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.legal__index a { text-decoration: none; padding: 10px 0; border-top: 1px solid var(--line); }
.legal__index a:last-child { border-bottom: 1px solid var(--line); }
.legal__main { flex: 3 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 72px; color: var(--grey-1); line-height: 1.7; }
.legal__main section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }
.legal__main h1, .legal__main .title { color: var(--ink); }
.legal__main h3 { margin: 16px 0 0; font-weight: 500; font-size: 17px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
.legal__main p { margin: 0; }
.legal__data { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; margin: 0; }
.legal__data dt { font-stretch: 125%; font-size: 12px; letter-spacing: 0.14em; color: var(--grey-2); text-transform: uppercase; }
.legal__data dd { margin: 0; }
.message { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding-top: 96px; padding-bottom: 96px; }
.message p { margin: 0; max-width: 560px; font-size: 17px; color: var(--grey-1); }
