/* ============================================================
   Consorcio D.C. — Hoja de estilos
   ------------------------------------------------------------
   CÓMO EDITAR:
   - Colores y medidas globales: ver :root (abajo).
   - Cada sección tiene su bloque comentado.
   ============================================================ */

:root {
  /* 🎨 Colores (edita aquí para cambiar toda la web) */
  --color-primary: #0E2341;       /* Verde principal */
  --color-primary-dark: #081528;  /* Verde oscuro */
  --color-accent: #F5F7FA;        
  --color-sand: #F5F7FA;          
  --color-white: #ffffff;
  --color-text: #101418;
  --color-muted: #5E6B78;

  --shadow-soft: 0 20px 60px rgba(14,35,65,0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.section-pad {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 24px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
h3 { font-size: 1.35rem; line-height: 1.2; }

/* ============================================================
   HEADER / NAVEGACIÓN
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 5vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 56, 43, 0.08);
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-logo { width: 74px; height: 46px; object-fit: contain; }
.brand-name { color: var(--color-primary); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 12px; color: var(--color-primary); font-weight: 700; font-size: 0.9rem; }
.site-nav a:hover, .site-nav a:focus { color: var(--color-accent); }
.nav-cta { border: 1px solid var(--color-primary); border-radius: 999px; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 26px; height: 2px; margin: 6px auto; background: var(--color-primary); }

/* ============================================================
   BOTONES
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}
.button-primary { color: var(--color-white); background: var(--color-primary); }
.button-primary:hover { background: var(--color-primary-dark); }
.button-secondary { color: var(--color-primary); background: var(--color-sand); }
.button-secondary:hover { background: #e9e2d3; }
.button-outline { color: var(--color-white); border: 2px solid var(--color-white); background: transparent; }
.button-outline:hover { background: var(--color-white); color: var(--color-primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;        /* centra el contenido verticalmente */
  padding-top: 150px;             /* deja espacio para el header fijo */
  padding-bottom: 60px;
}
.hero-copy { max-width: 900px; 
margin-left: auto; /* centra el bloque en la pantalla */
margin-right: auto;}
.hero-actions { justify-content: center; } /* centra los botones */
.hero-text { font-size: 1.1rem; color: var(--color-muted); margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ============================================================
   PARTE DE LA FAMILIA (galería / slider)
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
}
.feature-text {
  background: var(--color-primary);
  color: var(--color-white);
  padding: clamp(40px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-text h2 { color: var(--color-white); }
.feature-text p { color: rgba(255, 255, 255, 0.85); margin-bottom: 16px; }
.feature-text .button { align-self: start; margin-top: 10px; }
.feature-gallery { position: relative; min-height: 480px; background: var(--color-sand); overflow: hidden; }
.feature-slides { position: absolute; inset: 0; }
.feature-slides img { width: 100%; height: 100%; object-fit: cover; }
.feature-nav {
  position: absolute;
  bottom: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: var(--color-white);
}
.feature-nav button { border: 0; background: none; font-size: 1.15rem; cursor: pointer; color: var(--color-primary); }
.feature-nav button:hover { color: var(--color-accent); }
.feature-nav span { font-weight: 800; letter-spacing: 0.15em; color: var(--color-primary); }

/* ============================================================
   EMPRESA / INTRO
   ============================================================ */
.intro {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 70px;
  border-top: 1px solid rgba(18, 56, 43, 0.12);
}
.intro h2 { color: var(--color-primary); }
.intro-text { font-size: 1.05rem; color: var(--color-muted); }
.intro-text p { margin-bottom: 16px; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services {
  background: var(--color-primary);
  color: var(--color-white);
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--container)) / 2));
  padding-right: max(20px, calc((100vw - var(--container)) / 2));
}
.services h2 { color: var(--color-white); }
.services .section-heading { width: min(var(--container), 100%); }
.service-grid {
  width: min(var(--container), 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.service-card span { display: block; margin-bottom: 46px; color: var(--color-accent); font-weight: 800; }
.service-card h3 { color: var(--color-white); }
.service-card p { color: rgba(255, 255, 255, 0.76); }

/* ============================================================
   PROYECTOS + TABS
   ============================================================ */
.projects h2 { color: var(--color-primary); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  border: 1px solid rgba(18, 56, 43, 0.18);
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.tab.is-active { background: var(--color-primary); color: var(--color-white); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.project-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.project-image { aspect-ratio: 4 / 5; background: var(--color-sand); overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.45s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-body { padding: 22px; }
.project-kicker { color: var(--color-accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.project-body h3 { color: var(--color-primary); margin: 6px 0 10px; }
.project-body p { color: var(--color-muted); margin-bottom: 6px; }
.status {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--color-sand);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.82rem;
}

/* ============================================================
   PRÓXIMOS PROYECTOS
   ============================================================ */
.upcoming { border-top: 1px solid rgba(18, 56, 43, 0.12); }
.upcoming h2 { color: var(--color-primary); }
.upcoming-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.upcoming-item {
  padding: 28px;
  border-radius: 20px;
  background: white;
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: all .3s ease;
}

.upcoming-item:hover {
  transform: translateY(-6px);
}

.upcoming-item strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
/* ============================================================
   TU CASA BIENES RAÍCES
   ============================================================ */
.realestate { display: flex; justify-content: center; }
.realestate-card {
  max-width: 760px;
  text-align: center;
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--color-sand);
  box-shadow: var(--shadow-soft);
}
.realestate-card h2 { color: var(--color-primary); }
.realestate-card p { color: var(--color-muted); margin-bottom: 22px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  background: var(--color-sand);
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--container)) / 2));
  padding-right: max(20px, calc((100vw - var(--container)) / 2));
}
.contact h2 { color: var(--color-primary); }
.contact-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.contact-card p { margin-bottom: 16px; }
.contact-card a { color: var(--color-primary); font-weight: 800; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 50px clamp(20px, 5vw, 58px);
  color: rgba(255, 255, 255, 0.75);
  background: var(--color-primary-dark);
}
.site-footer img { width: 150px; height: auto; margin-bottom: 12px; background: var(--color-white); border-radius: 12px; padding: 8px; }
.footer-right { text-align: right; }
.site-footer a { color: rgba(255,255,255,0.85); font-weight: 700; }
.site-footer a:hover { color: #ffffff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .feature, .intro, .contact { grid-template-columns: 1fr; }
  .service-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu-button { display: block; }
  .site-nav {
    position: absolute;
    top: 70px; left: 20px; right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px; }
  .hero { padding-top: 120px; }
  .service-grid, .project-grid, .upcoming-list { grid-template-columns: 1fr; }
  .section-pad { padding: 64px 0; }
  .section-heading-row { flex-direction: column; align-items: start; }
  .brand-name { display: none; }
  .site-footer { flex-direction: column; align-items: start; }
}
