:root {
  --blue-900: #053466;
  --blue-800: #0a4f8e;
  --blue-700: #1174bf;
  --line: #d7e3ef;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Open Sans', Arial, sans-serif; color: #1d2a38; background: #f6fbff; }
h1, h2, h3 { margin: 0 0 0.5rem; font-family: 'Montserrat', Arial, sans-serif; line-height: 1.2; }
.container { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }
.topbar { background: var(--blue-900); color: #d8ecff; padding: 0.45rem 0; font-size: 0.82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 52px; width: auto; display: block; transform: scale(1.9, 1.34); transform-origin: left center; }
.nav-links { display: flex; gap: 1rem; }
.nav-links a { text-decoration: none; color: #2a4f73; font-family: 'Montserrat', Arial, sans-serif; font-size: .9rem; font-weight: 700; }
.cta-red { text-decoration: none; background: linear-gradient(145deg,#d9272e,#b51d24); color: #fff; border-radius: 999px; padding: .62rem .92rem; font-family: 'Montserrat', Arial, sans-serif; font-size: .85rem; font-weight: 800; }
.hero { background: linear-gradient(130deg, rgba(5,52,102,.9), rgba(17,116,191,.82)), url('water-texture.jpg'); background-size: cover; background-position: center; color: #fff; }
.hero-content { text-align: center; padding: 4.2rem 0 4.4rem; max-width: 860px; }
.eyebrow { margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-family: 'Montserrat', Arial, sans-serif; }
.hero h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.7rem);
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 42%, #d8f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(214, 244, 255, .16);
  text-shadow:
    0 1px 0 rgba(255,255,255,.2),
    0 2px 0 rgba(167,220,246,.18),
    0 6px 0 rgba(4,26,48,.18),
    0 20px 46px rgba(3,22,40,.56),
    0 0 28px rgba(180,232,255,.16);
}
.hero p { margin: 0.6rem auto 0; max-width: 760px; }
.section { padding: 3.2rem 0; }
.section.alt { background: #ebf5ff; border-top: 1px solid #d8e8f7; border-bottom: 1px solid #d8e8f7; }
.section-title { text-align: center; margin-bottom: 1.4rem; }
.section-title p { margin: 0 0 .3rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #1c79bf; font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; box-shadow: 0 9px 26px rgba(7,55,98,.08); }
.feature-card p { margin: 0; color: #3f5670; font-size: .92rem; }
.feature-card.compact {
  padding: .95rem 1rem;
  box-shadow: 0 6px 18px rgba(7,55,98,.06);
}
.feature-card.compact h3 {
  margin-bottom: .28rem;
  font-size: 1rem;
  color: #0a4f8e;
}
.diff-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .85rem; }
.diff-card { background: linear-gradient(160deg, #f7fbff, #eef6ff); border: 1px solid #cfe2f3; border-radius: 14px; padding: 1rem; box-shadow: 0 9px 26px rgba(7,55,98,.06); }
.diff-card h3 { margin-bottom: .35rem; color: #0a4f8e; font-size: .96rem; }
.diff-card p { margin: 0; color: #425a74; font-size: .88rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; box-shadow: 0 9px 26px rgba(7,55,98,.08); }
.panel ul, .panel ol { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; color: #3f5670; }
.panel li strong { color: #0b4f86; font-family: 'Montserrat', Arial, sans-serif; margin-right: .22rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; }
.gallery-grid img { width: 100%; height: 210px; object-fit: cover; border-radius: 12px; border: 1px solid #cfe1f1; box-shadow: 0 8px 22px rgba(7,55,98,.1); }
.cta-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1rem; box-shadow: 0 9px 26px rgba(7,55,98,.08); text-align: center; }
.cta-panel p { max-width: 760px; margin: .4rem auto 1rem; color: #445b74; }
.cta-actions { display: flex; justify-content: center; gap: .55rem; flex-wrap: wrap; }
.ghost { text-decoration: none; border: 1px solid #2a6799; color: #18517e; border-radius: 999px; padding: .62rem .92rem; font-family: 'Montserrat', Arial, sans-serif; font-size: .85rem; font-weight: 700; }
.site-footer { background: #071b34; color: #a9c4de; font-size: .82rem; border-top: 1px solid #20466f; padding: .9rem 0 1rem; }
.footer-wrap { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
  align-items: center;
  text-align: left;
}

.hero-copy p {
  margin-left: 0;
}

.hero-visual-card,
.process-visual-card {
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  border: 1px solid #cfe1f1;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 16px 36px rgba(7,55,98,.12);
}

.visual-caption {
  margin: 0 0 .75rem;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1c79bf;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

.visual-frame {
  position: relative;
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid #d7e3ef;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  overflow: hidden;
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(29, 158, 223, .12), transparent 26%),
    radial-gradient(circle at 78% 68%, rgba(17, 116, 191, .1), transparent 24%),
    linear-gradient(180deg, rgba(232, 244, 255, .55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.visual-frame[data-fallback]:not([data-fallback=""])::after {
  content: attr(data-fallback);
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: .65rem .8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dce8f4;
  color: #4d6680;
  font-size: .84rem;
  line-height: 1.45;
  box-shadow: 0 8px 18px rgba(7,55,98,.08);
}

.ptar-cutaway {
  min-height: 360px;
  background-image: url('assets/ptars/ptar-cutaway.png');
}

.ptar-process {
  min-height: 280px;
  background-image: url('assets/ptars/ptar-process.png');
}

.ptar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.info-stack {
  display: grid;
  gap: .85rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 9px 26px rgba(7,55,98,.08);
}

.stat-card .big {
  display: block;
  margin-bottom: .25rem;
  color: #0a4f8e;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.stat-card p {
  margin: 0;
  color: #445b74;
  font-size: .9rem;
}

.offer-unified {
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  border: 1px solid #d4e4f3;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 16px 34px rgba(7,55,98,.08);
}

.offer-unified .section-title {
  text-align: left;
  margin-bottom: .8rem;
}

.offer-lead {
  max-width: 860px;
  margin: 0 0 1rem;
  color: #466079;
  font-size: 1rem;
  line-height: 1.6;
}

.offer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1rem;
}

.offer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .5rem .82rem;
  border-radius: 999px;
  background: #eaf4ff;
  border: 1px solid #cfe1f1;
  color: #0a4f8e;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .8rem;
  font-weight: 700;
}

.feature-grid.tight {
  gap: .7rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.process-card {
  background: #fff;
  border: 1px solid #d7e3ef;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 9px 26px rgba(7,55,98,.07);
}

.process-card .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: .65rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #1281cb, #0a4f8e);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: .82rem;
}

.process-card h3 {
  margin-bottom: .32rem;
  font-size: .98rem;
  color: #0a4f8e;
}

.process-card p {
  margin: 0;
  color: #4a647d;
  font-size: .88rem;
}

.process-visual-block {
  display: grid;
  gap: .85rem;
}

.process-note {
  margin: 0;
  color: #4a647d;
  font-size: .9rem;
}

.photo-frame {
  position: relative;
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid #d7e3ef;
  background-color: #eef6ff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,55,98,.04), rgba(7,55,98,.14));
  pointer-events: none;
}

.photo-frame.tall {
  min-height: 420px;
}

.photo-frame.diagram-light {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f3f8fc;
}

.photo-frame.diagram-light::before {
  background: none;
}

.fuente-main {
  background-image: url('assets/fuentes/diseno-construccion.jpg');
}

.fuente-publica {
  background-image: url('assets/fuentes/fuente-urbana.jpg');
}

.fuente-patio {
  background-image: url('assets/fuentes/patio-central.JPG');
}

.fuente-muro {
  background-image: url('assets/fuentes/muro-cascada.JPG');
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: .85rem;
}

.photo-stack {
  display: grid;
  gap: .85rem;
}
@media (max-width: 900px) {
  .feature-grid, .diff-grid, .two-col, .gallery-grid, .ptar-layout, .hero-split, .process-grid, .photo-gallery-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .brand img { transform: scale(1.82, 1.28); }
  .hero-split { text-align: center; }
  .hero-copy p { margin-right: auto; }
  .visual-frame::after { position: static; display: block; margin: 1rem; }
  .photo-frame.tall { min-height: 320px; }
}
