/* ================================================
   PRIMERO SANTIAGO · Jorge Musetti Gobernador
   Rediseño v2.0 — Quiroga Digital
   ================================================ */

:root {
  --azul:    #003087;
  --celeste: #87CEEB;
  --rojo:    var(--azul);
  --oscuro:  #001A4D;
}

/* ---- Top Bar ---- */
.topbar {
  height: 36px;
  background: var(--azul);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  transition: color .15s;
}
.topbar-link:hover { color: #fff; }
.topbar-sep { color: rgba(255,255,255,0.3); }
.topbar-social {
  color: rgba(255,255,255,0.6);
  transition: color .15s;
}
.topbar-social:hover { color: var(--celeste); }

/* ---- Main Header ---- */
.main-header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .3s;
}
.main-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,48,135,0.12);
}
.nav-link {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--azul);
  transition: color .15s, background .15s;
}
.nav-link:hover {
  color: var(--rojo);
  background: rgba(0,48,135,0.06);
}
.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--azul), var(--rojo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 12px;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.logo-badge-sm {
  width: 28px;
  height: 28px;
  font-size: 10px;
  border-radius: 6px;
}

/* ---- Hero ---- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
              url('../mussettifondo.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 960px;
  animation: heroIn .9s cubic-bezier(.22,1,.36,1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--celeste);
  border: 1px solid rgba(135,206,235,.35);
  padding: 4px 18px;
  border-radius: 9999px;
  background: rgba(135,206,235,.08);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(3.8rem, 11vw, 9rem);
  font-weight: 900;
  color: #fff;
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 48px rgba(0,0,0,0.55);
}
.hero-body {
  font-size: clamp(.85rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,.65);
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: .03em;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-primary {
  background: var(--rojo);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0,48,135,.42);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.cta-primary:hover {
  background: var(--oscuro);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,48,135,.55);
}
.cta-secondary {
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,.55);
  transition: border-color .2s, background .2s, transform .2s;
}
.cta-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.45));
}
.scroll-dot {
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,.6);
  border-radius: 50%;
  animation: dotBounce 2s ease-in-out infinite;
}
@keyframes dotBounce {
  0%,100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ---- Section helpers ---- */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: .4rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--azul);
  line-height: 1.1;
  margin-bottom: .65rem;
}
.section-subtitle {
  font-size: 1rem;
  color: #64748b;
  max-width: 540px;
  margin: 0 auto;
}

/* ---- Propuestas ---- */
.propuesta-card {
  position: relative;
  padding: 2.25rem 1.875rem;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 300px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.propuesta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(0,0,0,.16);
}
.propuesta-blue {
  background: linear-gradient(140deg, var(--azul) 0%, #1565C0 100%);
  color: #fff;
  box-shadow: 0 6px 30px rgba(0,48,135,.25);
}
.propuesta-white {
  background: #fff;
  border: 2px solid #e2e8f0;
  color: var(--azul);
  box-shadow: 0 4px 20px rgba(0,48,135,.07);
}
.propuesta-red {
  background: linear-gradient(140deg, var(--rojo) 0%, var(--oscuro) 100%);
  color: #fff;
  box-shadow: 0 6px 30px rgba(0,48,135,.25);
}
.propuesta-icon {
  width: 52px;
  height: 52px;
  margin-bottom: .6rem;
}
.propuesta-blue .propuesta-icon,
.propuesta-red  .propuesta-icon { color: rgba(255,255,255,.8); }
.propuesta-white .propuesta-icon { color: var(--azul); }
.propuesta-icon svg { width: 100%; height: 100%; }
.propuesta-titulo {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.2;
}
.propuesta-sub {
  font-size: .8rem;
  font-weight: 600;
  opacity: .72;
  margin-bottom: .2rem;
}
.propuesta-desc {
  font-size: .875rem;
  line-height: 1.7;
  opacity: .82;
  /* Truncado: la tarjeta no se deforma aunque la descripción sea larga */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ---- Lista de viñetas estática dentro de la tarjeta ---- */
.propuesta-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: .875rem;
  line-height: 1.5;
  opacity: .9;
  position: relative;
  z-index: 1;
}
.propuesta-lista li {
  position: relative;
  padding-left: 1.15rem;
}
.propuesta-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}

.propuesta-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: .92;
  position: relative;
  z-index: 1;
  transition: gap .2s ease, opacity .2s ease;
}
.propuesta-link:hover { gap: 10px; opacity: 1; }
.propuesta-link svg { width: 14px; height: 14px; }
.propuesta-num {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  opacity: .07;
  pointer-events: none;
}
.propuesta-white .propuesta-num { opacity: .05; color: var(--azul); }

/* ---- Noticias (generadas por JS) ---- */

#noticias {
	display: none;
}
.news-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.1);
}
.news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.news-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg,#e8edf5,#d1d9e6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #94a3b8;
}
.news-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.news-badge span:first-child {
  background: #e8edf5;
  color: var(--rojo);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 9999px;
}
.news-badge span:last-child { font-size: 11px; color: #9ca3af; }
.news-title {
  font-weight: 700;
  color: var(--azul);
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-copete {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rojo);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
  margin-top: auto;
}
.news-read-more:hover { color: var(--oscuro); }
.news-skeleton {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}
.skeleton-block { background: #e2e8f0; border-radius: 6px; }

/* Placeholder imágenes (usados desde JS) */
.img-placeholder {
  width: 100%;
  height: 170px;
  background: linear-gradient(135deg,#e8edf5,#d1d9e6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
}
.img-placeholder-modal {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg,#e8edf5,#d1d9e6);
  border-radius: .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

/* ---- Modals ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #fff;
  border-radius: 1.25rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  animation: modalIn .2s ease;
}
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: background .15s, color .15s;
}
.modal-close-btn:hover { background: #e2e8f0; color: #1e293b; }

/* ---- Formulario ---- */
.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .3rem;
}
.form-input {
  width: 100%;
  padding: .6rem .875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: .625rem;
  font-size: .875rem;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(0,48,135,.1);
}
.form-input:disabled { background: #f8fafc; color: #94a3b8; }
.form-input::placeholder { color: #9ca3af; }

/* ---- Map hint ---- */
.map-hint-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--azul);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: .75rem;
  animation: slideDown .2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Toasts & animaciones ---- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-slideUp { animation: slideUp .3s ease; }

@keyframes pinDrop {
  0%   { transform: translateY(-20px) scale(.8); opacity: 0; }
  65%  { transform: translateY(5px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}
.pin-drop { animation: pinDrop .35s cubic-bezier(.34,1.56,.64,1); }

/* ---- Leaflet ---- */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 14px 16px !important;
  font-family: Montserrat, system-ui, sans-serif !important;
}
.leaflet-popup-tip-container { display: none; }

/* ---- WhatsApp flotante ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 9998;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128C7E;
  box-shadow: 0 12px 32px rgba(37,211,102,.55);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.45);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.65); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
                url('../mussettifondo-movil.png') !important;
    background-size: cover !important;
    background-position: center !important;
    align-items: flex-start;
    padding-top: 8vh;
  }
  .hero-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .hero-title {
    margin-top: 38vh;
  }
}

/* En PC el rostro del candidato vive en la mitad derecha del fondo:
   llevamos el bloque de texto a la mitad izquierda (espacio negativo)
   y dejamos la derecha libre para la foto. */
@media (min-width: 769px) {
  .hero-section {
    justify-content: flex-start;
    align-items: center;
    padding-left: 6vw;
  }
  .hero-content {
    text-align: left;
    max-width: 50%;
    margin-top: 0;
  }
  .hero-ctas {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .cta-primary, .cta-secondary { width: 100%; max-width: 300px; text-align: center; }
  .topbar { font-size: 11px; }
}
