/* =================================================================
   CONSTRUCCIONES ALTERNAS SUSTENTABLES — Premium Wabi Sabi
   ================================================================= */

:root {
  --bg:        #F7F4EE;   /* fondo crema premium */
  --bg-soft:   #F1EBE0;
  --bg-warm:   #EBE3D3;
  --white:     #FFFFFF;
  --ink:       #1F1A14;   /* texto principal café muy oscuro */
  --ink-2:     #2A2520;
  --muted:     #8B8278;
  --line:      #E5DDD0;
  --amber:     #B8945A;   /* acento amber refinado */
  --amber-dk:  #A37E45;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* === TIPOGRAFÍA === */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 400;
}
h1 em {
  color: var(--amber);
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
}

h3 {
  font-size: 1.4rem;
  font-weight: 500;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.lead, .subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 48ch;
}

.subtitle { margin-top: 12px; }

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-full { width: 100%; }

/* === HEADER === */
.site-header {
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  background: var(--bg-warm);
  color: var(--amber-dk);
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.brand-text strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.brand-text small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 36px;
}
.site-nav a {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 400;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--amber); }

/* === HERO === */
.hero {
  padding: 70px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 50%;
  height: 100%;
  background: var(--bg-soft);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  padding-right: 16px;
}

.hero-accent {
  width: 64px;
  height: 1px;
  background: var(--amber);
  margin-bottom: 22px;
  display: inline-block;
  vertical-align: middle;
}

.hero-text .eyebrow {
  display: inline-block;
  margin-left: 16px;
  margin-bottom: 32px;
  vertical-align: middle;
}

.hero-text h1 {
  margin-bottom: 28px;
}

.hero-text .lead {
  margin-bottom: 40px;
  font-size: 1.05rem;
}

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

.hero-media {
  position: relative;
  height: 560px;
}

/* Decorative circle */
.hero-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  aspect-ratio: 1;
  max-width: 520px;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 50%;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  z-index: 2;
  background: var(--bg);
  padding: 8px;
  box-shadow: 0 30px 60px -25px rgba(31, 26, 20, 0.2);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-main {
  top: 5%;
  right: 0;
  width: 70%;
  height: 65%;
}

.hero-photo-sec {
  bottom: 0;
  left: 0;
  width: 45%;
  height: 40%;
}

.hero-stat {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--bg);
  padding: 18px 24px;
  border-radius: 2px;
  text-align: center;
  z-index: 5;
  box-shadow: 0 10px 30px -10px rgba(31, 26, 20, 0.15);
}
.hero-stat .stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
}
.hero-stat .stat-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 6px;
}

/* === SECCIONES === */
.section {
  padding: 110px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head .eyebrow {
  display: block;
}
.section-head h2 {
  max-width: 24ch;
  margin: 0 auto;
}
.section-head .subtitle {
  margin: 16px auto 0;
  max-width: 60ch;
  text-align: center;
}

/* === NOSOTROS === */
.nosotros { background: var(--bg); }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.nosotros-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg);
  padding: 8px;
  box-shadow: 0 30px 60px -25px rgba(31, 26, 20, 0.2);
}
.nosotros-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.nosotros-text h2 { margin-bottom: 28px; }
.nosotros-text p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 52ch;
  font-size: 0.98rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat .stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
}
.stat .stat-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 10px;
}

/* === SERVICIOS === */
.servicios { background: var(--bg-soft); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servicio-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px 36px;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -16px rgba(31, 26, 20, 0.08);
  border-color: var(--bg-warm);
}
.servicio-card:hover::before { transform: scaleX(1); }

.servicio-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 500;
}

.servicio-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* === PORTAFOLIO === */
.portafolio { background: var(--bg); }

.portafolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.proyecto {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.proyecto:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -16px rgba(31, 26, 20, 0.12);
}

.proyecto-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-warm);
}

.proyecto-body {
  padding: 22px 24px 26px;
}

.proyecto .cat {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 8px;
}

.proyecto h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

.proyecto .loc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.proyecto .desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* === CONTACTO === */
.contacto { background: var(--bg-soft); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contacto-info h2 { margin-bottom: 28px; }
.contacto-info > p {
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 40ch;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact-list .ci {
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  flex-shrink: 0;
}
.contact-list small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-list strong {
  display: block;
  font-weight: 400;
  color: var(--ink);
  font-size: 0.95rem;
}

.contacto-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 44px 40px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contacto-form label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--muted);
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: normal;
  font-weight: 400;
  transition: border-color 0.2s;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-bottom-color: var(--amber);
}
.contacto-form textarea {
  resize: vertical;
  min-height: 80px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 2px;
}
.contacto-form textarea:focus { border-color: var(--amber); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contacto-form button { margin-top: 10px; }

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 32px 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.site-footer .container { color: rgba(247, 244, 238, 0.6); }

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 50px 0 70px; }
  .hero::before { display: none; }
  .hero-media { height: 460px; }
  .hero-circle { max-width: 380px; max-height: 380px; }
  .nosotros-grid,
  .contacto-grid { grid-template-columns: 1fr; gap: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .servicios-grid,
  .portafolio-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .header-row { padding: 14px 20px; }
  .hero-media { height: 360px; }
  .hero-circle { max-width: 280px; max-height: 280px; }
  .servicios-grid,
  .portafolio-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .contacto-form { padding: 30px 24px; }
  .hero-cta .btn { flex: 1; }
  .hero-text .eyebrow { margin-left: 0; display: block; margin-bottom: 24px; }
  .hero-accent { display: none; }
}
