* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a1f3a;
  --navy-dark: #0f1322;
  --gold: #f4b425;
  --white: #ffffff;
  --light: #f5f5f5;
  --text: #141725;
  --shadow: 0 24px 60px rgba(15, 19, 34, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 2000;
}

.skip-link:focus {
  left: 10px;
}

.topbar {
  background: #f4f6fb;
  color: var(--navy-dark);
  font-size: 0.9rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(244, 246, 251, 0.98), rgba(255, 255, 255, 0.98));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 19, 34, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.logo-img {
  height: 84px;
  width: auto;
  display: block;
}

.slogan {
  color: rgba(15, 19, 34, 0.75);
  font-size: 12px;
}

.nav {
  position: relative;
}

.menu {
  display: flex;
  gap: 18px;
  color: var(--navy-dark);
  font-weight: 500;
  align-items: center;
}

.menu a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 28px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--navy-dark);
  border-radius: 4px;
}

.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(244, 180, 37, 0.2) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.35;
  animation: patternDrift 30s linear infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 120px 0 90px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.7rem, 4.5vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-copy h1 span {
  color: var(--gold);
}

.subtitle {
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.portfolio-actions {
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 44px;
}

.btn.primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(244, 180, 37, 0.35);
}

.btn.ghost {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--white);
}

.btn.ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  animation: badgePulse 6s ease-in-out infinite;
}

.badge:nth-of-type(2) {
  animation-delay: 1.2s;
}

.badge:nth-of-type(3) {
  animation-delay: 2.4s;
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.visual-card {
  background: rgba(255, 255, 255, 0.12);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: floatUp 7s ease-in-out infinite;
}

.visual-card:nth-of-type(2) {
  animation-delay: 1.4s;
}

.visual-image {
  min-height: 280px;
  border-radius: 18px;
  background: linear-gradient(rgba(15, 19, 34, 0.4), rgba(15, 19, 34, 0.8)),
    url("casas%20modulares/casa%20modular%202.jpg")
      center/cover;
  box-shadow: var(--shadow);
}

.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 12px;
}

.section-header p {
  color: #4b4f5c;
  max-width: 720px;
  margin: 0 auto;
}

.section-header.light h2,
.section-header.light p,
.section-header.light .eyebrow {
  color: var(--white);
}

.about {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.about-highlight {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 31, 58, 0.06);
}

.about-highlight .years {
  font-family: "Montserrat", sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.about-highlight p {
  font-weight: 600;
  color: #2b3042;
}

.about-copy h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.about-copy p {
  color: #3b4154;
  margin-bottom: 14px;
}

.about-cta {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

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

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

.service-card {
  background: var(--white);
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(15, 19, 34, 0.18);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.differentials {
  background: var(--gold);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(26, 31, 58, 0.2) 0,
    rgba(26, 31, 58, 0.2) 2px,
    transparent 2px,
    transparent 8px
  );
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.diff-item {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 18px;
  font-weight: 600;
  color: var(--navy-dark);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(26, 31, 58, 0.2);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.media-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(26, 31, 58, 0.2);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.media-btn.active,
.media-btn:hover {
  background: var(--navy);
  color: var(--white);
}

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

.portfolio-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 230px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 58, 0.7);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

.portfolio-item.is-video .overlay {
  display: none;
}


.process {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  position: relative;
}

.timeline-step {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.timeline-step span {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
}

.coverage {
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.map {
  background: radial-gradient(circle at top, #ffffff 0%, #f6f7fb 60%, #eef1f8 100%);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 19, 34, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  border: 1px solid rgba(26, 31, 58, 0.06);
}

.map svg {
  width: min(320px, 90%);
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(26, 31, 58, 0.15));
}

.cities {
  background: var(--white);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 19, 34, 0.1);
  border: 1px solid rgba(26, 31, 58, 0.06);
}

.cities h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--navy-dark);
}

.cities ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  color: #2b3042;
}

.cities li {
  background: #f6f7fb;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  text-align: center;
}

.contact {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.contact-form {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7d9e2;
  font-family: inherit;
  font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(244, 180, 37, 0.5);
  border-color: var(--gold);
}

.form-row.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.error {
  color: #c0392b;
  font-size: 0.85rem;
  min-height: 18px;
}

.form-success {
  margin-top: 12px;
  color: #2c7a2c;
  font-weight: 600;
}

.contact-info {
  background: var(--navy);
  color: var(--white);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info ul li {
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-cta {
  margin-top: auto;
}

.contact-info .socials a {
  color: var(--white);
  width: 52px;
  height: 52px;
}

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.site-footer h4 {
  margin-bottom: 12px;
  color: var(--gold);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 26px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  animation: pulse 2s infinite;
}

.whatsapp:hover {
  transform: scale(1.1);
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes patternDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 140px 140px;
  }
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 900px) {
  .menu {
    position: absolute;
    right: 0;
    top: 58px;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 16px;
    border-radius: 12px;
    display: none;
  }

  .menu.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .topbar-inner {
    flex-direction: column;
    gap: 6px;
  }
}

/* Image Zoom Modal */
.zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zoom-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.zoom-modal-content {
  position: relative;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.zoom-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.close-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-zoom:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .zoom-modal-content {
    padding: 15px;
  }

  .zoom-image {
    max-height: 80vh;
  }

  .close-zoom {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .logo-img {
    height: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
