/* ============================================
   Grupo Promotor Moros — tokens
   ============================================ */
:root {
  --ink: #14110d;
  --ink-soft: #2c2620;
  --paper: #f3ecdc;
  --paper-alt: #e9dec2;
  --white: #fffdf8;
  --gold: #96732b;
  --gold-light: #c7a768;
  --gold-deep: #6e5420;
  --placeholder-bg: #dbd5c5;
  --placeholder-text: #83795f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}

h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

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

section { padding: 88px 24px; }

.max {
  max-width: var(--max);
  margin: 0 auto;
}

/* ============================================
   Placeholders
   ============================================ */
.placeholder {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-radius: 4px;
  width: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover { background: var(--gold-deep); }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 253, 248, 0.4);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); }

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(20, 17, 13, 0.92);
  backdrop-filter: blur(6px);
}

.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 48px; width: auto; }

.nav__links { display: flex; gap: 32px; }
.nav__links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--gold-light); }

@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .nav__links { gap: 18px; }
  .nav__logo { height: 38px; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 120px 24px 140px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.hero__headline {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
}

.hero__sub {
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0 40px;
}

.hero__stat {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 500;
}

/* diagonal gold beam, echoing the roofline in the logo mark */
.hero__beam {
  position: absolute;
  z-index: 1;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: linear-gradient(
    100deg,
    transparent 42%,
    var(--gold-deep) 46%,
    var(--gold) 52%,
    transparent 56%
  );
  opacity: 0.55;
  transform: rotate(8deg);
}

@media (max-width: 720px) {
  .hero { padding: 96px 20px 110px; text-align: center; }
  .hero__inner { text-align: center; margin: 0 auto; }
  .hero__actions { justify-content: center; }
}

/* ============================================
   Nosotros
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.about__media {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.about__copy p { max-width: 56ch; }

.about__facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(20, 17, 13, 0.15);
  display: grid;
  gap: 12px;
}

.about__facts li {
  display: flex;
  gap: 8px;
  font-size: 0.95rem;
}

.about__facts span {
  min-width: 150px;
  color: var(--gold-deep);
  font-weight: 600;
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Proyectos
   ============================================ */
.projects {
  background: var(--paper-alt);
}

.projects__head {
  max-width: var(--max);
  margin: 0 auto 48px;
}

.projects__head p { color: var(--ink-soft); }

.projects__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.project-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.project-card h3 { margin-top: 20px; }
.project-card p { font-size: 0.95rem; color: var(--ink-soft); }

.project-card__type { margin-bottom: 4px; }

.project-card__size {
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 4px;
}

.project-card__address {
  font-size: 0.88rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

@media (max-width: 920px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ============================================
   Contacto
   ============================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
}

.contact__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(255, 253, 248, 0.6);
  text-align: center;
  padding: 40px 24px;
}

.footer__logo {
  height: 36px;
  width: auto;
  margin: 0 auto 16px;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  max-width: none;
}

.footer p a {
  color: var(--gold-light);
  text-decoration: none;
}
.footer p a:hover { text-decoration: underline; }
