:root {
  /* Colores Pasteles Juveniles */
  --pastel-1: #e9d5ff;
  /* Lavanda más notorio */
  --pastel-2: #bae6fd;
  /* Azul cielo más notorio */
  --pastel-3: #fce7f3;
  /* Rosa suave */
  --pastel-4: #fffbeb;
  /* Amarillo crema */
  --text-dark: #334155;
  --text-light: #f8fafc;
  --nav-bg-pc: rgba(255, 255, 255, 0.3);
  --nav-bg-mov: rgba(255, 255, 255, 0.7);

  /* Fuentes */
  --font-title: 'Merriweather', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Tipografía Solicitada */
.tx_t_1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.tx_t_2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.tx_p_LI {
  font-size: 1rem;
  text-align: justify;
}

/* Navegación PC */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg-pc);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  /* Aumentado para más protagonismo */
  font-size: 1.1rem;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.8);
  /* Asegura legibilidad sobre fondos oscuros */
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #9333ea;
}

.nav-links a.active {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: 0.3s;
}

/* Secciones */
.section {
  padding: 5rem 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-color-1 {
  background-color: var(--pastel-1);
}

.section-color-2 {
  background-color: var(--pastel-2);
}

/* Grid base para Propuestas y Eventos */
.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

/* Fila para "Las propuestas de Iván" (138px + texto) */
.prop-row-small {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.prop-row-small .text-content {
  margin-left: 1rem;
}

.prop-row-small .tx_t_2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.prop-row-small .tx_p_LI {
  margin-top: 0;
  margin-bottom: 0;
}

/* Para Cuidemos nuestro voto (1 sola fila) */
.vote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Imágenes Generales */
.img-fluid {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.img-fluid:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(109, 40, 217, 0.2);
  /* Sombra con el color de la marca */
}

/* Imagen específica de 80x80 */
.img_80 {
  width: 138px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.img_80:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.25);
}

/* Slider Section */
.slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  /* PC usa 100vh por defecto */
  overflow: hidden;
  margin-top: 0;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  filter: blur(10px);
  transform: scale(1.05);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    filter 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  background-size: cover;
  background-position: center;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  filter: blur(0);
  transform: scale(1);
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.slide.active .slide-bg, .slide.active .slide-video {
  animation: kenBurns 15s ease-out forwards;
}

.slide-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Contenido del Slide (Texto y Botón) */
.slide-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  padding: 0 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.slide.align-left .slide-content {
  left: 0;
}

.slide.align-right .slide-content {
  right: 0;
}

.slide-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.slide-btn {
  padding: 0.8rem 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  background-color: #9333ea;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
  transition: transform 0.3s, background-color 0.3s;
}

.slide-btn:hover {
  background-color: #7e22ce;
  transform: scale(1.05);
}

/* Botones Control Slider */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Footer */
.footer-section {
  min-height: auto;
  padding: 6rem 5%;
  /* Equivalente al espacio de ~2 párrafos arriba y abajo */
  background-color: #6d28d9;
  /* Un violeta fuerte, juvenil y diferente */
  color: var(--text-light);
}

.footer-section .tx_t_1,
.footer-section .tx_t_2,
.footer-section p,
.footer-section a {
  color: var(--text-light);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.social-links a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #c4b5fd;
  /* Efecto hover claro para no perder contraste */
}

/* Parallax Divider */
.parallax-divider {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  background-image: url('img/1920x1080_ParaJuntos.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-aciertos {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  background-image: url('img/1920x1080_ParaAciertos.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-poll {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  background-image: url('img/parallax_poll.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-regions {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  background-image: url('img/parallax_regions.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-rally {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  background-image: url('img/parallax_rally.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-cifras-eco {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  background-image: url('img/parallax_cifras_eco.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-cifras-edu {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  background-image: url('img/parallax_cifras_edu.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-cifras-paz {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  background-image: url('img/parallax_cifras_paz.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-cifras-col {
  width: 100%;
  height: 40vh;
  min-height: 300px;
  background-image: url('img/parallax_cifras_col.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


/* Media Queries para Móvil */
@media (max-width: 768px) {

  /* Menú Mov: Tipo Hamburguesa y lateral */
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--nav-bg-mov);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding-top: 80px;
    gap: 1.5rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
  }

  /* Slider Mov: Imagen img_c (cuadrada) llenando pantalla = 100vw altura? 
     La instrucción dice: "En la vista mov serán imágenes tipo img_c que llenaran todo el espacio disponible de la pantalla". 
     Podemos usar aspect-ratio cuadrado o 100vh si se ajusta.
  */
  .slider-section {
    height: 100vh;
    /* Mantener 100vh pero la imagen será cuadrada ajustada via object-fit */
  }

  .slide-content {
    width: 90%;
    padding: 0;
    left: 50% !important;
    transform: translate(-50%, -50%);
  }

  .logo-img {
    height: 32px;
  }

  .slide-text {
    font-size: 1.1rem;
  }

  .slide-btn {
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
  }

  /* Grid a 1 columna */
  .grid-row,
  .vote-grid {
    grid-template-columns: 1fr;
  }

  /* Las propuestas mantienen su imagen al lado pero con márgenes ajustados */
  .prop-row-small {
    grid-template-columns: 138px 1fr;
    gap: 1rem;
    align-items: center;
  }

  .prop-row-small .text-content {
    margin-left: 0.5rem;
  }

  /* Ajuste tipografía */
  .tx_t_1 {
    font-size: 2rem;
  }

  /* Parallax Mobile */
  .parallax-divider {
    background-image: url('img/800x800_ParaJuntos2.png');
    height: 30vh;
    min-height: 250px;
    background-attachment: fixed;
  }

  .parallax-aciertos {
    background-image: url('img/800x800_ParaAciertos.png');
    height: 30vh;
    min-height: 250px;
    background-attachment: fixed;
  }

  .parallax-poll, .parallax-regions, .parallax-rally {
    height: 30vh;
    min-height: 250px;
    background-attachment: fixed;
  }

  .parallax-cifras-eco, .parallax-cifras-edu, .parallax-cifras-paz, .parallax-cifras-col {
    height: 30vh;
    min-height: 250px;
    background-attachment: fixed;
  }
}

/* --- Página de Contacto --- */
.contact-section {
  position: relative;
  z-index: 10;
  padding-top: 2rem;
}

.contact-header {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.contact-header .tx_p_LI {
  text-align: center;
  font-size: 1.1rem;
  color: #475569;
}

.text-center {
  text-align: center;
}

/* Decoración blob de fondo */
.blob-contact {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(147, 51, 234, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

/* Glassmorphism común */
.glass-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

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

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(147, 51, 234, 0.1);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

/* Info de contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  padding: 1.5rem;
}

.info-card h3 {
  color: #6d28d9;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-icons a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.social-icons a:hover {
  color: #9333ea;
  transform: translateX(5px);
}

/* Redes Sociales con QR */
.qr-card {
  text-align: center;
}

.social-qr-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.qr-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.qr-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.8);
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.2);
}

/* Corrección de contraste para los QR más claros */
img[alt="QR Facebook"], img[alt="QR Instagram"] {
  filter: contrast(300%) grayscale(100%) brightness(0.8);
}

/* Formulario */
.contact-form-wrapper {
  padding: 2.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #475569;
  margin-left: 5px;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
  outline: none;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  background: #ffffff;
  border-color: #9333ea;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

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

.submit-btn {
  margin-top: 1rem;
  padding: 1.2rem 2rem;
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.submit-btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 30px rgba(147, 51, 234, 0.4);
}

/* Botón Principal (Usado en secciones) */
.btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1.2rem 2.5rem;
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 30px rgba(147, 51, 234, 0.4);
  color: #fff;
}

/* Responsivo para Contacto */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- ESTILOS PARA PÁGINA DE CIFRAS --- */

.internal-nav {
  position: sticky;
  top: 70px; /* Debajo del header principal */
  z-index: 990;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.internal-nav-links {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 2rem;
  width: 100%;
  max-width: 100vw;
}

@media (min-width: 769px) {
  .internal-nav-links {
    justify-content: center;
  }
}

.internal-nav-links a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.internal-nav-links a:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
}

.cifras-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cifras-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.span-2 {
  grid-column: span 2;
}

.info-pill {
  background: rgba(255, 255, 255, 0.7);
  padding: 0.8rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.p-small {
  padding: 1.5rem;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 350px;
  max-height: 400px;
  margin: 1rem auto 0 auto;
}

/* Animación de aparición para los contenedores de las gráficas en PC */
@media (min-width: 768px) {
  .chart-container canvas {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  .chart-container.visible canvas {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .cifras-grid-2, .cifras-grid-3 {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
  .internal-nav {
    top: 60px; /* Ajuste para header móvil */
    justify-content: flex-start;
  }
}