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

:root {
  --teal:       #5BA99A;
  --teal-dark:  #3D8B7A;
  --teal-light: #6DC4BC;
  --navy:       #2B3A7A;
  --gold1:      #D4A017;
  --gold2:      #E8C040;
  --gray-text:  #777;
  --body-text:  #555;
  --pattern-bg: #f0f0ee;
  --footer-bg:  #555555;
}

body { font-family: 'Lato', sans-serif; color: var(--body-text); }

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  background: #fff;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 9px;
  color: var(--teal-dark);
  text-decoration: none;
}
.logo-o {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 30px;
  height: 28px;
  margin: 0 1px;
}
.logo-o::before, .logo-o::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.logo-o::before { background: var(--gold1); left: 0; opacity: 0.9; }
.logo-o::after  { background: var(--gold2); right: 0; opacity: 0.85; }
.logo-s-rev { display: inline-block; transform: scaleX(-1); letter-spacing: 0; }

nav { display: flex; gap: 44px; }
nav a {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--teal-dark);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s;
}
nav a:hover { opacity: .6; }

/* HERO SLIDER */
.hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.hero-track {
  display: flex;
  height: 100%;
  transition: transform .7s ease;
}
.hero-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hero-slide:nth-child(1) { background-image: url('../img/Slider1.jpg'); }
.hero-slide:nth-child(2) { background-image: url('../img/Slider2.jpg'); }
.hero-slide:nth-child(3) { background-image: url('../img/Slider3.jpg'); }
.hero-slide:nth-child(4) { background-image: url('../img/Slider4.jpg'); }
.hero-slide:nth-child(5) { background-image: url('../img/Slider5.jpg'); }
.hero-slide:nth-child(6) { background-image: url('../img/Slider6.jpg'); }

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .3s;
}
.hero-dot.active { background: #222; }

/* TEAL BAR */
.teal-bar { height: 18px; background: var(--teal); }

/* TAGLINE */
.tagline {
  text-align: center;
  padding: 52px 20px;
  background: #fff;
}
.tagline h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--navy);
  line-height: 1.5;
  text-transform: uppercase;
}

/* PATTERN BACKGROUND */
.pattern-bg {
  background-color: var(--pattern-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='36' fill='none' stroke='%23c0bdb5' stroke-width='0.6' opacity='0.35'/%3E%3Ccircle cx='40' cy='40' r='24' fill='none' stroke='%23c0bdb5' stroke-width='0.5' opacity='0.25'/%3E%3Ccircle cx='40' cy='40' r='12' fill='none' stroke='%23c0bdb5' stroke-width='0.4' opacity='0.2'/%3E%3C/svg%3E");
}

/* PROYECTOS WRAP */
.projects-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  padding: 40px 100px 40px;
  gap: 80px;
}
.proj-item {
  display: flex;
  flex-direction: column;
}
.proj-photo { width: 100%; height: 520px; object-fit: contain; display: block; }
.construccion-card {
  width: 100%;
  height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
  gap: 20px;
  background: #b0cac6 url('../img/Edificio Malvin.png') center/cover no-repeat;
}
.detail-col { text-align: center; display: flex; flex-direction: column; align-items: stretch; padding: 20px 0 0; }
.detail-col > img { align-self: center; }
.detail-col .btn { align-self: center; margin-top: auto; }
.detail-col .detail-desc { text-align: center; }

/* Mini logo */
.mini-logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 7px;
}
.mini-logo .logo-o { width: 24px; height: 22px; }
.mini-logo .logo-o::before, .mini-logo .logo-o::after { width: 14px; height: 14px; }
.mini-sub {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  letter-spacing: 6px;
  text-align: center;
  margin-top: 4px;
}
.c-teal-dark { color: var(--teal-dark); }
.c-gold      { color: var(--gold1); }
.c-teal      { color: var(--teal); }
.c-teal-l    { color: var(--teal-light); }

.detail-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--body-text);
  text-align: justify;
  margin: 20px 0 28px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity .2s;
}
.btn:hover { opacity: .82; }
.btn-navy   { background: var(--navy); color: #fff; }
.btn-orange { background: #E8820C; color: #fff; }
.btn-green  { background: #2d6b3e; color: #fff; }
.btn-teal   { background: var(--teal); color: #fff; }
.btn-teal-l { background: var(--teal-light); color: #fff; }

/* Vision banner */
.vision-banner {
  padding: 24px 100px 40px;
  text-align: center;
}
.vision-banner p {
  font-size: 14.5px;
  font-weight: 700;
  color: #444;
  max-width: 920px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 3 COLUMNS */
.three-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding: 50px 80px 0;
}
.proj-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
.proj-col .btn { margin-top: auto; }
.proj-img-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}
.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0; left: 0;
  transition: opacity 0.4s ease;
}
.proj-img-wrap .img-normal { opacity: 1; }
.proj-img-wrap .img-vendido { opacity: 0; }
.proj-img-wrap:hover .img-normal { opacity: 0; }
.proj-img-wrap:hover .img-vendido { opacity: 1; }
.proj-col .proj-logo {
  height: 58px;
  width: auto;
}
.proj-col .detail-desc { font-size: 13px; text-align: center; margin: 14px 0 22px; }


/* CONTACT */
.contact-section { padding: 60px 100px 80px; }
.contact-title {
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 38px;
  color: var(--gray-text);
  margin-bottom: 40px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; }
.contact-info {
  background: var(--teal);
  color: #fff;
  padding: 44px 48px;
}
.contact-info h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 22px;
  margin-bottom: 32px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-icon { width: 22px; flex-shrink: 0; }

.contact-form-wrap { padding: 20px 48px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 12px; color: #888; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 7px 0;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  color: var(--body-text);
  outline: none;
  background: transparent;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { height: 130px; resize: vertical; }
.btn-send {
  display: block;
  margin: 10px auto 0;
  background: #888;
  color: #fff;
  border: none;
  padding: 10px 32px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.btn-send:hover { background: #666; }

/* FOOTER */
footer { background: var(--footer-bg); color: #ccc; text-align: center; }
.footer-top { padding: 32px 20px 24px; border-bottom: 1px solid #666; }
.footer-top p { font-size: 13px; margin-bottom: 10px; color: #bbb; }
.footer-brand {
  display: inline-block;
  border: 1px solid #999;
  padding: 7px 22px;
  font-size: 11px;
  letter-spacing: 3px;
  color: #ccc;
  text-decoration: none;
}
.footer-bottom { padding: 14px 20px; font-size: 12px; color: #999; }
.footer-bottom strong { color: #bbb; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* NAV DRAWER */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 199;
}
.nav-overlay.active { display: block; }
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 220px;
  height: 100%;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 70px 30px 30px;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--teal-dark);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-drawer a:hover { opacity: .6; }

/* RESPONSIVE */
@media (max-width: 900px) {
  header { padding: 14px 20px; }
  nav { gap: 16px; }
  nav a { font-size: 11px; letter-spacing: 2px; }
  .hero { height: 280px; }
  .tagline { padding: 30px 20px; }
  .tagline h2 { font-size: 20px; letter-spacing: 2px; }
  .projects-wrap { grid-template-columns: 1fr 1fr; padding: 20px; gap: 20px; }
  .proj-photo { height: 220px; }
  .construccion-card { height: 220px; }
  .vision-banner { padding: 20px 20px 28px; }
  .vision-banner p { font-size: 13px; }
  .three-cols { grid-template-columns: 1fr; padding: 24px 20px 0; gap: 16px; }
  .proj-img-wrap { height: 260px; }

  .contact-section { padding: 36px 20px 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 32px 20px; }
  .contact-form-wrap { padding: 20px; }
  .contact-title { font-size: 28px; }
}
@media (max-width: 600px) {
  .projects-wrap { grid-template-columns: 1fr; padding: 20px 16px; gap: 40px; }
  .proj-photo { height: 240px; }
  .construccion-card { height: 240px; }
}
@media (max-width: 480px) {
  header { padding: 10px 14px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .logo img { height: 36px !important; }
  .hero { height: 220px; }
  .tagline h2 { font-size: 16px; letter-spacing: 1px; }
  .proj-photo, .construccion-card { height: 200px; }
  .proj-img-wrap { height: 220px; }
}
