* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7f8fc;
    color: #333;
}

/* NUEVO: contenedor general de 3 columnas */
.layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Contenedor central */
.container {
    flex: 1;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Título */
h1 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.highlight {
    color: #9EDBE4;
}

/* Botones a la izquierda, mapa a la derecha */
.buttons-map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

button {
    padding: 1rem;
    border: none;
    background-color: #9EDBE4;
    color: black;
    font-size: 1rem;
    border-radius: 12px;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    min-width: 220px;
}

button:hover {
    background-color: black;
    color: white;
    transform: scale(1.02);
}

.map img {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

/* --- LATERALES NEGROS CON TEXTO VERTICAL --- */
.lateral-left,
.lateral-right {
    width: 240px; /* Ajusta grosor del lateral */
    flex-shrink: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    user-select: none;
    animation: fadeIn 0.8s ease-out forwards;
    border-right: 3px solid #111;
    writing-mode: vertical-rl !important;
}


/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Collage de logos */
.collage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.collage img {
    width: 100%;
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    background: white;
    padding: 0.3rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Frases */
/* .frases {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
    font-style: italic;
    color: #555;
}

.frases li {
    margin-bottom: 1rem;
} */

@import url('https://fonts.googleapis.com/css2?family=Cooper+Black&display=swap');

.frases {
    list-style: none;
    padding: 0;
    font-size: 1.6rem;
    text-align: center;
    font-family: 'Cooper Black', cursive;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 2rem;
    animation: chichaPulse 2s infinite alternate;
    margin-top: 20px;
}

.frases li:nth-child(1) { margin-top: 20px;color: #ff00ff; text-shadow: 2px 2px #ffff00, 4px 4px #00cc44; } /* Fucsia */
.frases li:nth-child(2) { margin-top: 20px;color: #ffff00; text-shadow: 2px 2px #ff00ff, 4px 4px #00cc44; } /* Amarillo */
.frases li:nth-child(3) { margin-top: 20px;color: #00cc44; text-shadow: 2px 2px #ff00ff, 4px 4px #ffff00; } /* Verde */
.frases li:nth-child(4) { margin-top: 20px;color: #ff3366; text-shadow: 2px 2px #00cc44, 4px 4px #ffff00; } /* Rosado neón */
  
@keyframes chichaPulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}



/* Animaciones */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lateral-left {
    animation: slideInLeft 1s ease-out forwards;
}

.lateral-right {
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.3s;
    
   
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding: 2rem;
}
/* cambio de imagen */
.mapa-hover {
    width: fit-content;
    position: relative;
}

.mapa-hover img {
    display: block;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
}

.mapa-hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/mapa-peru-color.png'); /* Imagen que aparece al hacer hover */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.mapa-hover:hover::before {
    opacity: 1;
}

/* mapa del peru y modal */
       /* Estilo mapa del peru */
        path.departamento {
    stroke: white;
    stroke-width: 1;
    fill: #ccc;
  }
        #tooltip {
  position: absolute;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  font-size: 12px;
  display: none;
  z-index: 1000;
}


        svg {
      width: 600px;
      height: auto;
      /* border: 1px solid #ccc; */
    }

    .departamento {
      fill: #cccccc;
      stroke: #333;
      stroke-width: 1;
      transition: fill 0.3s ease;
    }

    .departamento:hover {
      fill: #9EDBE4; /* Cambia de color al hacer hover */
      cursor: pointer;
    }
    .bordeCirculo,.gradiente {
    fill: orange; /* o usa el código hexadecimal como #f39c12 */
  }
  .circulo,.adicional {
    fill: white; /* o usa el código hexadecimal como #f39c12 */
  }
  /* --- Estilo general del modal --- */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6); /* fondo oscuro translúcido */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

/* --- Contenedor interno del modal --- */
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: aparecerModal 0.3s ease-out;
  font-family: 'Segoe UI', sans-serif;
}

/* Animación de aparición */
@keyframes aparecerModal {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Botón de cerrar (X) --- */
.close {
  color: #888;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.close:hover {
  color: #d33;
}

/* --- Título del modal --- */
#tituloRegion {
  margin-top: 0;
  font-size: 1.8em;
  color: #333;
  text-align: center;
  font-weight: bold;
}

.modal-header-line {
  height: 3px;
  background: linear-gradient(to right, #9EDBE4, #00a8ff);
  margin: 10px 0 20px;
  border-radius: 2px;
}

/* --- Filtros (selects y etiquetas) --- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: space-between;
}
.filtros label {
  font-weight: bold;
  color: #444;
}
.filtros select {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1;
  min-width: 150px;
}

/* --- DataTable dentro del modal --- */
#tablaCandidatos {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#tablaCandidatos th {
  background-color: #1c8596;
  color: #fff;
  text-align: left;
  padding: 8px;
}

#tablaCandidatos td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

#tablaCandidatos tr:hover {
  background-color: #f5f5f5;
}

  /* estilo login */
.header-with-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    gap: 1rem;
}

.header-with-login .title {
    flex-grow: 1;
    text-align: left;
}

.header-with-login h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #2c3e50;
    line-height: 1.2;
}

.login-icon {
    font-size: 36px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.login-icon:hover {
    color: #9EDBE4;
}
