/* Importación de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Variables y Tokens de Diseño */
:root {
  /* Fuentes */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Colores principales */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  
  /* Acentos (Homenaje a Barranquilla) */
  --accent-red: #e11d48;
  --accent-red-hover: #be123c;
  --accent-red-light: #fff1f2;
  
  --accent-yellow: #f59e0b;
  --accent-yellow-hover: #d97706;
  --accent-yellow-light: #fef3c7;
  
  --accent-verde: #10b981;
  --accent-verde-hover: #059669;
  --accent-verde-light: #ecfdf5;

  --accent-blue-dark: #0f172a;
  
  /* Sombras y Radios */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Header dimensions */
  --header-height: 80px;
  --header-padding: 20px;
}

/* Reset y Estilos Globales */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  padding-top: var(--header-height);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-main);
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.bg-secondary-section {
  background-color: var(--bg-secondary);
}

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

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Botones y CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  min-height: 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.98);
}

.btn-red {
  background-color: var(--accent-red);
  color: #ffffff;
}
.btn-red:hover {
  background-color: var(--accent-red-hover);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.btn-yellow {
  background-color: var(--accent-yellow);
  color: var(--accent-blue-dark);
}
.btn-yellow:hover {
  background-color: var(--accent-yellow-hover);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-verde {
  background-color: var(--accent-verde);
  color: #ffffff;
}
.btn-verde:hover {
  background-color: var(--accent-verde-hover);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline-white {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}
.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--accent-blue-dark);
}

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--accent-blue-dark);
  color: var(--accent-blue-dark);
}
.btn-outline-dark:hover {
  background-color: var(--accent-blue-dark);
  color: #ffffff;
}

/* Header (Menú de Navegación) */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* Shrink header animation linking with scrollport */
@keyframes shrink-header {
  to {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
  }
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  header {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.03);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
    max-width: 180px;
  }
  .footer-logo-img {
    height: 46px;
    max-width: 200px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-blue-dark);
}

/* Underline effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

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

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--accent-blue-dark);
  margin: 5px 0;
  transition: 0.3s ease;
}

@media (max-width: 1023px) {
  .nav-links {
    display: none; /* Oculto en móvil */
  }
  .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* Drawer Móvil */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-links a {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.mobile-menu-links a.active {
  color: var(--accent-red);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger active transformations */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section (index.html) */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: var(--accent-blue-dark);
  padding-top: 4rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

/* Background image with color overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.85) 40%, rgba(15, 23, 42, 0.3) 75%, rgba(15, 23, 42, 0.15) 100%), url('../assets/hero-bg.png');
  background-size: cover;
  background-position: right center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Banderas Cards */
.bandera-card {
  background-color: var(--bg-primary);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bandera-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(226, 232, 240, 0.3);
}

.bandera-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bandera-card.red .bandera-icon-wrapper { background-color: var(--accent-red-light); color: var(--accent-red); }
.bandera-card.yellow .bandera-icon-wrapper { background-color: var(--accent-yellow-light); color: var(--accent-yellow-hover); }
.bandera-card.verde .bandera-icon-wrapper { background-color: var(--accent-verde-light); color: var(--accent-verde); }

.bandera-card h3 {
  margin-bottom: 1rem;
}

.bandera-card p {
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.bandera-card .btn-link {
  font-family: var(--font-title);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.bandera-card.red .btn-link { color: var(--accent-red); }
.bandera-card.yellow .btn-link { color: var(--accent-yellow-hover); }
.bandera-card.verde .btn-link { color: var(--accent-verde); }

.bandera-card:hover .btn-link {
  transform: translateX(4px);
}

/* Termómetro Ciudadano */
.termometro-box {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.poll-question {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--accent-blue-dark);
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.poll-option-label {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-secondary);
  border: 2px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Visual state for focused inputs */
.poll-option-label:has(input:focus-visible) {
  outline: 3px solid var(--accent-red);
  outline-offset: 2px;
}

.poll-option-label:hover {
  border-color: var(--text-muted);
}

.poll-option-label.selected {
  border-color: var(--accent-red);
  background-color: var(--accent-red-light);
}

.poll-option-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.poll-option-text {
  font-weight: 600;
  color: var(--text-main);
  flex-grow: 1;
}

/* Custom radio visual */
.poll-option-label input[type="radio"] {
  accent-color: var(--accent-red);
  width: 20px;
  height: 20px;
}

/* Simulated Result Bar */
.poll-bar-wrapper {
  width: 100%;
  height: 8px;
  background-color: rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
  overflow: hidden;
  display: none; /* hidden by default, shown after voting */
  z-index: 2;
}

.poll-bar {
  height: 100%;
  width: 0; /* Animated via JS */
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.1, 1, 0.1, 1);
}

.poll-option-label:nth-child(1) .poll-bar { background-color: var(--accent-red); }
.poll-option-label:nth-child(2) .poll-bar { background-color: var(--accent-yellow); }
.poll-option-label:nth-child(3) .poll-bar { background-color: var(--accent-verde); }

.poll-percentage {
  display: none; /* hidden by default */
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 2;
}

/* Poll submission result message */
.poll-message {
  text-align: center;
  font-weight: 600;
  color: var(--accent-verde);
  margin-top: 1rem;
  display: none;
}

/* Final CTA Section (Rojo) */
.cta-voluntariado {
  background-color: var(--accent-red);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-voluntariado::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-voluntariado h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-voluntariado p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

/* SOBRE MÍ (about.html) */
.about-grid {
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
}

.about-text h2 {
  color: var(--accent-blue-dark);
}

.about-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.meta-item.red { color: var(--accent-red); }
.meta-item.yellow { color: var(--accent-yellow-hover); }
.meta-item.verde { color: var(--accent-verde); }

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* Orgullo Barranquillero */
.orgullo-header {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.orgullo-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.orgullo-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(226, 232, 240, 0.3);
}

/* Audio Player simulation */
.audio-player-sim {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audio-play-btn {
  background-color: var(--accent-verde);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.audio-play-btn:hover {
  background-color: var(--accent-verde-hover);
}

.audio-progress-bar {
  flex-grow: 1;
  height: 4px;
  background-color: rgba(226, 232, 240, 1);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}

.audio-progress {
  width: 35%; /* simulated state */
  height: 100%;
  background-color: var(--accent-verde);
  border-radius: var(--radius-full);
}

.audio-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.orgullo-quote {
  font-style: italic;
  border-left: 3px solid var(--accent-yellow);
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* Flag pattern illustration */
.bandera-illus {
  display: flex;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,0,0,0.1);
}

.bandera-illus-red { flex: 2; background-color: var(--accent-red); position: relative; }
.bandera-illus-yellow { flex: 1.5; background-color: var(--accent-yellow); position: relative; display: flex; align-items: center; justify-content: center; }
.bandera-illus-verde { flex: 1; background-color: var(--accent-verde); }

/* Star symbol in the yellow field */
.bandera-illus-yellow::after {
  content: '★';
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  text-shadow: 0 0 2px rgba(0,0,0,0.2);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
}

.timeline-bullet {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--accent-red);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--accent-red-light);
}

.timeline-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-blue-dark);
}

.timeline-content p {
  font-size: 0.9rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* MIS BANDERAS (propuestas.html) */
.page-intro {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
}

.page-intro h1 {
  margin-bottom: 1.5rem;
}

.page-intro p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* Alternating Proposal Blocks */
.proposal-block {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.proposal-block:last-child {
  border-bottom: none;
}

.proposal-block-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.proposal-img-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.proposal-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

/* Gradient themes on image placeholders representing each bander */
.proposal-img-placeholder::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.15;
}

.proposal-block.p-red .proposal-img-placeholder::before {
  background: linear-gradient(135deg, var(--accent-red) 0%, transparent 100%);
}

.proposal-block.p-yellow .proposal-img-placeholder::before {
  background: linear-gradient(135deg, var(--accent-yellow) 0%, transparent 100%);
}

.proposal-block.p-verde .proposal-img-placeholder::before {
  background: linear-gradient(135deg, var(--accent-verde) 0%, transparent 100%);
}

.proposal-img-icon {
  font-size: 3.5rem;
  z-index: 2;
}

.proposal-text {
  width: 100%;
}

.proposal-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.proposal-block.p-red .proposal-tag { background-color: var(--accent-red-light); color: var(--accent-red); }
.proposal-block.p-yellow .proposal-tag { background-color: var(--accent-yellow-light); color: var(--accent-yellow-hover); }
.proposal-block.p-verde .proposal-tag { background-color: var(--accent-verde-light); color: var(--accent-verde); }

.proposal-text h2 {
  margin-bottom: 1rem;
}

.proposal-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.proposal-text li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.proposal-text li::before {
  content: '✓';
  font-weight: bold;
  flex-shrink: 0;
}

.proposal-block.p-red li::before { color: var(--accent-red); }
.proposal-block.p-yellow li::before { color: var(--accent-yellow-hover); }
.proposal-block.p-verde li::before { color: var(--accent-verde); }

@media (min-width: 768px) {
  .proposal-block-container {
    flex-direction: row;
  }
  .proposal-block-container > * {
    flex: 1;
  }
  .proposal-block.inverse .proposal-block-container {
    flex-direction: row-reverse;
  }
}

/* GESTIÓN (blog.html) */
.blog-hero {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.blog-hero h1 {
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.news-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-image {
  aspect-ratio: 16/10;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
}

.news-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  transition: opacity 0.3s ease;
}

.news-card:hover .news-image::after {
  opacity: 0.15;
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.news-tag {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Category news card styling */
.news-tag.debate { background-color: var(--accent-red-light); color: var(--accent-red); }
.news-tag.comunidad { background-color: var(--accent-yellow-light); color: var(--accent-yellow-hover); }
.news-tag.proyecto { background-color: var(--accent-verde-light); color: var(--accent-verde); }

.news-date {
  color: var(--text-muted);
}

.news-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--accent-blue-dark);
}

.news-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-card .btn-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-blue-dark);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}

.news-card:hover .btn-text {
  color: var(--accent-red);
  gap: 0.5rem;
}

/* PARTICIPA (participa.html) */
.participa-grid {
  gap: 3rem;
  align-items: start;
}

.banco-ideas-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}

.banco-ideas-card h2 {
  margin-bottom: 0.5rem;
  color: var(--accent-blue-dark);
}

.banco-ideas-card > p {
  margin-bottom: 2rem;
}

/* Form Styles and Validation Feedback */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 5px 0; /* Expanded tap area helper */
  margin: -5px 0;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(226, 232, 240, 0.8);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  transition: all 0.3s ease;
  min-height: 48px;
  width: 100%;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue-dark);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.form-group .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Native CSS `:user-invalid` styling (Baseline since 2023) */
.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid,
.form-group input.user-invalid-fallback,
.form-group select.user-invalid-fallback,
.form-group textarea.user-invalid-fallback {
  border-color: var(--accent-red);
  background-color: var(--accent-red-light);
}

.form-group input:user-valid,
.form-group select:user-valid,
.form-group textarea:user-valid,
.form-group input.user-valid-fallback,
.form-group select.user-valid-fallback,
.form-group textarea.user-valid-fallback {
  border-color: var(--accent-verde);
}

.error-msg {
  display: none;
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Reveal error message adjacent to user-invalid */
.form-group input:user-invalid + .error-msg,
.form-group select:user-invalid + .error-msg,
.form-group textarea:user-invalid + .error-msg,
.form-group input.user-invalid-fallback + .error-msg,
.form-group select.user-invalid-fallback + .error-msg,
.form-group textarea.user-invalid-fallback + .error-msg {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Contact Info Sidebar */
.contacto-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contacto-info-box {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 2.5rem;
}

.contacto-info-box h3 {
  color: var(--accent-blue-dark);
  margin-bottom: 1.5rem;
}

.contacto-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contacto-details li {
  display: flex;
  gap: 1rem;
}

.contacto-icon {
  color: var(--accent-red);
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 24px;
}

.contacto-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contacto-text p {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 0;
}

.social-connect-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-connect-box h3 {
  color: var(--accent-blue-dark);
}

.social-large-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 1);
  background-color: var(--bg-primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  min-height: 48px;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.social-btn.instagram:hover { background-color: #e1306c; border-color: #e1306c; }
.social-btn.twitter:hover { background-color: #0f172a; border-color: #0f172a; }
.social-btn.tiktok:hover { background-color: #000000; border-color: #000000; }
.social-btn.facebook:hover { background-color: #1877f2; border-color: #1877f2; }

/* Success Box for submissions */
.form-success-alert {
  display: none;
  background-color: var(--accent-verde-light);
  border: 2px solid var(--accent-verde);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.form-success-alert h2 {
  color: var(--accent-verde-hover);
  margin-bottom: 1rem;
}

.form-success-alert p {
  color: var(--accent-blue-dark);
  margin-bottom: 1.5rem;
}

/* Footer (Pie de Página) */
footer {
  background-color: var(--accent-blue-dark);
  color: #ffffff;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 450px;
}

.footer-links-box h3 {
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background-color: var(--accent-red);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
  text-align: center;
}

/* Animaciones y Efectos Scroll (Scroll-driven entrance effect) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Native CSS Scroll-driven animations for browsers supporting it */
@keyframes reveal-animation {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-animation auto linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
  }
}
