:root {
  --navy:       #162b37;
  --navy-deep:  #0f1e27;
  --navy-mid:   #1c3545;
  --navy-light: #1f3d4e;
  --black:      #0a0a0a;
  --off-white:  #efefef;
  --white:      #ffffff;
  --muted:      rgba(239,239,239,0.52);
  --border:     rgba(239,239,239,0.11);
  --border-hi:  rgba(239,239,239,0.22);
  --accent:     #9ecfaa;
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  background:var(--navy-deep);
  color:var(--off-white);
  font-family:'Roboto', sans-serif;
  font-weight:300;
  overflow-x:hidden;
}

* { cursor:none; }
#cur  { width:8px; height:8px; background:var(--off-white); border-radius:50%; position:fixed; top:0; left:0; pointer-events:none; z-index:9999; transform:translate(-50%,-50%); transition:width .3s,height .3s; }
#cur-r{ width:30px; height:30px; border:1px solid rgba(239,239,239,0.35); border-radius:50%; position:fixed; top:0; left:0; pointer-events:none; z-index:9998; transform:translate(-50%,-50%); }

body::before {
  content:''; position:fixed; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:0.032; pointer-events:none; z-index:200;
}

/* NAV */
nav {
  position:fixed; top:0; left:0; right:0; z-index:500;
  display:flex; align-items:center; justify-content:space-between;
  padding:30px 64px;
  transition:background .5s, padding .4s, border-color .5s;
  border-bottom:1px solid transparent;
}
nav.scrolled {
  background:rgba(15,30,39,0.95);
  backdrop-filter:blur(20px);
  padding:18px 64px;
  border-bottom-color:var(--border);
}
.nav-logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.nav-logo-text { display:flex; flex-direction:column; gap:2px; }
.nav-logo-wordmark { font-family:'Playfair Display', serif; font-size:21px; font-weight:600; letter-spacing:0.2em; color:var(--off-white); text-transform:uppercase; line-height:1; }
.nav-logo-tagline { font-family:'Roboto', sans-serif; font-size:7px; font-weight:400; letter-spacing:0.38em; color:var(--muted); text-transform:uppercase; }
.nav-links { display:flex; gap:40px; list-style:none; }
.nav-links a { font-size:10px; font-weight:400; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted); text-decoration:none; transition:color .3s; position:relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:1px; background:var(--off-white); transition:width .3s; }
.nav-links a:hover { color:var(--off-white); }
.nav-links a:hover::after { width:100%; }
.nav-cta { font-size:10px; font-weight:500; letter-spacing:0.2em; text-transform:uppercase; color:var(--navy-deep) !important; background:var(--off-white); padding:12px 28px; text-decoration:none; transition:background .3s !important; }
.nav-cta:hover { background:var(--white) !important; }
.nav-cta::after { display:none !important; }
.isotipo { width:80px; height:auto; flex-shrink:0; }

/* DROPDOWN */
.has-dropdown { position:relative; }
.nav-dropdown {
  position:absolute; top:100%; left:50%;
  transform:translateX(-50%) translateY(-6px);
  padding-top:16px; background:transparent; list-style:none;
  min-width:200px; opacity:0; pointer-events:none;
  transition:opacity .25s ease, transform .25s ease; z-index:600;
}
.nav-dropdown::before {
  content:''; position:absolute; inset:16px 0 0 0;
  background:rgba(15,30,39,0.97); backdrop-filter:blur(20px);
  border:1px solid var(--border-hi); z-index:-1;
}
.has-dropdown:hover .nav-dropdown { opacity:1; pointer-events:all; transform:translateX(-50%) translateY(0); }
.nav-dropdown li a {
  display:block; padding:13px 22px; font-size:9px; letter-spacing:0.2em;
  text-transform:uppercase; color:var(--muted); text-decoration:none;
  transition:color .2s, background .2s; border-bottom:1px solid var(--border);
  position:static; text-align:center;
}
.nav-dropdown li:last-child a { border-bottom:none; }
.nav-dropdown li a:hover { color:var(--off-white); background:rgba(255,255,255,0.04); }
.nav-dropdown li a::after { display:none !important; }

/* HAMBURGER */
.hamburger {
  display:none; flex-direction:column; justify-content:center;
  gap:5px; background:none; border:none; padding:6px; cursor:pointer; z-index:600;
}
.hamburger span { display:block; width:24px; height:1.5px; background:var(--off-white); transition:transform .3s, opacity .3s; }

/* MOBILE MENU */
.mobile-menu { display:none; position:fixed; inset:0; z-index:800; }
.mobile-menu.open { display:block; }
.mobile-menu-overlay {
  position:absolute; inset:0; background:rgba(10,10,10,0.7);
  backdrop-filter:blur(4px); animation:fadeOverlay .3s ease forwards;
}
.mobile-menu-panel {
  position:absolute; top:0; right:0; width:min(320px, 85vw); height:100%;
  background:var(--navy-deep); border-left:1px solid var(--border);
  display:flex; flex-direction:column; padding:96px 40px 48px;
  animation:slidePanel .35s ease forwards; z-index:1;
}
.mobile-menu-close {
  position:absolute; top:22px; right:24px; background:none; border:none;
  color:var(--muted); font-size:18px; cursor:pointer; transition:color .2s;
  line-height:1; width:44px; height:44px; display:grid; place-items:center;
  padding:0; margin:0; z-index:30;
  pointer-events:auto; touch-action:manipulation; -webkit-tap-highlight-color:transparent;
}
.mobile-menu-close:hover { color:var(--off-white); }
.mobile-menu-nav { position:relative; z-index:1; display:flex; flex-direction:column; gap:0; margin-top:0; }
.mobile-menu-link {
  font-size:11px; font-weight:400; letter-spacing:0.22em; text-transform:uppercase;
  color:var(--muted); text-decoration:none; padding:20px 0;
  border-bottom:1px solid var(--border); transition:color .25s;
  text-align:center; display:block;
}
.mobile-menu-link:hover { color:var(--off-white); }
.mobile-menu-group { border-bottom:1px solid var(--border); }
.mobile-menu-toggle { width:100%; position:relative; background:none; border:none; border-bottom:none; cursor:pointer; }
.toggle-chevron {
  position:absolute; right:0; top:50%;
  transform:translateY(-50%) rotate(0deg);
  width:12px; height:8px; transition:transform .3s ease; color:var(--muted);
}
.mobile-menu-toggle[aria-expanded="true"] .toggle-chevron { transform:translateY(-50%) rotate(180deg); }
.mobile-menu-sub-list { overflow:hidden; max-height:0; transition:max-height .35s ease; text-align:center; }
.mobile-menu-sub-list.open { max-height:200px; }
.mobile-menu-sub { padding:14px 0; font-size:9.5px; color:rgba(239,239,239,0.4); border-bottom:none; border-top:1px solid var(--border); }
.mobile-menu-sub:hover { color:var(--muted); }
.mobile-menu-cta {
  margin-top:28px; border-bottom:none; background:var(--off-white);
  color:var(--navy-deep) !important; padding:16px 24px; text-align:center;
  font-weight:500; transition:background .3s;
}
.mobile-menu-cta:hover { background:var(--white); color:var(--navy-deep) !important; }

@keyframes fadeOverlay { from { opacity:0 } to { opacity:1 } }
@keyframes slidePanel { from { transform:translateX(100%) } to { transform:translateX(0) } }

/* HERO SPLIT */
.hero-split {
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr;
  position:relative;
  overflow:hidden;
}

/* LEFT — info */
.hero-info {
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:160px 72px 96px 72px;
  background:var(--navy-deep);
  position:relative; z-index:2;
}
.hero-info::after {
  content:'';
  position:absolute; top:0; right:0; bottom:0;
  width:1px; background:var(--border-hi);
}

.back-link {
  display:inline-flex; align-items:center; gap:10px;
  font-size:9px; letter-spacing:0.28em; text-transform:uppercase;
  color:var(--muted); text-decoration:none; margin-bottom:56px;
  transition:color .3s;
}
.back-link:hover { color:var(--off-white); }
.back-link::before { content:'←'; font-size:14px; }

.hero-label {
  display:flex; align-items:center; gap:14px; margin-bottom:22px;
  font-size:9px; font-weight:400; letter-spacing:0.35em;
  text-transform:uppercase; color:var(--muted);
}
.hero-label::before { content:''; width:28px; height:1px; background:var(--muted); }

.hero-proj-name {
  font-family:'Playfair Display', serif;
  font-size:clamp(48px, 6vw, 88px);
  font-weight:500; line-height:1.0; letter-spacing:-0.01em;
  margin-bottom:10px;
  opacity:0; animation:fadeUp 1s ease .3s forwards;
}
.hero-proj-name em { font-style:italic; opacity:0.65; display:block; font-size:0.65em; }

.hero-location {
  font-size:11px; letter-spacing:0.18em; text-transform:uppercase;
  color:var(--muted); margin-bottom:36px;
  display:flex; align-items:center; gap:8px;
  opacity:0; animation:fadeUp 1s ease .5s forwards;
}
.hero-location-dot { width:5px; height:5px; border-radius:50%; background:var(--accent); }

.hero-divider { width:46px; height:1px; background:var(--border-hi); margin-bottom:36px; opacity:0; animation:fadeUp 1s ease .55s forwards; }

.hero-desc {
  font-size:14px; line-height:1.9; color:var(--muted);
  max-width:440px; margin-bottom:52px;
  opacity:0; animation:fadeUp 1s ease .65s forwards;
}

/* Stats grid */
.proj-stats {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:2px; border:1px solid var(--border);
  opacity:0; animation:fadeUp 1s ease .8s forwards;
  margin-bottom:44px;
}
.pstat {
  padding:20px 22px;
  border-right:1px solid var(--border);
}
.pstat:last-child { border-right:none; }
.pstat-num { font-family:'Playfair Display',serif; font-size:26px; font-weight:500; color:var(--off-white); line-height:1; }
.pstat-label { font-size:8px; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted); margin-top:6px; }

/* Info rows */
.proj-meta-list {
  display:flex; flex-direction:column; gap:0;
  border-top:1px solid var(--border);
  opacity:0; animation:fadeUp 1s ease .95s forwards;
}
.proj-meta-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:13px 0; border-bottom:1px solid var(--border);
  font-size:11px;
}
.proj-meta-key { letter-spacing:0.15em; text-transform:uppercase; color:var(--muted); font-size:9px; }
.proj-meta-val { color:var(--off-white); font-weight:400; text-align:right; }

.status-badge {
  display:inline-flex; align-items:center; gap:6px;
  font-size:8.5px; font-weight:400; letter-spacing:0.25em;
  text-transform:uppercase; padding:5px 12px;
  border:1px solid var(--accent); color:var(--accent);
}
.status-badge::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--accent); }

/* RIGHT — image */
.hero-image {
  position:relative; overflow:hidden;
}
.hero-image img {
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  transition:transform 8s ease;
}
.hero-image:hover img { transform:scale(1.03); }
.hero-image-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to bottom, transparent 60%, rgba(10,10,10,0.5) 100%);
  z-index:1;
}
.hero-image-placeholder {
  position:absolute; inset:0;
  background:linear-gradient(160deg, #1b3526 0%, #122418 40%, #0a1a10 100%);
  display:flex; align-items:center; justify-content:center;
}
.placeholder-letter {
  font-family:'Playfair Display',serif; font-size:320px; font-weight:700;
  color:rgba(158,207,170,0.07); line-height:1; user-select:none;
}

/* SECTION SHARED */
.container { max-width:1200px; margin:0 auto; padding:0 72px; }
.section-label { display:flex; align-items:center; gap:14px; margin-bottom:18px; font-size:9px; font-weight:400; letter-spacing:0.35em; text-transform:uppercase; color:var(--muted); }
.section-label::before { content:''; width:28px; height:1px; background:var(--muted); }
.section-title { font-family:'Playfair Display',serif; font-size:clamp(34px,4vw,58px); font-weight:500; line-height:1.08; letter-spacing:-0.01em; }
.section-title em { font-style:italic; }

.reveal { opacity:0; transform:translateY(34px); transition:opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.rd1{transition-delay:.1s} .rd2{transition-delay:.2s} .rd3{transition-delay:.3s} .rd4{transition-delay:.4s}

/* HIGHLIGHTS */
#highlights { padding:120px 0; background:var(--navy-mid); }
.highlights-grid {
  display:grid; grid-template-columns:1fr 2fr; gap:80px; align-items:start;
}
.highlights-left .section-title { margin-bottom:24px; }
.highlights-left p { font-size:13.5px; line-height:1.9; color:var(--muted); }

.features-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:2px;
}
.feature-card {
  background:rgba(15,30,39,0.7); border:1px solid var(--border);
  padding:28px 26px; transition:background .3s;
}
.feature-card:hover { background:rgba(15,30,39,0.95); }
.feature-icon { font-size:18px; color:var(--off-white); opacity:0.35; margin-bottom:12px; }
.feature-name { font-family:'Playfair Display',serif; font-size:17px; font-weight:500; margin-bottom:8px; }
.feature-desc { font-size:12px; line-height:1.8; color:var(--muted); }

/* GALLERY */
#galeria { padding:120px 0; }
.gallery-head { margin-bottom:64px; }
.gallery-head .section-title { margin-bottom:16px; }
.gallery-sub { font-size:13px; line-height:1.9; color:var(--muted); max-width:520px; }

.gallery-layout {
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  grid-template-rows:auto;
  gap:0;
}

.g-img {
  overflow:hidden; position:relative; background:var(--navy-mid);
}
.g-img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .7s ease;
  display:block;
}
.g-img:hover img { transform:scale(1.05); }
.g-img-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(10,10,10,0.6) 0%, transparent 50%);
  opacity:0; transition:opacity .4s;
}
.g-img:hover .g-img-overlay { opacity:1; }

/* Grid placements */
.g1  { grid-column:1/9;  grid-row:1; aspect-ratio:16/10; }
.g2  { grid-column:9/13; grid-row:1; aspect-ratio:4/5; }
.g3  { grid-column:1/5;  grid-row:2; aspect-ratio:4/5; }
.g4  { grid-column:5/9;  grid-row:2; aspect-ratio:4/5; }
.g5  { grid-column:9/13; grid-row:2; aspect-ratio:4/5; }
.g6  { grid-column:1/13; grid-row:3; aspect-ratio:21/7; }

.g-placeholder {
  width:100%; height:100%; min-height:260px;
  display:flex; align-items:center; justify-content:center;
}
.g1 .g-placeholder { background:linear-gradient(160deg,#1a3320 0%,#0d1f14 100%); }
.g2 .g-placeholder { background:linear-gradient(200deg,#152b1e 0%,#0a1810 100%); }
.g3 .g-placeholder { background:linear-gradient(140deg,#112618 0%,#081408 100%); }
.g4 .g-placeholder { background:linear-gradient(170deg,#1e3528 0%,#111e14 100%); }
.g5 .g-placeholder { background:linear-gradient(130deg,#0f2018 0%,#091610 100%); }
.g6 .g-placeholder { background:linear-gradient(160deg,#162e22 0%,#0b1d14 100%); }
.g-placeholder-label { font-family:'Playfair Display',serif; font-size:12px; font-weight:400; letter-spacing:0.2em; color:rgba(158,207,170,0.2); text-transform:uppercase; }

/* CTA BAR */
#cta-bar {
  background:var(--black); padding:80px 0;
  border-top:1px solid var(--border);
  text-align:center;
}
.cta-bar-inner { max-width:600px; margin:0 auto; }
.cta-bar-title { font-family:'Playfair Display',serif; font-size:clamp(28px,3.5vw,44px); font-weight:500; line-height:1.2; margin-bottom:16px; }
.cta-bar-title em { font-style:italic; }
.cta-bar-sub { font-size:13px; line-height:1.9; color:var(--muted); margin-bottom:40px; }
.cta-bar-btns { display:flex; gap:16px; justify-content:center; align-items:center; flex-wrap:wrap; }
.btn-primary { display:inline-block; font-family:'Roboto',sans-serif; font-size:10px; font-weight:500; letter-spacing:0.22em; text-transform:uppercase; color:var(--navy-deep); background:var(--off-white); padding:18px 52px; text-decoration:none; transition:background .3s, transform .3s; }
.btn-primary:hover { background:var(--white); transform:translateY(-2px); }
.btn-ghost { display:inline-block; font-family:'Roboto',sans-serif; font-size:10px; font-weight:400; letter-spacing:0.22em; text-transform:uppercase; color:var(--muted); border:1px solid var(--border-hi); padding:17px 38px; text-decoration:none; transition:all .3s; }
.btn-ghost:hover { border-color:var(--off-white); color:var(--off-white); }

/* FOOTER */
footer { background:var(--black); padding:48px 64px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.f-logo-word { font-family:'Playfair Display',serif; font-size:17px; font-weight:600; letter-spacing:0.2em; color:var(--off-white); text-transform:uppercase; }
.f-logo-word img { width: 10rem; display: block; }
.f-logo-tag { font-size:7px; letter-spacing:0.32em; text-transform:uppercase; color:var(--muted); margin-top:4px; }
.f-links { display:flex; gap:34px; list-style:none; }
.f-links a { font-size:9.5px; letter-spacing:0.15em; text-transform:uppercase; color:var(--muted); text-decoration:none; transition:color .3s; }
.f-links a:hover { color:var(--off-white); }
.f-copy { font-size:10px; color:rgba(239,239,239,0.22); letter-spacing:0.04em; }

/* ANIM */
@keyframes fadeUp { from{opacity:0;transform:translateY(26px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

/* MOBILE */
@media(max-width:900px){
  *{cursor:auto !important}
  #cur, #cur-r { display:none !important; }
  nav{padding:18px 24px} nav.scrolled{padding:14px 24px} .nav-links{display:none} .hamburger{display:flex}
  .hero-split{grid-template-columns:1fr; min-height:auto;}
  .hero-image{height:60vw; min-height:280px;}
  .hero-info{padding:100px 24px 60px;}
  .container{padding:0 24px;}
  .highlights-grid{grid-template-columns:1fr; gap:44px;}
  .features-grid{grid-template-columns:1fr;}
  .gallery-layout{grid-template-columns:1fr 1fr; gap:3px;}
  .g1,.g2,.g3,.g4,.g5,.g6{grid-column:auto; grid-row:auto; aspect-ratio:4/3;}
  .proj-stats{grid-template-columns:1fr 1fr;}
  footer{flex-direction:column;gap:26px;text-align:center;padding:36px 24px;}
  .f-links{flex-wrap:wrap;justify-content:center;}
  #highlights,#galeria{padding:72px 0;}
}
