/* Estilos de las piezas comunes (cabecera, pie, banner de cookies).
   Se cargan en todas las páginas que usan esas piezas. */

:root {
  --bg-offwhite: #F9F9F9;
  --cta-slate: #1A1C1E;
  --accent-gold: #B59A5D;
  --bg-dark-section: #1A1C1E;
}

/* ---------- Cabecera (menú de la portada) ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  height: 90px;
  background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 28, 30, 0.05); z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 50px; box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  width: 100vw !important; max-width: 100vw !important; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
}
.nav-logo img {
  width: 200px !important; max-width: 100%; height: auto !important;
  max-height: 65px !important; object-fit: contain; object-position: left center; display: block;
}
.nav-links { display: flex; gap: 35px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; color: #2D2D2D; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease; }
.nav-links a:hover { color: #B59A5D; }
.nav-links .btn-nav { background-color: #1A1C1E; color: #FFF; padding: 12px 24px; border-radius: 0; }
.nav-links .btn-nav:hover { background-color: #B59A5D; color: #FFF; }

body:has(.navbar) { padding-top: 90px; }
section { scroll-margin-top: 90px; }

@media (max-width: 992px) {
  .navbar { padding: 0 20px; justify-content: center; height: 80px; }
  .nav-logo img { width: 180px !important; height: auto !important; max-height: 55px !important; object-position: center; }
  .nav-links { display: none; }
  body:has(.navbar) { padding-top: 80px !important; }
  section { scroll-margin-top: 80px !important; }
}

/* ---------- Pie (texto de la portada) ---------- */
.site-footer {
  background-color: var(--cta-slate);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer p { margin-bottom: 0; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.site-footer a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.3s ease; margin-left: 10px; }
.site-footer a:hover { color: var(--accent-gold); }

@media (max-width: 992px) {
  .site-footer .container { flex-direction: column; text-align: center; gap: 15px; }
  .site-footer a { margin: 0 10px; }
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background-color: var(--bg-dark-section); color: #fff; padding: 20px; z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3); border-top: 3px solid var(--accent-gold);
  transform: translateY(100%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.85rem; margin-bottom: 20px; text-align: center; max-width: 800px; color: rgba(255,255,255,0.8); line-height: 1.6; }
.cookie-text a { color: var(--accent-gold); text-decoration: underline; font-weight: 600; }
.cookie-buttons { display: flex; gap: 15px; width: 100%; }
.btn-cookie { padding: 12px 20px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 0; cursor: pointer; transition: all 0.3s ease; flex: 1; text-align: center; }
.btn-accept { background-color: var(--accent-gold); color: #fff; border: 1px solid var(--accent-gold); }
.btn-accept:hover { background-color: transparent; color: var(--accent-gold); }
.btn-reject { background-color: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.3); }
.btn-reject:hover { border-color: #fff; color: #fff; }
@media (min-width: 768px) {
  .cookie-banner { flex-direction: row; padding: 20px 40px; }
  .cookie-text { margin-bottom: 0; text-align: left; margin-right: 30px; font-size: 0.9rem; }
  .cookie-buttons { width: auto; }
  .btn-cookie { flex: none; padding: 12px 30px; }
}
/* Banner de cookies compacto en móvil (solo tamaño; mismo texto y botones). */
@media (max-width: 700px) {
  body .cookie-banner { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px; }
  body .cookie-banner .cookie-text { margin: 0; font-size: 10.5px; line-height: 1.35; text-align: left; max-width: none; }
  body .cookie-banner .cookie-buttons { gap: 10px; width: 100%; }
  body .cookie-banner .btn-cookie { padding: 7px 10px; font-size: 10.5px; letter-spacing: .5px; }
}
