/* =====================================================
   Reservista Digital — Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --color-primary:     #4a5e1e;
  --color-primary-dark:#3a4d12;
  --color-primary-bg:  #2d3d0e;
  --color-primary-deep:#1a2e05;
  --color-header-bg:   #2c3b10;
  --color-footer-bg:   #1e2d08;
  --color-accent:      #6b8c2a;
  --color-accent-light:#8bad3a;
  --color-bg:          #f1f3ef;
  --color-bg-card:     #ffffff;
  --color-bg-section:  #f5f6f3;
  --color-text:        #1c2410;
  --color-text-body:   #374151;
  --color-text-muted:  #6b7280;
  --color-text-light:  #9ca3af;
  --color-border:      #e5e7eb;
  --color-border-dark: #d1d5db;
  --color-warning-bg:  #fffbeb;
  --color-warning-border: #f59e0b;
  --color-warning-text:#92400e;
  --radius-sm:         4px;
  --radius-md:         7px;
  --radius-lg:         10px;
  --shadow-sm:         0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:         0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:         0 8px 24px rgba(0,0,0,0.12);
  --font:              'IBM Plex Sans', system-ui, sans-serif;
  --transition:        0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
input, button, textarea, select { font-family: inherit; }

/* ── Header ── */
.site-header {
  background: var(--color-header-bg);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  text-decoration: none;
}
.site-nav a:hover { color: #fff; }

/* ── Footer ── */
.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.65);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand .logo-name { font-size: 14px; }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 240px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: rgba(255,255,255,0.85); }
.footer-col .contact-email {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74,94,30,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-text-body);
  border: 1.5px solid var(--color-border-dark);
}
.btn-outline:hover {
  background: var(--color-bg-section);
}
.btn-full { width: 100%; }
.btn-lg { padding: 0.9rem 2rem; font-size: 16px; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.cookie-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.cookie-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.cookie-content p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.cookie-content a {
  color: var(--color-accent);
  font-size: 13px;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-cookie {
  padding: 0.45rem 0.9rem;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid var(--color-border-dark);
  background: transparent;
  color: var(--color-text-body);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-cookie:hover { background: var(--color-bg-section); }
.btn-cookie-accept {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-cookie-accept:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.cookie-hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .cookie-banner { bottom: 0; left: 0; right: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
