/* ========== FUENTES Y COLORES (SIN CAMBIOS) ========== */
/* Mantenemos tus fuentes y variables existentes */

@font-face {
  font-family: Titulo;
  src: url(../Fuentes/CHICKEN\ Pie\ Height.ttf);
}

@font-face {
  font-family: Subtitulo;
  src: url(../Fuentes/KGPerfectPenmanship.ttf);
}

@font-face {
  font-family: Texto;
  src: url(../Fuentes/Random\ Wednesday.ttf);
}

@font-face {
  font-family: Principal;
  src: url(../Fuentes/Hey\ Comic.ttf);
}

:root {
  --principal: rgba(146, 99, 153);
  --crema: rgb(255, 250, 228);
  --lavanda: rgba(175, 142, 159);
  --morado-oscuro: rgba(117, 48, 134);
  --rojo: rgba(127, 57, 72);
  --hover: #f0b7e8;
  --blanco: rgb(243, 235, 237);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #18002c, #3a0d46);
  font-family: Arial, sans-serif;
  color: rgb(255, 245, 245);
  min-height: 100vh;
}

button {
  text-decoration: none;
  color: black;
}

/* ========== BANNER ========== */

.banner {
  background-color: rgb(102, 39, 52);
  color: white;
  padding: 2% 10%;
  text-align: center;
  text-shadow: 2px 3px 5px rgb(49, 10, 10);
}

.banner h2 {
  font-family: Titulo, cursive;
  font-size: 3.2em;
  margin-bottom: 10px;
}

.banner p {
  font-family: Texto, cursive;
  font-size: 1.2em;
  margin-bottom: 10px;
}

/* ========== CONTENEDORES PRINCIPALES ========== */

.main-container {
    position: absolute;
    z-index: 10;
    transform: translate(85%,-112%);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 1rem;
  gap: 40px;
}

.niveles-info {
  flex: 1;
  margin: 0;
  padding-right: 2rem;
}

.termometro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 250px;
  text-align: center;
  margin-top: 1rem;
}

/* ========== TERMÓMETRO ========== */

.termometro {
  position: relative;
  width: 60px;
  height: 700px;
  background: #333;
  border-radius: 30px;
  overflow: hidden;
  margin: 20px auto;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.mercury {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-radius: 30px;
  transition: height 0.3s ease, background 0.3s ease;
}

.mercury.zona1 {
  background: linear-gradient(0deg, #4bcffa, #00d2ff);
}

.mercury.zona2 {
  background: linear-gradient(0deg, #ffe066, #ffae00);
}

.mercury.zona3 {
  background: linear-gradient(0deg, #ff6f61, #ff3d00);
}

.mercury.zona4 {
  background: linear-gradient(0deg, #d80032, #7b0000);
}

.nivel {
  font-family: Principal;
  font-size: 1.2rem;
  color: #ffcc00;
  margin-top: 10px;
}

input[type="range"] {
  width: 50%;
  margin-top: 10px;
}

/* ========== NIVELES DE VIOLENCIA ========== */

.info-bloque {
  background-color: transparent;
  padding: 10px 20px;
  border-radius: 10px;
  text-align: right;
}

.info-bloque h3 {
  font-family: Principal;
  font-size: 1.1rem;
  margin-top: 0;
}

.zona1 h3 { color: #00d2ff; }
.zona2 h3 { color: #ffc107; }
.zona3 h3 { color: #ff5722; }
.zona4 h3 { color: #f44336; }

ul {
  list-style: none;
  padding-left: 0;
}

.main-container li {
  font-family: Texto;
  margin: 5px 0;
  font-size: 1.3rem;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    align-items: center;
  }

  .niveles-info,
  .termometro-container {
    width: 100%;
    padding: 0;
    margin-top: 2rem;
  }

  .termometro {
    height: 400px;
  }
}
