/* ════════ css/layout.css ════════ */

/* GRID OVERLAY & ORBS */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 180px 180px;
}
.grid-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-strong) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-strong) 1px, transparent 1px);
  background-size: 720px 720px;
}

.blur-orb {
  position: fixed;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,90,43,.08) 0%, transparent 70%);
  top: 120px; left: 120px;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
  pointer-events: none;
}
.blur-orb.two {
  width: 340px; height: 340px;
  top: auto; left: auto;
  bottom: 100px; right: 220px;
  animation-duration: 18s;
  animation-delay: -7s;
  background: radial-gradient(circle, rgba(139,63,26,.06) 0%, transparent 70%);
}

/* ════ CONTENEDORES BASE Y LÍNEAS DIVISORIAS ════ */
section { 
  padding: 160px 70px; 
  border-bottom: 1px solid var(--line-strong); /* Línea arquitectónica entre secciones */
}
/* Quitamos la línea a la última sección antes del footer */
section:last-of-type {
  border-bottom: none;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 70px;
  gap: 60px;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(243, 238, 229, .85);
  border-bottom: 1px solid var(--line-strong);
}
.brand {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.04em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand::before {
  content: '■';
  font-size: 11px;
  color: var(--accent);
  transform: translateY(-3px);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 48px;
  justify-content: center;
}
.nav-link {
  font-family: var(--font-title3);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .4s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* FOOTER */
footer {
  padding: 100px 70px 60px; 
  border-top: 1px solid var(--line-strong);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-brand);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .95;
  margin-bottom: 18px;
}
.footer-tagline {
  font-family: var(--font-title2);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text-dim);
  max-width: 380px;
}
.footer-col h5 {
  font-family: var(--font-title3);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .4s var(--ease);
  cursor: pointer;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title3);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1100px) {
  nav { padding: 0 30px; gap: 24px; grid-template-columns: auto auto; height: 72px; }
  .nav-links { display: none; }
  section { padding: 120px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-col { padding-left: 0 !important; }
  footer { padding: 80px 30px 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}