/* index.css */

 
:root {
  --color-primary: #006747; /* Cornellà Green */
  --color-primary-dark: #004d35;
  --color-primary-light: #e6f0ed;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-background: #f9fafb;
  --color-white: #ffffff;
  --color-border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.index_t{
	color:white !important;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--color-primary);
  color: green;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.btn-outline {
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-text);
}

.btn-outline:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Layout */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  z-index: 50;
}

.fab:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.05);
}

/* Filters */
.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.select-input {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  font-size: 0.875rem;
  color: var(--color-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}

.select-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* === Cornellàpolis Pro Layout === */

body {
  margin: 0;
  font-family: var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  background: var(--color-background, #f9fafb);
  color: var(--color-text, #111827);
}

.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, #e6f0ed 0, transparent 50%), #f9fafb;
}

.app-main {
  flex: 1;
}

.app-footer {
  border-top: 1px solid var(--color-border, #e5e7eb);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--color-text-light, #6b7280);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
}

.logo-main {
  color: #111827;
}

.logo-accent {
  color: var(--color-primary, #006747);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light, #6b7280);
  position: relative;
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary, #006747);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text, #111827);
  transform: translateY(-1px);
}

.nav-link-active {
  color: var(--color-primary, #006747);
}

.nav-link-active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.35rem;
  border-radius: 999px;
}

.nav-mobile {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary, #006747);
  color: white;
  box-shadow: 0 10px 18px rgba(0, 103, 71, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark, #004d35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary, #006747);
  border-color: rgba(0, 103, 71, 0.25);
  backdrop-filter: blur(18px);
}

.btn-outline:hover {
  background: rgba(230, 240, 237, 0.9);
}

.btn-ghost {
  background: rgba(0, 103, 71, 0.06);
  color: var(--color-primary, #006747);
}

.btn-ghost:hover {
  background: rgba(0, 103, 71, 0.12);
}

.hero-btn {
  min-width: 11rem;
}

/* Hero section */
.home-hero {
  position: relative;
  min-height: calc(100vh - 64px);
  background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.2)), url('img/banner.png');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-overlay {
  width: 100%;
  height: 110%;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.45));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(251, 191, 36, 0.15);
  color: #facc15;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 1.3rem;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
}

.hero-title span {
  color: #a7f3d0;
}

.hero-subtitle {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  max-width: 32rem;
  color: rgba(249, 250, 251, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-meta {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: rgba(209, 213, 219, 0.93);
}

/* Right panel */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-card {
  border-radius: 1.25rem;
  padding: 1.6rem 1.7rem;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.hero-card li {
  display: flex;
  gap: 0.4rem;
}

.hero-card li::before {
  content: "•";
  color: #6ee7b7;
  margin-top: 0.1rem;
}

.hero-card.secondary {
  background: rgba(15, 23, 42, 0.82);
  border-style: dashed;
}

.hero-card.secondary h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.hero-card.secondary p {
  font-size: 0.95rem;
  color: rgba(209, 213, 219, 0.95);
}

.hero-tag {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.8);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(229, 231, 235, 0.9);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .hero-panel {
    order: -1;
  }

  .header-inner {
    height: 60px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-mobile {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
  }

  .nav-link-mobile {
    padding: 0.45rem 0;
  }

  .btn-mobile {
    margin-top: 0.25rem;
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-overlay {
    padding-top: 4.25rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* App.css */
#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* style.css */
/* ============================================
   DISEÑO INSTITUCIONAL - Cornellàpolis
   Basado en el estilo del Ayuntamiento de Cornellà
   Color principal: Verde institucional
   ============================================ */

:root {
  /* PALETA PRINCIPAL - Verde institucional */
  --primary-dark: #0d5c2e;
  /* Verde oscuro principal */
  --primary-main: #16803d;
  /* Verde principal */
  --primary-light: #22c55e;
  /* Verde claro */
  --primary-pale: #dcfce7;
  /* Verde muy claro para fondos */

  /* Grises institucionales */
  --gray-900: #1a1a1a;
  --gray-800: #333333;
  --gray-700: #4d4d4d;
  --gray-600: #666666;
  --gray-500: #808080;
  --gray-400: #999999;
  --gray-300: #cccccc;
  --gray-200: #e6e6e6;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;

  /* Colores de estado */
  --success: #16803d;
  --error: #c41e3a;
  --warning: #f59e0b;

  /* Tema claro (único - estilo gobierno) */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;

  --text-primary: #1a1a1a;
  --text-secondary: #4d4d4d;
  --text-muted: #808080;

  --border-light: #e6e6e6;
  --border-main: #cccccc;

  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Bordes mínimos */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Sombras sutiles */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);

  /* Transiciones rápidas */
  --transition: 150ms ease;

  /* Tipografía */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;

  /* Z-index */
  --z-header: 100;
  --z-modal: 1000;
  --z-fab: 500;
}

/* ============================================
   RESET
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-main);
  text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */

button,
.btn {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0.625rem 1.25rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-primary {
  background: var(--primary-dark);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-main);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-main);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--primary-dark);
  color: white;
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-fab);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.fab:hover {
  background: var(--primary-main);
  transform: scale(1.05);
}

/* ============================================
   HEADER - Estilo institucional
   ============================================ */

.header {
  background: white;
  border-bottom: 3px solid var(--primary-dark);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: var(--shadow-sm);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  flex: 1;
  width: 100%;
}

/* ============================================
   CARDS - Estilo formal
   ============================================ */

.card {
  background: white;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-dark);
  padding: 1.5rem;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-main);
}

.card-clickable {
  cursor: pointer;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.card-subtitle {
  font-size: 0.813rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================
   BADGES - Estilo institucional
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.688rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  border: 1px solid;
}

.badge-primary {
  background: var(--primary-pale);
  color: var(--primary-dark);
  border-color: var(--primary-main);
}

.badge-success {
  background: #dcfce7;
  color: #0d5c2e;
  border-color: #16803d;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #dc2626;
}

.badge-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-300);
}

/* ============================================
   FORMS
   ============================================ */

input,
textarea,
select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.938rem;
  padding: 0.75rem;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-primary);
  transition: border-color var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px var(--primary-pale);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group {
  margin-bottom: 1.5rem;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

/* ============================================
   TABS - Estilo navegación institucional
   ============================================ */

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
}

.tab {
  padding: 1rem 2rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.938rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab:hover {
  color: var(--primary-dark);
}

.tab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
  background: var(--primary-pale);
}

/* ============================================
   GRID
   ============================================ */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 968px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal {
  background: white;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--primary-dark);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
}

.modal-content {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ============================================
   VOTE BUTTONS
   ============================================ */

.vote-buttons {
  display: flex;
  gap: 0.5rem;
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border-main);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.vote-btn:hover {
  border-color: var(--primary-dark);
  background: var(--primary-pale);
}

.vote-btn.voted {
  border-color: var(--primary-dark);
  background: var(--primary-pale);
  color: var(--primary-dark);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-dark);
  transition: width 300ms ease;
}

/* ============================================
   FILTERS
   ============================================ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-chip {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border-main);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: var(--primary-dark);
}

.filter-chip.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-main);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.empty-state-description {
  color: var(--text-muted);
}

/* ============================================
   UTILITY
   ============================================ */

.hidden {
  display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .header-logo h1 {
    font-size: 1.125rem;
  }

  .header-nav {
    gap: 0.5rem;
  }

  .main-content {
    padding: 2rem 1.5rem;
  }

  .tab {
    padding: 0.75rem 1rem;
    font-size: 0.813rem;
  }

  .fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3.25rem;
    height: 3.25rem;
  }

  .modal {
    margin: 1rem;
  }
}

/* === Overrides & layout improvements === */
.site-header {
  padding: 24px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.98rem;
}
.main-nav a {
  text-decoration: none;
  color: #1b1b1f;
  font-weight: 500;
}
.main-nav a:hover {
  text-decoration: underline;
}
.page,
.page-inner,
.home-latest {
  padding-top: 40px;
  padding-bottom: 40px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #27ff52 0%, #27ff52 100%)ding: 12px 24px;
  font-weight: 600;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px #006747;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-primary.small {
  padding: 8px 18px;
  font-size: 13px;
  box-shadow: 0 4px 14px #006747;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 92, 255, 0.42);
  filter: brightness(1.03);
}

.btn-ghost {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #ffffff;
  font-size: 13px;
  text-decoration: none;
  color: #1b1b1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-ghost:hover {
  background: #f6f6f8;
  border-color: rgba(0,0,0,0.22);
}

.btn-link {
  text-decoration: none;
  font-weight: 500;
}

.btn-danger.small {
  background: #ff3b3b;
  padding: 6px 12px;
  color: #ffffff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-danger.small:hover {
  filter: brightness(0.93);
}

.fab-add {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #005CFF;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 30px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fab-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.42);
}

.page {
  min-height: calc(100vh - 140px);
}
.page-header {
  margin-bottom: 24px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  border-radius: 16px;
  padding: 18px 18px 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h2 {
  font-size: 18px;
  margin: 0;
}
.card .tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef1ff;
  color: #1d3fff;
  margin-bottom: 4px;
}
.card p {
  font-size: 14px;
  color: #42424a;
}

.single-post {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 0 40px;
}
.single-post h1 {
  margin-bottom: 8px;
}
.post-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4b5cff;
  font-weight: 600;
}
.post-meta {
  font-size: 13px;
  color: #666672;
  margin-bottom: 16px;
}
.post-content {
  font-size: 15px;
  line-height: 1.6;
  color: #22222a;
  margin-bottom: 32px;
}

.petition-block {
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: #f6f8ff;
  margin-bottom: 28px;
}

.comments-block {
  border-top: 1px solid #e0e0e8;
  padding-top: 22px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f7fb;
}
.comment-meta {
  font-size: 12px;
  color: #6b6b75;
  margin-bottom: 4px;
}
.comment-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ced0dd;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 10px;
}

.error-list {
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
  color: #c00000;
  font-size: 13px;
}
.error-text {
  color: #c00000;
  font-size: 13px;
  margin-bottom: 10px;
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 40px 16px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  border-radius: 18px;
  padding: 24px 22px 26px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15,23,42,0.14);
}
.auth-card h1 {
  margin-bottom: 14px;
  font-size: 22px;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.auth-card label {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-card input {
  border-radius: 10px;
  border: 1px solid #ced0dd;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
}
.auth-switch {
  font-size: 13px;
  color: #5b5b66;
}
.auth-switch a {
  color: #005CFF;
  text-decoration: none;
  font-weight: 500;
}

.home-latest .mini-post {
  padding: 6px 0;
  border-bottom: 1px solid #eeeeF4;
  font-size: 14px;
}
.home-latest .mini-post a {
  display: inline-block;
  margin-bottom: 2px;
}
.home-latest time {
  display: block;
  font-size: 11px;
  color: #777783;
}
.home-latest .link-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}

.site-footer {
  padding: 18px 0;
  border-top: 1px solid #e6e6ef;
  font-size: 13px;
  color: #6b6b76;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Mobile header behavior */
.mobile-menu-btn {
  display: none;
}
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .header-inner {
    gap: 16px;
  }
  .main-nav {
    display: none !important;
  }
  .header-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #dde0ee;
    background: #ffffff;
  }
  .mobile-nav {
    position: absolute;
    top: 72px;
    right: 12px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.32);
    padding: 14px 16px;
    display: none;
    flex-direction: column;
    gap: 6px;
    min-width: 210px;
    z-index: 9999;
  }
  .mobile-nav a {
    padding: 8px 4px;
    font-size: 14px;
    text-decoration: none;
    color: #1b1b1f;
  }
  .mobile-nav a + a {
    border-top: 1px solid #f0f0f5;
  }
}
/* FIX: que el texto del botón no desaparezca al pasar el ratón */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #ffffff !important;
}
/* Botón verde tamaño equilibrado */
.btn-primary {
    background: #016A3D;
    border-radius: 999px;
    padding: 10px 22px;      /* Ajuste perfecto */
    font-weight: 600;
    font-size: 15px;         /* Ni grande ni pequeño */
    color: #ffffff !important;
    transition: all 0.18s ease;
    box-shadow: none;        /* Sin glow por defecto */
    line-height: 1;          /* Evita que se parta en 2 líneas */
    white-space: nowrap;     /* Mantiene el texto en una línea */
}

/* Glow SOLO al pasar el ratón */
.btn-primary:hover {
    background: #015732;
    transform: translateY(-1px);
    color: #ffffff !important;

    box-shadow:
        0 0 20px rgba(0, 109, 61, 0.40),
        0 0 40px rgba(0, 109, 61, 0.25);
}
