/* ───────── HERO (Page 1) ───────── */
.hero {
  padding: 160px 0 80px;
  background: var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-left .eyebrow { margin-bottom: 28px; }
.hero-headline { margin-bottom: 28px; }
.hero-sub { margin-bottom: 36px; max-width: 44ch; color: var(--earth); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(33,28,24,.12);
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 28px;
  max-width: 460px;
}
@media (max-width: 600px) {
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
}
.hero-meta dt { font-family: var(--sans); font-size: 30px; line-height: 1; color: var(--dark); margin: 0 0 6px; }
.hero-meta dt sup { font-size: 14px; vertical-align: super; color: var(--wheat); }
.hero-meta dd { margin: 0; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--earth); }

.hero-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1.4fr 1fr;
  grid-template-areas:
    "big  small1"
    "big  small2";
  gap: 14px;
  height: 600px;
}
@media (max-width: 980px) { .hero-mosaic { height: 460px; } }
.hero-mosaic .ph,
.hero-mosaic .lp-picture { transition: transform 600ms var(--ease); }
.hero-mosaic .ph:hover,
.hero-mosaic .lp-picture:hover { transform: scale(1.025); }
.m-big   { grid-area: big; }
.m-small1 { grid-area: small1; }
.m-small2 { grid-area: small2; }

.hero-tag {
  position: absolute;
  bottom: -28px; right: 40px;
  background: var(--cream);
  padding: 10px 18px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--earth);
  border-left: 2px solid var(--wheat);
}

/* ───────── PRESS BAR ───────── */
.press {
  background: var(--dark);
  color: var(--cream);
  padding: 26px 0;
  overflow: hidden;
}
.press-row {
  display: flex; align-items: center;
  gap: 60px;
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--cream);
  flex-wrap: wrap;
}
.press-label {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--wheat);
  flex: 0 0 auto;
}
.press-arr { color: var(--wheat); padding: 0 4px; }
.press-item { color: rgba(250,248,243,.85); }
.press-item strong { color: var(--cream); font-weight: 400; }
.press-dot { width: 4px; height: 4px; background: var(--wheat); border-radius: 50%; }

/* ───────── INTRO ───────── */
.intro { padding: 140px 0 100px; }
.intro-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 100px;
  align-items: start;
}
@media (max-width: 980px) { .intro-grid { grid-template-columns: 1fr; gap: 40px; } }
.intro-title .eyebrow { margin-bottom: 32px; display: block; }
.intro-body p { margin: 0 0 22px; max-width: 60ch; color: var(--dark); font-size: 17px; line-height: 1.7; }
.intro-body p:first-child::first-letter {
  font-family: var(--sans); font-size: 54px; line-height: .9; float: left;
  margin: 6px 12px 0 0; color: var(--wheat); font-weight: 400;
}
.intro-sig {
  margin-top: 28px;
  font-family: var(--sans);
  font-style: italic;
  font-size: 22px;
  color: var(--earth);
}

/* ───────── PORTFOLIO ───────── */
.portfolio { padding: 60px 0 140px; }
.portfolio-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 40px; margin-bottom: 56px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--earth);
  border: 1px solid rgba(33,28,24,.12);
  background: transparent;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.filter:hover { color: var(--dark); border-color: var(--earth); }
.filter.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }

.grid-edit {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 88px;
  gap: 14px;
}
.tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.tile .ph,
.tile picture.ph { position: absolute; inset: 0; transition: transform 600ms var(--ease); display: block; }
.tile picture.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile:hover .ph,
.tile:focus-within .ph { transform: scale(1.025); }
.tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,28,24,0) 30%, rgba(33,28,24,.78) 100%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex; flex-direction: column; justify-content: end;
  padding: 26px;
  color: var(--cream);
}
.tile:hover .tile-overlay,
.tile:focus-within .tile-overlay { opacity: 1; }
.tile-overlay .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--wheat);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.tile-overlay h4 {
  font-family: var(--sans); font-weight: 500; font-size: 28px;
  margin: 0 0 4px;
}
.tile-overlay span {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(250,248,243,.72);
}
.t-1 { grid-column: span 7; grid-row: span 5; }
.t-2 { grid-column: span 5; grid-row: span 3; }
.t-3 { grid-column: span 5; grid-row: span 2; }
.t-4 { grid-column: span 4; grid-row: span 4; }
.t-5 { grid-column: span 4; grid-row: span 4; }
.t-6 { grid-column: span 4; grid-row: span 4; }
.t-7 { grid-column: span 5; grid-row: span 3; }
.t-8 { grid-column: span 4; grid-row: span 3; }
.t-9 { grid-column: span 3; grid-row: span 3; }
@media (max-width: 980px) {
  .grid-edit { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 72px; }
  .t-1 { grid-column: span 6; grid-row: span 4; }
  .t-2, .t-3 { grid-column: span 6; grid-row: span 3; }
  .t-4, .t-5, .t-6 { grid-column: span 3; grid-row: span 3; }
  .t-7, .t-8 { grid-column: span 3; grid-row: span 3; }
  .t-9 { grid-column: span 6; grid-row: span 3; }
}

/* ───────── SERVICES ───────── */
.services { background: var(--dark); color: var(--cream); padding: 140px 0; }
.services .eyebrow { color: var(--wheat); }
.services-head { margin-bottom: 80px; max-width: 700px; }
.services-head .h-section { color: var(--cream); margin-top: 24px; }
.services-head .h-section em { color: var(--wheat); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(250,248,243,.12);
}
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr; } }
.service {
  padding: 48px 36px 48px 0;
  border-right: 1px solid rgba(250,248,243,.12);
  position: relative;
}
.service:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 880px) {
  .service { border-right: 0; border-bottom: 1px solid rgba(250,248,243,.12); padding: 40px 0; }
  .service:last-child { border-bottom: 0; }
}
.service + .service { padding-left: 36px; }
@media (max-width: 880px) { .service + .service { padding-left: 0; } }
.service .num {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 96px;
  line-height: 1;
  color: var(--wheat);
  margin-bottom: 24px;
  display: block;
  letter-spacing: -0.02em;
}
.service h3 {
  font-family: var(--sans); font-weight: 500; font-size: 32px;
  line-height: 1.1; margin: 0 0 16px; color: var(--cream);
}
.service h3 em { font-style: italic; color: rgba(250,248,243,.78); }
.service p { color: rgba(250,248,243,.7); font-size: 15px; line-height: 1.65; max-width: 38ch; margin: 0 0 24px; }
.service-tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(200,160,82,.5);
  color: var(--wheat);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ───────── ABOUT ───────── */
.about { padding: 140px 0; background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; gap: 60px; } }
.about-photo {
  position: relative;
  aspect-ratio: 4/5;
}
.about-photo .bg {
  position: absolute;
  inset: 0;
  transform: translate(-22px, 22px);
  background: var(--sage);
  z-index: 0;
}
.about-photo .ph,
.about-photo .lp-picture {
  position: relative;
  width: 100%; height: 100%;
  z-index: 1;
}
.about-text .h-section { margin: 24px 0 32px; }
.about-text .h-section em { font-style: italic; color: var(--earth); }
.gold-line {
  width: 64px; height: 1px;
  background: var(--wheat);
  margin: 0 0 28px;
}
.about-text p { color: var(--dark); font-size: 16px; line-height: 1.7; max-width: 50ch; margin: 0 0 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--linen);
  border-left: 2px solid var(--wheat);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dark);
  margin: 24px 0 32px;
}
.badge .star { color: var(--wheat); }
.about-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ───────── Mobile cleanup (home-specific) ───────── */
@media (max-width: 720px) {
  .hero { padding-top: 130px; }
}

/* ─────── Home: secciones de destacados ─────── */
.dest { padding: 64px 0; }
.dest-divider { border: 0; border-top: 1px solid var(--sand); margin: 0 0 64px; }

.dest-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 24px; flex-wrap: wrap;
}
.dest-left { max-width: 60ch; }
.dest-left .h-section { font-size: 42px; line-height: 1.04; margin: 6px 0; }
.dest-left .lede { margin-top: 6px; font-size: 14.5px; max-width: 50ch; }
.dest-cta {
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dark);
  border-bottom: 1px solid var(--dark); padding-bottom: 3px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.dest-cta:hover { color: var(--earth); border-bottom-color: var(--earth); }

.dest .grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) { .dest .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dest .grid-3 { grid-template-columns: 1fr; } }

.grid-3-uneven {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .grid-3-uneven { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3-uneven { grid-template-columns: 1fr; } }

.dest-obra-card .dest-obra-foto {
  position: relative; aspect-ratio: 1/1.1; overflow: hidden;
  background: linear-gradient(135deg, #C9C2A8, #82724E); border-radius: 3px;
}
.dest-obra-card .dest-obra-foto img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.dest-obra-card:hover .dest-obra-foto img { transform: scale(1.025); }
.dest-obra-card .dest-obra-foto::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
}
.dest-obra-card .dest-obra-foto .ph-label {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  color: var(--earth); opacity: .85;
}
.grid-3-uneven .dest-obra-card:nth-child(2),
.grid-3-uneven .dest-obra-card:nth-child(3) { padding-top: 18px; }
@media (max-width: 900px) {
  .grid-3-uneven .dest-obra-card:nth-child(2),
  .grid-3-uneven .dest-obra-card:nth-child(3) { padding-top: 0; }
}

/* Services variable grid (2-4 columnas) */
.services-grid-2 { grid-template-columns: repeat(2, 1fr); }
.services-grid-3 { grid-template-columns: repeat(3, 1fr); }
.services-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .services-grid-2, .services-grid-3, .services-grid-4 { grid-template-columns: 1fr; }
}
