:root {
  --red: #e30613;
  --red-dark: #b9000b;
  --ink: #1d1d1f;
  --graphite: #2a2a2d;
  --muted: #6f6f73;
  --line: #dedede;
  --soft: #f5f5f5;
  --white: #ffffff;
  --max: 1180px;
  --shadow: 0 18px 45px rgba(0,0,0,.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img {
  width: 146px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a {
  position: relative;
}

.main-nav a:not(.nav-cta):not(.nav-client)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 11px 18px;
  color: var(--white);
  background: var(--red);
}

.nav-client {
  padding: 10px 16px;
  color: var(--red);
  border: 1px solid var(--red);
  transition: color .2s ease, background .2s ease;
}

.nav-client:hover,
.nav-client:focus-visible {
  color: var(--white);
  background: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.58) 45%, rgba(10,10,12,.15) 76%),
    linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 130px;
  padding-bottom: 95px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: .25s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,.72);
  background: rgba(0,0,0,.18);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

.hero-tag {
  position: absolute;
  right: 30px;
  bottom: 23px;
  z-index: 2;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.stats {
  background: var(--ink);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats article {
  padding: 29px 32px;
  border-right: 1px solid rgba(255,255,255,.15);
}

.stats article:last-child {
  border-right: 0;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.stats span {
  color: rgba(255,255,255,.66);
  font-size: 14px;
}

.section {
  padding: 110px 0;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.section-heading h2,
.section-title-row h2,
.contact h2,
.values h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.about-copy {
  font-size: 18px;
  color: #444;
}

.about-copy p:first-child {
  margin-top: 0;
  font-size: 22px;
  color: var(--ink);
}

.signature-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.signature-line span {
  width: 66px;
  height: 2px;
  background: var(--red);
}

.services {
  background: var(--soft);
}

.section-title-row {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 52px;
}

.section-title-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 310px;
  padding: 35px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: .25s ease;
}

.service-card:hover {
  position: relative;
  z-index: 2;
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-number {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

.service-card h3 {
  margin: 38px 0 12px;
  font-size: 23px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.project {
  display: grid;
  min-height: 540px;
  margin-bottom: 46px;
  background: var(--ink);
  color: var(--white);
}

.project-featured {
  grid-template-columns: 1.35fr .65fr;
}

.project-secondary {
  grid-template-columns: .65fr 1.35fr;
}

.project-image {
  min-height: 540px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image.poster img {
  object-position: center top;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
}

.project-type {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 14px 0 18px;
  font-size: 38px;
  line-height: 1.08;
}

.project-content p {
  color: rgba(255,255,255,.72);
}

.project-content ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.project-content li {
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 14px;
}

.team {
  background: var(--soft);
}

.team-member {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  background: var(--white);
}

.team-photo {
  min-height: 600px;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px;
}

.team-role {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.team-info h3 {
  margin: 16px 0 20px;
  font-size: 44px;
  line-height: 1.05;
}

.team-info p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.team-info a {
  width: fit-content;
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
  font-weight: 700;
}

.values {
  background: var(--graphite);
  color: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
}

.value-list article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 24px;
  padding: 27px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}

.value-list article:last-child {
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.value-list > article > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.value-list h3 {
  margin: 0 0 7px;
  font-size: 21px;
}

.value-list p {
  margin: 0;
  color: rgba(255,255,255,.65);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 90px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
}

.contact-data {
  display: grid;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.contact-data a,
.contact-data > div {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-data span {
  color: var(--muted);
}

.contact-form-wrap {
  padding: 38px;
  background: var(--soft);
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227,6,19,.10);
}

textarea {
  resize: vertical;
}

.full {
  width: 100%;
  border: 0;
  cursor: pointer;
}

form small {
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 60px 0 25px;
  background: #171719;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr 1fr;
  gap: 60px;
  padding-bottom: 45px;
}

.footer-brand img {
  width: 180px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255,255,255,.55);
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid strong {
  margin-bottom: 8px;
}

.footer-grid a {
  color: rgba(255,255,255,.66);
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.48);
  font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--white);
  background: #171719;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  font-size: 14px;
  font-weight: 750;
}

.whatsapp-float::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--red);
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 6px;
  }

  .nav-client,
  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    min-height: 650px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(10,10,12,.92), rgba(10,10,12,.25));
  }

  .stats-grid,
  .split,
  .section-title-row,
  .services-grid,
  .project-featured,
  .project-secondary,
  .team-member,
  .values-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }

  .section {
    padding: 78px 0;
  }

  .split,
  .section-title-row,
  .values-grid,
  .contact-grid {
    gap: 36px;
  }

  .services-grid {
    border-top: 0;
  }

  .project-secondary .project-content {
    order: 2;
  }

  .project-image,
  .team-photo {
    min-height: 430px;
  }

  .project-content,
  .team-info {
    padding: 42px 30px;
  }

  .footer-grid {
    gap: 36px;
  }

}

@media (max-width: 560px) {
  .container {
    width: min(100% - 26px, var(--max));
  }

  .header-inner {
    min-height: 70px;
  }

  .brand img {
    width: 126px;
  }

  .main-nav {
    top: 70px;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding-bottom: 68px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }


  .hero-tag {
    display: none;
  }

  .section {
    padding: 65px 0;
  }

  .project-image,
  .team-photo {
    min-height: 330px;
  }

  .project-content h3,
  .team-info h3 {
    font-size: 32px;
  }

  .contact-data a,
  .contact-data > div {
    display: grid;
    gap: 3px;
  }

  .contact-data strong {
    overflow-wrap: anywhere;
  }

  .contact-form-wrap {
    padding: 26px 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
  }

  .whatsapp-float::before {
    width: 12px;
    height: 12px;
    margin: 0;
  }
}

/* Equipo ampliado */
.team-lead {
  margin-bottom: 34px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr);
  min-height: 460px;
  background: var(--white);
  overflow: hidden;
}

.team-card-photo {
  min-height: 460px;
  background: #e9e9e9;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 38px;
}

.team-card-info h3 {
  margin: 13px 0 16px;
  font-size: 32px;
  line-height: 1.05;
}

.team-card-info p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 1040px) {
  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card-photo {
    min-height: 440px;
  }
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    min-height: 0;
  }

  .team-card-photo {
    min-height: 430px;
  }

  .team-card-info {
    padding: 34px 28px 38px;
  }
}


/* Procesos constructivos */
.construction-process {
  background: var(--white);
}

.process-project {
  border: 1px solid var(--line);
  background: var(--soft);
}

.process-project-heading {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 60px;
  align-items: end;
  padding: 42px 44px;
  background: var(--ink);
  color: var(--white);
}

.process-project-heading h3 {
  margin: 12px 0 0;
  font-size: 34px;
  line-height: 1.08;
}

.process-project-heading p {
  margin: 0;
  color: rgba(255,255,255,.68);
}

.process-summary {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 40px;
  align-items: start;
  padding: 30px 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.process-summary-copy > span,
.process-shot-info > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.process-summary-copy h3 {
  margin: 12px 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.process-summary-copy p {
  margin: 0;
  color: var(--muted);
}

.process-stage-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.process-stage-list li {
  position: relative;
  padding: 16px 18px 16px 42px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.process-stage-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
}

.process-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.process-shot {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.process-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.process-shot-info {
  padding: 18px 18px 20px;
}

.process-shot-info h4 {
  margin: 12px 0 10px;
  font-size: 21px;
  line-height: 1.15;
}

.process-shot-info p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .process-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .process-project-heading,
  .process-summary {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .process-project-heading {
    padding: 34px 28px;
  }

  .process-summary {
    padding: 24px 28px;
  }

  .process-gallery {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .process-shot-info h4 {
    font-size: 19px;
  }
}


/* Procesos constructivos v8: vista compacta por etapas */
.process-title-row {
  grid-template-columns: 1fr;
  margin-bottom: 46px;
}

.process-title-row > div {
  max-width: 760px;
}

.process-gallery.compact-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.process-slides {
  position: absolute;
  inset: 0;
}

.process-slide,
.process-static-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity .45s ease, visibility .45s ease, transform .6s ease;
}

.process-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.48);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: rgba(227,6,19,.9);
  transform: translateY(-50%) scale(1.04);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--red);
  border-color: var(--red);
}

.carousel-count {
  position: absolute;
  right: 12px;
  bottom: 11px;
  z-index: 3;
  padding: 4px 8px;
  color: #fff;
  background: rgba(0,0,0,.58);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .process-gallery.compact-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .process-title-row {
    margin-bottom: 34px;
  }

  .process-gallery.compact-gallery {
    grid-template-columns: 1fr;
  }

  .carousel-control {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-slide {
    transition: none;
  }
}


/* Ajustes v9 procesos constructivos */
.section-title-row p:empty { display: none; }
.process-gallery.compact-gallery.two-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.carousel-control {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.78);
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}
.carousel-control:hover,
.carousel-control:focus-visible,
.carousel-control:active {
  background: transparent;
  color: rgba(227,6,19,.72);
  transform: translateY(-50%) scale(1.04);
}
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
@media (max-width: 1080px) {
  .process-gallery.compact-gallery.two-cards {
    grid-template-columns: 1fr;
  }
}
