/* =========================================================
   VARIABLES GLOBALES
========================================================= */
:root {
  --rojo: #E90200;
  --negro: #111;
  --gris: #f4f4f4;
}

/* =========================================================
   RESET BÁSICO
========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--negro);
  line-height: 1.6;
}

/* =========================================================
   HERO PRINCIPAL
========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100vh;
}

/* HERO TEXTO */
.hero-text {
  padding: 120px 10%;
  background: linear-gradient(135deg, var(--rojo), #b00000);
  color: white;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  align-content: center;
}

/* CONTENIDO ARRIBA */
.hero-top {
  flex: 1;
  margin: 0px auto;
}

/* BOTÓN ABAJO */
.hero-bottom {
  margin: 0px auto;
}

/* TITULOS HERO */
.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-text p {
  font-size: 1.6rem;
  margin-top: 25px;
  max-width: 600px;
}

.hero-text span {
  font-weight: 600;
  opacity: 0.95;
}

/* HERO IMAGEN DERECHA */
.hero-image {
  position: relative;
  background-image: url("img/foto-hero.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

/* =========================================================
   IDENTIDAD ELECTORAL (CASCO + X + NÚMERO)
========================================================= */
.hero-identidad {
  display: flex;
  align-items: center;
  gap: 45px;
  margin-bottom: 35px;
}

/* SÍMBOLO */
.hero-simbolo {
  width: 250px;
  height: auto;
  object-fit: contain;
}

/* WRAPPER PARA X */
.simbolo-wrapper {
  position: relative;
  width: 250px;
}

/* ANIMACIÓN GENERAL */
@keyframes aparecerZoom {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
}

/* X SOBRE EL SÍMBOLO */
.simbolo-x {
  position: absolute;
  top: -5px;
  left: 60px;
  font-size: 10rem;
  font-weight: 100;
  color: black;
  opacity: 0;
  pointer-events: none;

  animation: aparecerZoom 1s ease forwards;
  animation-delay: 0.3s;
}

/* CUADRO CON NÚMERO */
.hero-numero {
  width: 250px;
  height: 250px;
  border: 4px solid black;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10rem;
  font-weight: 800;
  color: black;
  opacity: 0;
  transform: scale(0.6);
  animation: aparecerZoom 1s ease forwards;
  animation-delay: 1s;
}

/* =========================================================
   FICHA ELECTORAL
========================================================= */
.hero-ficha {
  margin-top: 25px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.12);
  border-left: 4px solid white;
  max-width: 500px;
  font-size: 0.95rem;
}

.hero-ficha p {
  margin: 4px 0;
  opacity: 0.95;
}

.hero-ficha span {
  font-weight: 600;
}

/* =========================================================
   BOTÓN MÚSICA
========================================================= */
.music-btn-hero {
  min-width: 240px;
  text-align: center;

  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;

  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;

  cursor: pointer;
  transition: 0.3s ease;
}

.music-btn-hero:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */
section {
  padding: 100px 10%;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--rojo);
  margin-bottom: 50px;
}

/* =========================================================
   PERFIL
========================================================= */
.perfil {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.perfil img {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.perfil p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

/* =========================================================
   BLOQUES
========================================================= */
.bloques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.bloque {
  background: white;
  padding: 40px;
  border-top: 6px solid var(--rojo);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.bloque h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* =========================================================
   BANDA SENADO
========================================================= */
.banda {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.banda-text {
  background: var(--negro);
  color: white;
  padding: 80px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banda-text h2 {
  font-size: 2.2rem;
  color: var(--rojo);
  margin-bottom: 20px;
}

.banda-image {
  background: url("../assets/img/foto-campana.jpg") center/cover no-repeat;
}

/* =========================================================
   TIMELINE
========================================================= */
.timeline {
  border-left: 4px solid var(--rojo);
  padding-left: 40px;
  max-width: 800px;
}

.timeline div {
  margin-bottom: 35px;
}

/* =========================================================
   REELS
========================================================= */
.reels-container {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
}

.reel-card {
  min-width: 320px;
  max-width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  scroll-snap-align: start;
  padding: 16px;
}

.reel-card iframe {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  border: none;
}

.reel-card h4 {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--negro);
  color: white;
  padding: 50px 10%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-social a {
  color: white;
  font-size: 1.2rem;
  margin-left: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--rojo);
  transform: translateY(-3px);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {

  /* HERO pasa a una sola columna */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* Imagen más baja */
  .hero-image {
    min-height: 300px;
  }

  /* Texto centrado y padding reducido */
  .hero-text {
    padding: 70px 8%;
    text-align: center;
    align-items: center;
  }

  /* Título adaptable */
  .hero-text h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-text p {
    font-size: 1.2rem;
    max-width: 100%;
  }

  /* Identidad electoral en columna */
  .hero-identidad {
    flex-direction: column;
    gap: 25px;
  }

  /* Ajustar símbolo */
  .hero-simbolo,
  .simbolo-wrapper {
    width: 180px;
  }

  /* X más centrada */
  .simbolo-x {
    font-size: 7rem;
    left: 40px;
    top: 0;
  }

  /* Número más pequeño */
  .hero-numero {
    width: 180px;
    height: 180px;
    font-size: 4rem;
  }

  /* Ficha electoral ocupa todo */
  .hero-ficha {
    max-width: 100%;
    font-size: 0.9rem;
    text-align: left;
  }

  /* Botón ocupa todo */
  .music-btn-hero {
    width: 100%;
    max-width: 320px;
	margin-top: 2rem;
  }

  /* Otras secciones */
  .perfil,
  .banda {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   EXTRA FIX PARA CELULARES PEQUEÑOS
========================================================= */
@media (max-width: 480px) {

  .hero-text {
    padding: 55px 6%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-numero {
    width: 150px;
    height: 150px;
    font-size: 3.5rem;
  }

	.simbolo-x {
		font-size: 6rem;
		left: 50px;
		top: 10px;
	}
}

/* =========================================================
   FOOTER RESPONSIVE
========================================================= */
@media (max-width: 600px) {

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-social a {
    margin: 0 10px;
  }
}
