@import url('https://fonts.googleapis.com/css2?family=Federo&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Raleway:wght@300;400;500&display=swap');

:root {
  --dark: rgb(32, 32, 32);
  --principal: rgb(76, 29, 30);
  --base: rgb(232, 232, 232);
  --white: #ffffff;
  --font-nav: 'Federo', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Raleway', sans-serif;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --section-pad: clamp(5rem, 9vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--base);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-nav);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--principal);
  display: block;
  margin-bottom: 1rem;
}

/* ── LAYOUT ── */
.container {
  width: min(92%, 1200px);
  margin-inline: auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--white);
  color: var(--white);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}

.btn:hover { background: var(--principal); border-color: var(--principal); }

.btn--dark { border-color: var(--dark); color: var(--dark); }
.btn--dark:hover { background: var(--principal); border-color: var(--principal); color: var(--white); }

.btn--filled { background: var(--principal); border-color: var(--principal); color: var(--white); }
.btn--filled:hover { background: transparent; border-color: var(--dark); color: var(--dark); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── PAGE TRANSITION OVERLAY ── */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  transform: scaleY(1);
  transform-origin: top;
  pointer-events: none;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.6rem 0;
  transition: background 0.5s, backdrop-filter 0.5s, padding 0.5s;
}

.nav.scrolled {
  background: rgba(76, 29, 30, 0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-nav);
  font-size: 1.45rem;
  letter-spacing: 0.35em;
  color: var(--white);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-nav);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--principal);
  transition: width 0.35s var(--ease);
}

.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

/* hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav__hamburger span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* mobile overlay menu */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.nav__mobile.open { opacity: 1; pointer-events: all; }

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.nav__mobile a:hover { color: var(--principal); }

/* ── HERO ── */
.hero {
  height: 100vh;
  min-height: 640px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: kenburns 14s var(--ease) forwards;
}

@keyframes kenburns {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(32, 32, 32, 0.88) 0%,
    rgba(32, 32, 32, 0.45) 45%,
    rgba(32, 32, 32, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.hero__eyebrow {
  font-family: var(--font-nav);
  font-size: 0.7rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--ease) forwards;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 14vw, 11rem);
  color: var(--white);
  font-weight: 300;
  line-height: 0.88;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s var(--ease) forwards;
}

.hero__subtitle {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s var(--ease) forwards;
}

.hero__actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 1.1s var(--ease) forwards;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
}
.btn--ghost:hover { background: var(--principal); border-color: var(--principal); color: var(--white); }

/* scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeUp 1s 1.6s var(--ease) forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2.2s infinite;
}

.hero__scroll span {
  font-family: var(--font-nav);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  writing-mode: vertical-rl;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  49%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTION HEADER ── */
.section-header { margin-bottom: clamp(3rem, 5vw, 5rem); }

.section-header h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.section-header p {
  margin-top: 1rem;
  font-weight: 300;
  max-width: 52ch;
  font-size: 0.95rem;
}

/* ── SERVICIOS PREVIEW ── */
.servicios-preview {
  position: relative;
  background-image: url('../assert/servicio_diseno.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.servicios-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.78) 0%,
    rgba(20, 20, 20, 0.55) 100%
  );
  z-index: 1;
}

.servicios-preview .container {
  position: relative;
  z-index: 2;
}

.servicios-preview .service-card {
  background: rgba(24, 24, 24, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
}

.servicios-preview .service-card:hover {
  background: rgba(76, 29, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

@media (max-width: 1024px) {
  .servicios-preview {
    background-attachment: scroll;
  }
}

.servicios-preview .section-header h2 { color: var(--white); }
.servicios-preview .section-header p  { color: rgba(255,255,255,0.45); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.service-card {
  background: var(--dark);
  padding: 2.8rem;
  position: relative;
  transition: background 0.4s;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--principal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: rgba(76,29,30,0.08); }

.service-card__num {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: rgba(255,255,255,0.04);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.service-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  line-height: 1.75;
}

.services-cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* ── PROYECTOS PREVIEW ── */
.proyectos-preview {
  padding: var(--section-pad) 0;
  background: var(--base);
}

.proyectos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.proyectos-header .section-header { margin-bottom: 0; }
.proyectos-preview .section-header h2 { color: var(--dark); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 320px;
  gap: 0.8rem;
}

.project-card { position: relative; overflow: hidden; cursor: pointer; }
.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(4) { grid-column: span 7; }

.project-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.project-card__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-nav);
  font-size: 0.65rem; letter-spacing: 0.25em;
  color: rgba(255,255,255,0.2);
  transition: transform 0.9s var(--ease);
}
.project-card__ph--1 { background: linear-gradient(135deg, #2a1a1b 0%, #1a1212 100%); }
.project-card__ph--2 { background: linear-gradient(135deg, #1a1f1a 0%, #111411 100%); }
.project-card__ph--3 { background: linear-gradient(135deg, #1a1a24 0%, #111115 100%); }
.project-card__ph--4 { background: linear-gradient(135deg, #201a10 0%, #141008 100%); }

.project-card:hover .project-card__img,
.project-card:hover .project-card__ph { transform: scale(1.06); }

.project-card__info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(76,29,30,0.92) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 1.8rem;
}

.project-card:hover .project-card__info { opacity: 1; }

.project-card__info h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.project-card__info span {
  font-family: var(--font-nav);
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── ABOUT PREVIEW ── */
.about-preview {
  background: var(--dark);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-split__text { }

.about-split__text h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about-split__text p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 0.9rem;
  max-width: 46ch;
}

.about-split__text .btn { margin-top: 1.8rem; }

.about-split__visual { position: relative; }

.about-split__ph {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, rgba(76,29,30,0.5) 0%, rgba(32,32,32,1) 70%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-nav);
  font-size: 0.65rem; letter-spacing: 0.25em;
  color: rgba(255,255,255,0.15);
}

.about-split__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.about-stat {
  position: absolute;
  bottom: 2rem; left: 2rem;
  background: var(--principal);
  padding: 1.6rem 2rem;
}

.about-stat .num {
  font-family: var(--font-heading);
  font-size: 3rem; font-weight: 300;
  color: var(--white);
  display: block; line-height: 1;
}

.about-stat .lbl {
  font-family: var(--font-nav);
  font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: block; margin-top: 0.45rem;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--base);
  padding: var(--section-pad) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  color: var(--dark);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(32,32,32,0.55);
  font-weight: 300;
  max-width: 50ch;
  margin: 0 auto 2.8rem;
  font-size: 0.95rem;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 5.5rem 0 2.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer__logo {
  font-family: var(--font-nav);
  font-size: 1.8rem; letter-spacing: 0.35em;
  color: var(--white);
  display: block; margin-bottom: 1.1rem;
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.38);
  font-weight: 300;
  max-width: 32ch; line-height: 1.75;
}

.footer__col h4 {
  font-family: var(--font-nav);
  font-size: 0.68rem; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--principal);
  margin-bottom: 1.6rem;
  font-weight: 400;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }

.footer__col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  transition: color 0.3s;
}
.footer__col ul a:hover { color: var(--white); }

.footer__col address {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  line-height: 1.85;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
}

/* ── INNER PAGE HERO ── */
.page-hero {
  height: 50vh; min-height: 420px;
  background: var(--dark);
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
}

.page-hero__bg {
  position: absolute; inset: 0;
  background-image: url('../assert/Inicio.jpg');
  background-size: cover; background-position: center;
  opacity: 0.18;
}

.page-hero__content {
  position: relative; z-index: 2;
  padding-bottom: 4rem; width: 100%;
}

.page-hero .eyebrow { color: rgba(255,255,255,0.45); margin-bottom: 0.8rem; }

.page-hero h1 {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  color: var(--white);
}

/* ── SERVICIOS PAGE ── */
.servicios-full { padding: var(--section-pad) 0; }

.servicio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid rgba(32,32,32,0.1);
}
.servicio-row:last-child { border-bottom: none; }
.servicio-row.reverse .s-text { order: 2; }
.servicio-row.reverse .s-visual { order: 1; }

.s-text__num {
  font-family: var(--font-heading);
  font-size: 5.5rem; font-weight: 300;
  color: var(--principal); opacity: 0.25;
  line-height: 1; margin-bottom: 0.8rem;
}

.s-text h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: 1.3rem; }

.s-text p {
  font-size: 0.92rem;
  color: rgba(32,32,32,0.6);
  font-weight: 300; line-height: 1.85;
  margin-bottom: 0.8rem;
}

.s-visual__ph {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-nav);
  font-size: 0.65rem; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.2);
}
.s-visual__ph--1 { background: linear-gradient(135deg, #2a1a1b, #1a1212); }
.s-visual__ph--2 { background: linear-gradient(135deg, #181e18, #0d110d); }
.s-visual__ph--3 { background: linear-gradient(135deg, #18181e, #0d0d11); }
.s-visual__ph--4 { background: linear-gradient(135deg, #1e1a10, #110e08); }
.s-visual__ph--5 { background: linear-gradient(135deg, #1a1818, #111010); }

.s-visual__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* ── PROYECTOS PAGE ── */
.proyectos-full { padding: var(--section-pad) 0; }

.filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-nav);
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.65rem 1.3rem;
  border: 1px solid rgba(32,32,32,0.28);
  background: none; color: rgba(32,32,32,0.55);
  cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--principal);
  border-color: var(--principal);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.8rem;
}

.gal-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
}

.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.gal-item:hover img { transform: scale(1.06); }

.gal-item__ph {
  width: 100%; height: 100%;
  transition: transform 0.9s var(--ease);
}
.gal-item:hover .gal-item__ph { transform: scale(1.06); }

.gal-item__ph--v1 { background: linear-gradient(135deg, #2a1a1b 0%, #1a1212 100%); }
.gal-item__ph--v2 { background: linear-gradient(150deg, #1f1718 0%, #141010 100%); }
.gal-item__ph--a1 { background: linear-gradient(135deg, #1a202a 0%, #111318 100%); }
.gal-item__ph--a2 { background: linear-gradient(150deg, #141a24 0%, #0e1118 100%); }
.gal-item__ph--c1 { background: linear-gradient(135deg, #1a2a1a 0%, #111811 100%); }
.gal-item__ph--c2 { background: linear-gradient(150deg, #142014 0%, #0e150e 100%); }
.gal-item__ph--o1 { background: linear-gradient(135deg, #2a2010 0%, #1a1408 100%); }
.gal-item__ph--o2 { background: linear-gradient(150deg, #241c0c 0%, #181206 100%); }

.gal-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(76,29,30,0.94) 0%, transparent 52%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; align-items: flex-end;
  padding: 1.6rem;
}
.gal-item:hover .gal-item__overlay { opacity: 1; }

.gal-item__overlay h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 0.3rem; }
.gal-item__overlay span {
  font-family: var(--font-nav);
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}

.gal-item.hidden { display: none; }

/* ── ABOUT PAGE ── */
.about-story {
  padding: var(--section-pad) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-story__text h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); margin-bottom: 1.5rem; }

.about-story__text p {
  font-size: 0.92rem;
  color: rgba(32,32,32,0.6);
  font-weight: 300; line-height: 1.85;
  margin-bottom: 0.9rem;
}

.about-story__visual__ph {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, rgba(76,29,30,0.4) 0%, rgb(32,32,32) 65%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-nav);
  font-size: 0.65rem; letter-spacing: 0.25em;
  color: rgba(255,255,255,0.15);
}

.about-story__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.about-values { padding: var(--section-pad) 0; background: var(--dark); }

.about-values h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.value-item { padding: 2rem; border-left: 2px solid var(--principal); }
.value-item h3 { font-size: 1.35rem; color: var(--white); margin-bottom: 0.8rem; }
.value-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300; line-height: 1.75;
}

.about-numbers {
  padding: var(--section-pad) 0;
  background: var(--base);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.number-item__num {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300; color: var(--principal);
  line-height: 1; display: block; margin-bottom: 0.5rem;
}

.number-item__lbl {
  font-family: var(--font-nav);
  font-size: 0.68rem; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(32,32,32,0.5);
}

/* ── CONTACT PAGE ── */
.contacto-section { padding: var(--section-pad) 0; }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contacto-info h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1.2rem; }
.contacto-info > p {
  font-size: 0.92rem;
  color: rgba(32,32,32,0.55);
  font-weight: 300; line-height: 1.8;
  margin-bottom: 3rem; max-width: 44ch;
}

.contact-items { display: flex; flex-direction: column; gap: 1.6rem; }

.contact-item { display: flex; gap: 1.2rem; }

.contact-item__lbl {
  font-family: var(--font-nav);
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--principal);
  min-width: 75px; padding-top: 3px;
}

.contact-item__val {
  font-size: 0.92rem;
  color: rgba(32,32,32,0.65);
  font-weight: 300; line-height: 1.6;
}

/* form */
.contact-form { display: flex; flex-direction: column; gap: 1.6rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-family: var(--font-nav);
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(32,32,32,0.45);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 0;
  border: none; border-bottom: 1px solid rgba(32,32,32,0.2);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem; color: var(--dark);
  font-weight: 300; outline: none;
  border-radius: 0; appearance: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-bottom-color: var(--principal); }

.form-group textarea { resize: none; height: 130px; }

.form-group select option { background: var(--base); color: var(--dark); }

.form-submit { margin-top: 0.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card:last-child { grid-column: span 2; }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 280px;
  }
  .project-card:nth-child(n) { grid-column: span 1; }
  .project-card:nth-child(1) { grid-column: span 2; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer__brand { grid-column: span 2; }

  .about-story { grid-template-columns: 1fr; gap: 3rem; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .project-card:nth-child(n) { grid-column: span 1; }

  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }

  .servicio-row {
    grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0;
  }
  .servicio-row.reverse .s-text,
  .servicio-row.reverse .s-visual { order: unset; }

  .contacto-grid { grid-template-columns: 1fr; gap: 3.5rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: span 1; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:last-child { grid-column: span 1; }
  .gallery-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
}

/* ── SCROLL SNAPPING (HOME PAGE ONLY) ── */
@media (min-width: 1024px) {
  html.home-page {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
  }

  html.home-page .hero,
  html.home-page .servicios-preview,
  html.home-page .proyectos-preview,
  html.home-page .about-preview {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }

  html.home-page .cta-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  html.home-page footer {
    scroll-snap-align: end;
  }
}

/* ── ACCESSIBILITY & CONTRAST FIXES ── */
/* Ensure brand color elements have high readability on dark backgrounds */
.servicios-preview .eyebrow,
.about-preview .eyebrow,
footer .footer__col h4 {
  color: #e37e80; /* Highly readable warm rose red on dark backgrounds (passes WCAG AA 4.5:1 ratio) */
}
