/* ===================================================================
   JRDO ARQUITECTURA — stylesheet
   =================================================================== */

:root{
  --black: #0c0c0b;
  --oxford: #33363b;
  --oxford-2: #2a2c30;
  --ochre: #b3894a;
  --ochre-light: #d1ad78;
  --white: #faf8f4;
  --paper: #f2efe8;
  --ink: #171613;
  --ink-soft: #57534b;
  --line: rgba(23,22,19,0.12);
  --line-light: rgba(250,248,244,0.22);

  --font-display: "Gruppo", "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --header-h: 84px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll{ overflow: hidden; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p{ margin: 0; }
button{ font: inherit; background: none; border: none; cursor: pointer; }

.container{
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
}
@media (max-width: 640px){
  .container{ width: min(1240px, 100% - 2rem); }
}

/* ---------- reveal-on-scroll (defensive: visible by default) ---------- */
[data-reveal]{
  opacity: 1;
  transform: none;
}
[data-reveal].reveal-ready{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].reveal-in{
  opacity: 1;
  transform: none;
}

/* ---------- splash ---------- */
.splash{
  position: fixed; inset: 0; z-index: 999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  animation: splash-hide .9s var(--ease) 1.1s forwards;
}
.splash__logo{
  width: clamp(220px, 30vw, 340px);
  height: auto;
  color: var(--ochre-light);
  animation: splash-pulse 1.1s var(--ease) forwards;
}
@keyframes splash-pulse{
  0%{ opacity: 0; transform: scale(.94); }
  100%{ opacity: 1; transform: scale(1); }
}
@keyframes splash-hide{
  to{ opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ===================================================================
   HEADER
   =================================================================== */
.header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner{
  width: min(1320px, 100% - 3rem);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}

.brand{ display: flex; align-items: center; gap: .65rem; line-height: 1; }
.brand__mark{
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--white);
  transition: color .4s var(--ease);
}
.brand__sub{
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ochre-light);
}

.nav{ display: flex; align-items: center; gap: 2.4rem; }
.nav__link{
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--white);
  opacity: .88;
  position: relative;
  padding-bottom: 4px;
  transition: opacity .3s var(--ease), color .4s var(--ease);
}
.nav__link::after{
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ochre-light);
  transition: width .35s var(--ease);
}
.nav__link:hover{ opacity: 1; }
.nav__link:hover::after{ width: 100%; }
.nav__link--cta{
  border: 1px solid var(--line-light);
  padding: .6rem 1.1rem;
  border-radius: 2px;
  opacity: 1;
}
.nav__link--cta::after{ display: none; }
.nav__link--cta:hover{ background: var(--ochre); border-color: var(--ochre); }

.burger{
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 6px 0;
}
.burger span{
  display: block; height: 1px; width: 100%;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}

.header.is-scrolled{
  background: rgba(12,12,11,0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-light);
}

.header.is-solid .brand__mark,
.header.is-solid .nav__link{ color: var(--white); }

/* ===================================================================
   HERO
   =================================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero__media{ position: absolute; inset: 0; }
.hero__media img{
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
}
.hero__scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(12,12,11,.7) 0%, rgba(12,12,11,.42) 38%, rgba(12,12,11,.1) 62%, rgba(12,12,11,0) 80%),
    linear-gradient(180deg, rgba(12,12,11,.5) 0%, rgba(12,12,11,.14) 30%, rgba(12,12,11,.42) 62%, rgba(12,12,11,.95) 100%);
}
.hero__content{
  position: relative; z-index: 2;
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  padding-bottom: clamp(4rem, 9vw, 7rem);
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.eyebrow{
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 1.1rem;
}
.eyebrow--light{ color: var(--ochre-light); }

.hero__title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 1.6rem;
}
.hero__title em{ font-style: normal; color: var(--ochre-light); letter-spacing: .03em; }

.hero__lead{
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  max-width: 42ch;
  color: rgba(250,248,244,.86);
  margin-bottom: 2.4rem;
}

.hero__actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.9rem;
  font-size: .82rem;
  letter-spacing: .05em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--light{ background: var(--ochre); color: var(--black); }
.btn--light:hover{ background: var(--ochre-light); }
.btn--ghost-light{ border-color: var(--line-light); color: var(--white); }
.btn--ghost-light:hover{ border-color: var(--white); }
.btn--dark{ background: var(--black); color: var(--white); }
.btn--dark:hover{ background: var(--oxford); }

.scroll-cue{
  position: absolute; z-index: 2; right: clamp(1.5rem, 4vw, 3rem); bottom: 2.4rem;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: rgba(250,248,244,.7);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue span{
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--ochre-light), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue{
  0%,100%{ transform: scaleY(1); opacity: .5; }
  50%{ transform: scaleY(.6); opacity: 1; }
}

/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee{
  background: var(--ochre);
  color: var(--black);
  overflow: hidden;
  white-space: nowrap;
  padding: .85rem 0;
}
.marquee__track{
  display: inline-flex;
  gap: .9rem;
  animation: marquee 26s linear infinite;
}
.marquee__track span{
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.05rem;
  letter-spacing: .08em;
  padding-inline: .3rem;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ===================================================================
   SECTIONS — shared
   =================================================================== */
.section{ padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--dark{ background: var(--black); color: var(--white); }
.section--oxford{ background: var(--oxford); color: var(--white); }
.section--cta{ background: var(--paper); }

.section-title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.15;
  max-width: 18ch;
  margin: .6rem 0 3rem;
}
.section-title--light{ color: var(--white); margin-top: 0; }
.section-title--wide{ max-width: 30ch; }

.cta-title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: .6rem 0 1.6rem;
}
.cta-title em{ font-style: normal; color: var(--ochre); }

.body-text{
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.body-text--light{ color: rgba(250,248,244,.78); }

.statement{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.4;
  max-width: 42ch;
  margin-bottom: 1.8rem;
}
.statement em{ font-style: normal; color: var(--ochre); }

/* split grid used by Estudio / Nosotros */
.grid-split{
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 860px){
  .grid-split{ grid-template-columns: 1fr; gap: 1.5rem; }
}

/* stats strip */
.stats{
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
  gap: 2rem;
}
.stats__item{ display: flex; flex-direction: column; gap: .5rem; }
.stats__num{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--ochre);
}
.stats__label{ font-size: .84rem; color: var(--ink-soft); max-width: 20ch; }
@media (max-width: 760px){
  .stats{ grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   SERVICIOS
   =================================================================== */
.services{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.service{
  background: var(--black);
  padding: 2.4rem 1.8rem;
  display: flex; flex-direction: column;
  min-height: 320px;
  cursor: pointer;
  transition: background .4s var(--ease);
}
.service:hover, .service:focus-visible{ background: var(--oxford-2); }
.service:focus-visible{ outline: 1px solid var(--ochre-light); outline-offset: -4px; }

.service__more{
  margin-top: 1.4rem;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ochre-light);
}
.service__num{
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--ochre);
  margin-bottom: 1.6rem;
}
.service__title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: .9rem;
}
.service__text{
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(250,248,244,.72);
}
.service__img{
  margin-top: 1.4rem;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
}
.service__img img{ width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: transform .6s var(--ease); }
.service:hover .service__img img{ transform: scale(1.06); }

.service__gallery{
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.service__gallery--4{ grid-template-columns: repeat(2, 1fr); }
.service__gallery figure{ margin: 0; position: relative; }
.service__gallery img{
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 2px;
  filter: grayscale(.15);
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.service__gallery figcaption{
  margin-top: .45rem;
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(250,248,244,.55);
  text-align: center;
}
.service:hover .service__gallery img{ transform: scale(1.05); filter: grayscale(0); }

@media (max-width: 980px){
  .services{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .services{ grid-template-columns: 1fr; }
  .service{ min-height: auto; }
}

/* ---------- service detail modals ---------- */
.modal-overlay{
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(1.5rem, 6vw, 5rem) 1.5rem;
  background: rgba(12,12,11,.86);
  backdrop-filter: blur(6px);
}
.modal-overlay.is-open{ display: flex; }

.modal-panel{
  width: min(1000px, 100%);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  animation: modal-in .45s var(--ease);
}
@keyframes modal-in{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: none; }
}

.modal-close{
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: .95rem;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.modal-close:hover{ background: var(--black); color: var(--white); }

.modal-title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: .6rem 0 1.2rem;
  max-width: 18ch;
}
.modal-text{
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 1.4rem;
}
.modal-list{
  display: flex; flex-wrap: wrap; gap: .6rem 1rem;
  margin-bottom: 2.2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.modal-list li{
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--ink);
  background: rgba(23,22,19,.06);
  border: 1px solid var(--line);
  padding: .5rem .9rem;
  border-radius: 999px;
}

.modal-gallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.modal-gallery figure{ margin: 0; }
.modal-gallery img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.modal-gallery figcaption{
  margin-top: .6rem;
  font-size: .78rem;
  color: var(--ink-soft);
}
@media (max-width: 640px){
  .modal-gallery{ grid-template-columns: 1fr; }
}

.modal-gallery--panoramic{ grid-template-columns: 1fr; }
.modal-gallery--panoramic img{ aspect-ratio: 1822 / 934; object-fit: contain; background: var(--black); }

.fields{
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line-light);
  padding-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: baseline;
}
.fields__label{
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ochre); white-space: nowrap;
}
.fields__list{ font-size: .92rem; color: rgba(250,248,244,.75); line-height: 1.8; }

/* ===================================================================
   PORTFOLIO
   =================================================================== */
.portfolio{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
}
.portfolio__item{
  position: relative;
  grid-column: span 6;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  display: block;
  cursor: pointer;
}
.portfolio__item:focus-visible{ outline: 2px solid var(--ochre-light); outline-offset: 2px; }
.portfolio__item--lg{ grid-column: span 12; aspect-ratio: 16/8; }
.portfolio__item img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.portfolio__item:hover img{ transform: scale(1.05); }
.portfolio__caption{
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: .25rem;
  background: linear-gradient(0deg, rgba(12,12,11,.78), transparent 75%);
  color: var(--white);
}
.portfolio__name{ font-family: var(--font-display); font-size: 1.15rem; }
.portfolio__tag{ font-size: .76rem; letter-spacing: .05em; color: var(--ochre-light); }

@media (max-width: 760px){
  .portfolio__item, .portfolio__item--lg{ grid-column: span 12; aspect-ratio: 4/3; }
}

/* ===================================================================
   NOSOTROS
   =================================================================== */
.team{
  margin: 2.4rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-light);
}
.team__label{
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ochre-light);
  margin-bottom: .9rem;
}
.team__bio{ font-size: .92rem; line-height: 1.7; color: rgba(250,248,244,.78); max-width: 52ch; }

.values{
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.values li{
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-light);
  padding: .55rem 1rem;
  border-radius: 999px;
  color: rgba(250,248,244,.85);
}

/* ===================================================================
   CONTACTO
   =================================================================== */
.contact-grid{
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.contact-card{
  padding: 1.8rem 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .6rem;
  transition: background .3s var(--ease);
}
a.contact-card:hover{ background: rgba(179,137,74,.08); }
.contact-card__label{
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre);
}
.contact-card__value{ font-size: .96rem; }

@media (max-width: 860px){
  .contact-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer{
  background: var(--black);
  color: rgba(250,248,244,.6);
  padding: 3rem 0 2rem;
}
.footer__inner{
  display: flex; flex-direction: column; gap: 1.4rem;
  align-items: flex-start;
}
.brand--footer .brand__mark{ color: var(--white); }
.footer__note{ font-size: .82rem; letter-spacing: .03em; }
.footer__copy{ font-size: .76rem; color: rgba(250,248,244,.4); }

/* ===================================================================
   NAV — mobile
   =================================================================== */
@media (max-width: 860px){
  .nav{
    position: fixed; inset: 0 0 0 auto;
    width: min(340px, 82vw);
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    border-left: 1px solid var(--line-light);
  }
  .nav.is-open{ transform: translateX(0); }
  .nav__link{ font-size: 1rem; }
  .burger{ display: flex; z-index: 101; }
  .burger.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .burger.is-open span:nth-child(2){ opacity: 0; }
  .burger.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
}

/* ===================================================================
   MOTION SAFETY — never hide content if JS fails
   =================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  [data-reveal].reveal-ready{ transition: none; opacity: 1; transform: none; }
  .marquee__track, .scroll-cue span, .splash__mark{ animation: none; }
}
