*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  --bg: #faf9f7;
  --fg: #1c1c1c;
  --muted: #8a8a8a;
  --light: #f3f2ef;
  --border: #e6e4e0;
  --card: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-weight: 300;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ NAV ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .5s, backdrop-filter .5s, padding .5s;
}
nav.scrolled {
  background: rgba(250,249,247,.92);
  backdrop-filter: blur(16px);
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: #fff;
  transition: color .4s;
}
nav.scrolled .nav-logo { color: var(--fg); }
.nav-menu-btn {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .4s;
  padding: .5rem 0;
}
nav.scrolled .nav-menu-btn { color: var(--fg); }
.nav-menu-btn:hover { opacity: .7; }

/* ============ FULLSCREEN MENU ============ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(250,249,247,.97);
  backdrop-filter: blur(32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }
.menu-left {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4rem 3rem;
  position: relative;
}
.menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .25s;
}
.menu-close:hover { color: var(--fg); }
.menu-items { display: flex; flex-direction: column; gap: .25rem; }
.menu-item-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  cursor: pointer;
  transition: all .4s ease;
  padding: .1rem 0;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}
.menu-item-index {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 300;
  letter-spacing: .1em;
  color: var(--muted);
  width: 2.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all .4s ease;
}
.menu-item-wrap:hover .menu-item-index,
.menu-item-wrap.active .menu-item-index {
  opacity: 1;
  transform: translateX(0);
}
.menu-item-text {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.1;
  transition: all .4s ease;
}
.menu-item-wrap:hover .menu-item-text,
.menu-item-wrap.active .menu-item-text {
  color: var(--fg);
  padding-left: 1rem;
}
.menu-item-sub {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 300;
  color: var(--muted);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all .4s ease;
  padding-left: 3.5rem;
}
.menu-item-wrap:hover .menu-item-sub,
.menu-item-wrap.active .menu-item-sub {
  opacity: .7;
  max-height: 2rem;
}
.menu-footer {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  display: flex;
  gap: 2rem;
}
.menu-footer a {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 300;
  transition: color .25s;
}
.menu-footer a:hover { color: var(--fg); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center 40%/cover;
  filter: brightness(.5) saturate(.9);
  transform: scale(1.04);
  animation: heroZoom 24s ease infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1.04); }
  100% { transform: scale(1.1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding: 5rem 3rem 4rem;
  color: #fff;
  animation: fadeUp 1.2s .3s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.01em;
  max-width: 720px;
  margin-bottom: .75rem;
}
.hero p {
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  font-weight: 300;
  color: rgba(255,255,255,.6);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 2.25rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .35s ease;
  border-radius: 0;
}
.btn-primary { background: #fff; color: var(--fg); }
.btn-primary:hover { background: #e8e6e2; }
.btn-outline { border: 1px solid rgba(255,255,255,.2); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { background: #3a3a3a; }

/* ============ STATS BAR ============ */
.stats {
  padding: 3rem 3rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: .03em;
}

/* ============ WHATSAPP FLOATING ============ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  width: 52px;
  height: 52px;
  background: #25d366;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(37,211,102,.25);
  transition: transform .3s ease, box-shadow .3s ease;
  color: #fff;
  text-decoration: none;
}
.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
}

/* ============ SECTION BASE ============ */
section { padding: 6rem 3rem; }
.inner { max-width: 1280px; margin: 0 auto; }
.section-label {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: .75rem;
}
.section-sub {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  font-size: .9rem;
  font-weight: 300;
}

/* ============ QUIÉNES SOMOS ============ */
.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.about-image { overflow: hidden; }
.about-image img {
  width: 100%; height: auto;
  transition: transform .7s ease;
}
.about-image:hover img { transform: scale(1.02); }
.about-text p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.9;
  margin-bottom: 1rem;
  font-weight: 300;
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.about-card {
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all .35s ease;
}
.about-card:hover { border-color: var(--fg); }
.about-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.about-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ============ ARQUITECTO ============ */
.arch-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}
.arch-image {
  overflow: hidden;
}
.arch-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.arch-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: .25rem;
}
.arch-info .role {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.arch-info p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 300;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all .35s ease;
}
.service-card:hover { border-color: var(--fg); }
.service-card .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  margin-bottom: .75rem;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.service-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}
.service-secondary {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.service-secondary h4 {
  font-size: .7rem;
  font-weight: 300;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags span {
  font-size: .78rem;
  padding: .35rem 1rem;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 300;
  transition: all .25s;
}
.tags span:hover { border-color: var(--fg); color: var(--fg); }

/* ============ PROJECTS CAROUSEL ============ */
.carousel {
  overflow: hidden;
  width: 100%;
  margin-bottom: 2rem;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .5s cubic-bezier(.25,.1,.25,1);
  will-change: transform;
}
.carousel-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all .35s ease;
  overflow: hidden;
}
.carousel-card:hover { border-color: var(--fg); }
.card-image {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.carousel-card:hover .card-image img { transform: scale(1.025); }
.card-info {
  padding: 1.25rem 1.5rem 1.5rem;
}
.card-tag {
  font-size: .65rem;
  font-weight: 300;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .25rem;
}
.card-info h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: .15rem;
  line-height: 1.2;
}
.card-meta {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1rem;
}
.card-info .btn { font-size: .65rem; padding: .6rem 1.25rem; }

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fg);
  border: none;
  cursor: pointer;
  color: var(--bg);
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.carousel-btn:hover {
  background: #3a3a3a;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* ============ CTA SECTION ============ */
.cta-section {
  background: var(--fg);
  color: #fff;
  text-align: center;
  padding: 5rem 3rem;
}
.cta-section .section-title { color: #fff; }
.cta-section p {
  color: rgba(255,255,255,.6);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.8;
}
.cta-section .btn-primary {
  background: #fff;
  color: var(--fg);
}
.cta-section .btn-primary:hover { background: #e8e6e2; }
.cta-section .btn-outline {
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.cta-section .btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
}

/* ============ CONTACT ============ */
.contact-header { margin-bottom: 3rem; }
.contact-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.contact-item-3 {
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: all .3s ease;
}
.contact-item-3:hover { border-color: var(--fg); }
.contact-item-3 .lbl {
  font-size: .65rem;
  font-weight: 300;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.contact-item-3 .val { font-size: .9rem; font-weight: 300; }
.contact-item-3 .val a {
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.contact-item-3 .val a:hover { border-color: var(--fg); }
.contact-item-3 .val .wa-link { color: #25d366; }
.contact-item-3 .val .wa-link:hover { border-bottom-color: #25d366; }
.contact-wa-btn { text-align: center; }
.contact-wa-btn .btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 3rem;
  background: #25d366;
  color: #fff;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
}
.contact-wa-btn .btn-wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

/* ============ FOOTER ============ */
footer { background: var(--card); border-top: 1px solid var(--fg); }
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 3rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-col h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.footer-col p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 300;
  transition: color .25s;
}
.footer-col ul li a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 300;
}
.footer-bottom a { color: var(--fg); }

/* ============ PROJECT MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(250,249,247,.98);
  backdrop-filter: blur(24px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  display: flex;
  flex-direction: column;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-close {
  position: sticky;
  top: 1.5rem;
  align-self: flex-end;
  z-index: 301;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: .6rem 1.25rem;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.modal-close:hover { border-color: var(--fg); background: var(--light); }
.modal-content { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0; }
.modal-hero { width: 100%; height: clamp(50vh, 65vh, 75vh); overflow: hidden; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-body {
  padding: 3rem 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}
.modal-meta .item { margin-bottom: 1.5rem; }
.modal-meta .label {
  font-size: .65rem;
  font-weight: 300;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}
.modal-meta .value { font-size: .95rem; font-weight: 300; }
.modal-description p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.modal-gallery {
  padding: 0 3rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.modal-gallery img {
  width: 100%; height: 420px;
  object-fit: cover;
  transition: transform .6s ease;
}
.modal-gallery img:hover { transform: scale(1.015); }
.modal-gallery img:first-child { grid-column: 1 / -1; height: 520px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .about-wrap { gap: 2.5rem; }
  .arch-grid { gap: 2.5rem; }
  .modal-body { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .carousel-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
}
@media (max-width: 768px) {
  nav { padding: 1.25rem 1.5rem; }
  nav.scrolled { padding: .85rem 1.5rem; }
  .menu-left { padding: 2rem 1.5rem; }
  .menu-footer { left: 1.5rem; bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
  .menu-item-index { display: none; }
  .menu-item-sub { padding-left: 0; }
  .hero-content { padding: 4rem 1.5rem 3rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  section { padding: 3rem 1.5rem; }
  .stats { padding: 2rem 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-num { font-size: 2rem; }
  .about-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-cards { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .arch-image { max-width: 280px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .carousel-card { flex: 0 0 100%; }
  .carousel-track { gap: 0; }
  .cta-section { padding: 3rem 1.5rem; }
  .contact-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; padding: 1.5rem; }
  .modal-body { padding: 2rem 1.5rem; }
  .modal-gallery { padding: 0 1.5rem 3rem; grid-template-columns: 1fr; }
  .modal-gallery img { height: 280px; }
  .modal-gallery img:first-child { height: 320px; }
  .modal-hero { height: 40vh; }
  .whatsapp-float { width: 44px; height: 44px; bottom: 1rem; right: 1rem; }
  .whatsapp-float svg { width: 18px; height: 18px; }
}
