/* ─── SHARED STYLES — Urbanización Los Olivos ─── */

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

:root {
  --green-deep:  #2e4a1e;
  --green-dark:  #3d5c26;
  --green-mid:   #5a7a38;
  --green-light: #7a9e50;
  --gold:        #c4a035;
  --white:       #ffffff;
  --off-white:   #f7f6f1;
  --text-dark:   #1c1c1c;
  --text-mid:    #484848;
  --text-light:  #8a8a8a;
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.11);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.16);
  --radius:      12px;
  --transition:  0.35s ease;
  --nav-height:  70px;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.6;
}

/* ─── NAVIGATION ──────────────────────────────── */

.centrado-menu {
  width: 100%;
}

.menu {
  display: flex;
  width: 100%;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  padding: 0 40px;
  height: var(--nav-height);
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.menu.scrolled {
  background: rgba(22, 36, 14, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 28px rgba(0,0,0,0.30);
  height: 58px;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.logo p {
  margin: 0;
  line-height: 1.2;
}

.logo .l1 {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.logo .l2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.4px;
}

.menu-links {
  list-style: none;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  margin: 0;
}

.menu-links li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all var(--transition);
}

.menu-links li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.13);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1100;
  flex-shrink: 0;
}

.menu-toggle span {
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg);  top: 9px; }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

/* ─── COMMON PAGE ELEMENTS ────────────────────── */

.page-content {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

.page-header {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 100%);
  color: white;
  text-align: center;
  padding: 56px 30px 48px;
}

.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.page-header p {
  font-size: 1.05rem;
  opacity: 0.88;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── ERROR MESSAGES ──────────────────────────── */

.error {
  color: #b91c1c;
  font-weight: 600;
  text-align: center;
  padding: 14px 20px;
  margin: calc(var(--nav-height) + 16px) auto 0;
  max-width: 560px;
  background: #fef2f2;
  border-left: 4px solid #b91c1c;
  border-radius: 6px;
  font-size: 0.95rem;
}

.error.oculto {
  display: none;
}

/* ─── RESPONSIVE NAVBAR ───────────────────────── */

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(18, 32, 12, 0.97);
    backdrop-filter: blur(10px);
    display: none;
    text-align: center;
    padding: 14px 0 20px;
    gap: 2px;
  }

  .menu-links.show {
    display: flex;
    animation: fadeDown 0.25s ease;
  }

  .menu-links li a {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
}
