/* ==========================================================================
   PORTAL OFICIAL SENADORA MARY JURADO
   Sistema de Diseño Institucional & Estilos Principales
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta Institucional */
  --emerald-950: #021a18;
  --emerald-900: #042e2b;
  --emerald-800: #073f3a;
  --emerald-700: #0a4f49;
  --emerald-600: #0d6860;
  --emerald-500: #148b80;
  --emerald-100: #e0f2f0;
  --emerald-50: #f0f9f8;

  --gold-700: #966f1b;
  --gold-600: #b88a24;
  --gold-500: #d4a73b;
  --gold-400: #e4be5c;
  --gold-300: #f3d78c;
  --gold-100: #fbf5e4;

  --gold-gradient: linear-gradient(135deg, #c5972d 0%, #f6df8a 50%, #ba8921 100%);
  --gold-text-gradient: linear-gradient(135deg, #b88a24 0%, #f0d57d 50%, #9e731b 100%);
  --emerald-gradient: linear-gradient(135deg, #042e2b 0%, #0a4f49 50%, #0e6c64 100%);
  --hero-gradient: linear-gradient(145deg, #042e2b 0%, #073f3a 60%, #0a4f49 100%);

  --bg-primary: #ffffff;
  --bg-secondary: #f8faf9;
  --bg-tertiary: #f0f4f2;
  --card-bg: #ffffff;

  --text-main: #132220;
  --text-muted: #4e615e;
  --text-light: #7c908d;
  --text-white: #ffffff;

  --border-color: #e2e8e5;
  --border-focus: var(--emerald-600);

  --shadow-sm: 0 2px 8px rgba(4, 46, 43, 0.05);
  --shadow-md: 0 8px 24px rgba(4, 46, 43, 0.08);
  --shadow-lg: 0 16px 40px rgba(4, 46, 43, 0.12);
  --shadow-gold: 0 10px 30px rgba(184, 138, 36, 0.25);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TIPOGRAFÍA & UTILIDADES */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-700);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title span.gold-text {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--emerald-950);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(184, 138, 36, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-outline-emerald {
  background: transparent;
  color: var(--emerald-700);
  border: 2px solid var(--emerald-600);
}

.btn-outline-emerald:hover {
  background: var(--emerald-600);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(4, 46, 43, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-700);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.25s ease;
}

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

.nav-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--emerald-700);
  color: #ffffff;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--emerald-800);
  cursor: pointer;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 150px 0 100px 0;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 167, 59, 0.12) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 167, 59, 0.18) 0%, rgba(4, 46, 43, 0) 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 167, 59, 0.4);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-title .gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.2rem;
  color: #d7e4e1;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h4 {
  font-size: 1.9rem;
  color: var(--gold-400);
  font-weight: 800;
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 0.85rem;
  color: #b0c7c3;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(2, 31, 28, 0.8) 100%);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
  z-index: 2;
}

.hero-image-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.55), 0 0 30px rgba(212, 175, 55, 0.2);
  border-color: var(--gold-400);
}

.hero-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(4, 46, 43, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 167, 59, 0.4);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: #ffffff;
}

.hero-badge-overlay h5 {
  font-size: 1.1rem;
  color: var(--gold-300);
  margin-bottom: 3px;
}

.hero-badge-overlay p {
  font-size: 0.85rem;
  color: #d1e2df;
}

/* SOBRE MARY JURADO / PERFIL */
.profile-section {
  padding: 110px 0;
  background: #ffffff;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.profile-content h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--emerald-950);
}

.profile-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.profile-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.pillar-card {
  background: var(--bg-secondary);
  padding: 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--emerald-600);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  background: var(--emerald-50);
  border-left-color: var(--gold-500);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--emerald-600);
}

.pillar-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--emerald-950);
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.quote-banner {
  background: var(--emerald-gradient);
  color: #ffffff;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 167, 59, 0.3);
  position: relative;
  box-shadow: var(--shadow-md);
}

.quote-banner blockquote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
}

.quote-banner cite {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--gold-400);
  font-weight: 700;
}

/* SALA DE PRENSA / NOTICIAS */
.news-section {
  padding: 110px 0;
  background: var(--bg-secondary);
}

.news-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--emerald-700);
  color: #ffffff;
  border-color: var(--emerald-700);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

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

.news-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--emerald-900);
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(4, 46, 43, 0.9);
  backdrop-filter: blur(8px);
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 167, 59, 0.3);
}

.news-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.news-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--emerald-950);
}

.news-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald-700);
}

/* AGENDA DE EVENTOS */
.events-section {
  padding: 110px 0;
  background: #ffffff;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateX(6px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-sm);
}

.event-date-badge {
  background: var(--emerald-gradient);
  color: #ffffff;
  padding: 24px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.event-day {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}

.event-month {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.event-info {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.event-category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--emerald-600);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.event-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--emerald-950);
}

.event-meta-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* PROYECTOS DE LEY */
.bills-section {
  padding: 110px 0;
  background: var(--bg-secondary);
}

.bills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.bill-card {
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-500);
}

.bill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bill-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--emerald-700);
}

.bill-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-progress {
  background: #fff8e6;
  color: #b7791f;
  border: 1px solid #fed7aa;
}

.badge-approved {
  background: #e6fffa;
  color: #234e52;
  border: 1px solid #b2f5ea;
}

.badge-new {
  background: #ebf8ff;
  color: #2b6cb0;
  border: 1px solid #bee3f8;
}

.bill-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--emerald-950);
}

.bill-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.bill-author {
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

/* CONTACTO CIUDADANO */
.contact-section {
  padding: 110px 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contact-card {
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 167, 59, 0.3);
  box-shadow: var(--shadow-lg);
}

.contact-card h3 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.contact-card p {
  color: #d5e5e2;
  margin-bottom: 30px;
  font-size: 1rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 167, 59, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  font-size: 1.1rem;
}

.contact-form-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--emerald-950);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(10, 79, 73, 0.12);
}

/* MODAL DE LECTURA DE NOTICIA */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 26, 24, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--gold-500);
  color: var(--emerald-950);
}

.modal-header-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

/* MINIATURAS GALERÍA MULTIFOTO EN MODAL */
.modal-gallery-thumbnails {
  display: flex;
  gap: 10px;
  padding: 12px 36px 0 36px;
  overflow-x: auto;
  background: #f8faf9;
  border-bottom: 1px solid var(--border-color);
}

.modal-gallery-thumb {
  width: 70px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-gallery-thumb:hover,
.modal-gallery-thumb.active {
  opacity: 1;
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.news-card-photo-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(2, 26, 24, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 36px;
}

.modal-body h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: var(--emerald-950);
}

.modal-article-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 24px;
}

.modal-article-text p {
  margin-bottom: 18px;
}

/* FOOTER */
.footer {
  background: var(--emerald-950);
  color: #ffffff;
  padding: 70px 0 30px 0;
  border-top: 3px solid var(--gold-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand img {
  height: 52px;
  margin-bottom: 18px;
}

.footer-brand img {
  height: 52px;
  width: auto;
  max-width: 220px;
  margin-bottom: 18px;
  object-fit: contain;
}

.footer-brand p {
  color: #a3c2be;
  font-size: 0.95rem;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 1.15rem;
  color: var(--gold-300);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #a3c2be;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #799d98;
}

.admin-link {
  color: #799d98;
  font-size: 0.8rem;
  text-decoration: underline;
  transition: var(--transition);
}

.admin-link:hover {
  color: var(--gold-300);
}

/* ==========================================================================
   HALO / DIFUMINADO 3D CON LOS COLORES DE COLOMBIA (AMARILLO, AZUL Y ROJO)
   ========================================================================== */

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Difuminado suave tricolor detrás del retrato */
.colombia-aura-glow {
  position: absolute;
  top: -15px;
  right: -18px;
  bottom: -15px;
  left: -15px;
  background: 
    radial-gradient(circle at 90% 15%, rgba(255, 215, 0, 0.50) 0%, transparent 52%),
    radial-gradient(circle at 95% 50%, rgba(0, 56, 147, 0.45) 0%, transparent 52%),
    radial-gradient(circle at 88% 85%, rgba(206, 17, 38, 0.40) 0%, transparent 52%),
    radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.25) 0%, transparent 60%);
  filter: blur(35px);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
  animation: colombiaAuraPulse 7s ease-in-out infinite alternate;
}

@keyframes colombiaAuraPulse {
  0% {
    transform: scale(0.96) rotate(-1deg);
    opacity: 0.7;
    filter: blur(32px);
  }
  50% {
    transform: scale(1.03) rotate(1deg);
    opacity: 0.9;
    filter: blur(42px);
  }
  100% {
    transform: scale(0.98) rotate(-0.5deg);
    opacity: 0.75;
    filter: blur(35px);
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .flag-3d-floating-badge {
    right: 15px;
    top: 15px;
  }
}
