/* ============================================================
   VARIABLES GLOBALES DE COLOR
   ============================================================ */
:root{
  --bg-color: #140b0d;          /* fondo (se anima con cada candidato) */
  --glow-color: #7a1620;        /* resplandor ambiental */
  --accent: #c81e34;            /* rojo institucional (acento) */
  --accent-soft: #ff556b;       /* rojo claro para detalles */
  --text-light: #f5f0ee;        /* texto principal */
  --text-muted: rgba(245, 240, 238, 0.65);
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-hover: rgba(255, 255, 255, 0.28);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--bg-color);
  transition: background-color 0.7s ease;
  overflow-x: hidden;
  color: var(--text-light);
  scroll-behavior: smooth;
}

/* ============================================================
   RESPLANDOR DIFUMINADO
   ============================================================ */
#glow{
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(90vw, 900px);
  height: min(90vw, 900px);
  transform: translate(-50%, -50%);
  background: var(--glow-color);
  filter: blur(110px);
  opacity: 0.45;
  transition: background-color 0.7s ease;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.page{
  position: relative;
  z-index: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 12px 48px;
}

header.titulo{
  text-align: center;
  margin-bottom: 28px;
}
header.titulo h1{
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  margin: 0 0 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 800;
}
header.titulo p{
  margin: 0;
  opacity: 0.7;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

/* ============================================================
   CARRUSEL
   ============================================================ */
.carousel-wrapper{
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel{
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 40px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar{ display: none; }

.slide{
  position: relative;
  flex: 0 0 auto;
  width: 230px;
  height: 320px;
  scroll-snap-align: center;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  transform: scale(0.82);
  filter: saturate(0.5) brightness(0.72);
  opacity: 0.65;
  transition: transform 0.45s cubic-bezier(.25,.8,.25,1),
              filter 0.45s ease,
              opacity 0.45s ease,
              box-shadow 0.45s ease;
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.slide.active{
  transform: scale(1.15);
  filter: saturate(1) brightness(1);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 22px 50px rgba(0,0,0,0.6);
}

/* ============================================================
   FLECHAS DE NAVEGACIÓN
   ============================================================ */
.nav-arrow{
  background: rgba(20,10,12,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  user-select: none;
}
.nav-arrow:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.08);
}
.nav-arrow:active{ transform: scale(0.95); }

@media (max-width: 700px){
  .nav-arrow{ position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; font-size: 1.2rem; }
  .nav-arrow.left{ left: 4px; }
  .nav-arrow.right{ right: 4px; }
  .slide{ width: 175px; height: 250px; }
}

/* ============================================================
   PUNTOS INDICADORES
   ============================================================ */
.dots{
  display: flex;
  gap: 10px;
  margin-top: 18px;
  z-index: 2;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.dot.active{
  background: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

footer.credito{
  margin-top: 26px;
  font-size: 0.75rem;
  opacity: 0.5;
  letter-spacing: 1px;
  text-align: center;
}

/* ============================================================
   BOTÓN CTA
   ============================================================ */
.scroll-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 10px 22px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(245, 240, 238, 0.85);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  transition: color 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
}
.scroll-cta:hover{
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
  transform: translateY(2px);
}
.scroll-cta svg{
  animation: ctaBounce 2.2s infinite;
}
@keyframes ctaBounce{
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(4px); }
  60% { transform: translateY(2px); }
}

/* ============================================================
   SECCIÓN DE PROPUESTAS
   ============================================================ */
.propuestas{
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.propuestas-header{
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.propuestas-header .eyebrow{
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(245, 240, 238, 0.85);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.propuestas-header h2{
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 16px;
  letter-spacing: 1px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, rgba(245, 240, 238, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.propuestas-header p{
  margin: 0;
  opacity: 0.7;
  font-size: 1rem;
  letter-spacing: 0.3px;
  line-height: 1.65;
}

/* ---------- Categoría ---------- */
.categoria{
  margin-bottom: 60px;
}
.categoria:last-child{
  margin-bottom: 0;
}

.categoria h3{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 26px;
  color: var(--text-light);
}

.categoria h3::before{
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.categoria h3::after{
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 100%);
}

.categoria h3 .count{
  font-size: 0.68rem;
  letter-spacing: 1px;
  font-weight: 700;
  color: rgba(245, 240, 238, 0.6);
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ---------- Grid ---------- */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* ---------- Tarjeta de propuesta ---------- */
.propuesta{
  position: relative;
  padding: 26px 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1),
              border-color 0.35s ease,
              background 0.35s ease,
              box-shadow 0.35s ease;
  overflow: hidden;
}

.propuesta::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
              rgba(255, 255, 255, 0.09) 0%,
              transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.propuesta:hover{
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.propuesta:hover::before{
  opacity: 1;
}

.propuesta .num{
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(245, 240, 238, 0.95);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.propuesta h4{
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.propuesta p{
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.propuestas-footer{
  text-align: center;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.propuestas-footer p{
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245, 240, 238, 0.45);
}

/* ============================================================
   LOGO MASCOTA (esquina inferior derecha)
   ============================================================ */
.logo-mascota{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 84px;
  height: 84px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1),
              background 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.logo-mascota img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.logo-mascota:hover{
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

@media (max-width: 700px){
  .logo-mascota{
    width: 64px;
    height: 64px;
    right: 14px;
    bottom: 14px;
    padding: 6px;
  }
}

/* ============================================================
   RESPONSIVE PROPUESTAS
   ============================================================ */
@media (max-width: 700px){
  .propuestas{
    padding: 30px 16px 100px;
  }
  .propuestas-header{
    margin-bottom: 46px;
  }
  .categoria{
    margin-bottom: 44px;
  }
  .categoria h3{
    font-size: 0.92rem;
    letter-spacing: 1.5px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .categoria h3::before{
    width: 22px;
  }
  .categoria h3 .count{
    font-size: 0.62rem;
  }
  .grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .propuesta{
    padding: 20px 18px;
  }
  .scroll-cta{
    font-size: 0.68rem;
    padding: 9px 16px;
  }
}
