/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilo general */
body {
  font-family: "Lato", sans-serif;
  background-image: url("/img/fondo.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ✅ mantiene el fondo fijo */
  color: #333;
}

.header_cont {
    text-align: center;
}

header {
    background-color: #f8931f;
    margin-bottom: 30px;
}

.header_img {
    max-width: 200px;
}

/* Formularios */
form {
  max-width: 500px;
  margin: 40px auto;
  background: #121212;
  padding: 30px;
  border: solid 2px #f8931f;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: #ffffff;
}

h3, h4 {
    color: #ffffff;
    text-align: center;
}

.label_choice {
  text-align: left;
  color: #ffffff;
  display: block;
  margin: 8px 0;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
textarea {
  background-color: #121212;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #f8931f;
  border-radius: 8px;
}



input[type="text"],
input[type="password"] {
  background-color: #121212;
  color: #ffffff;
}

textarea {
  color: #ffffff;
  resize: vertical;
}

p {
  color: #ffffff;
  margin: 10px;
}

li {
  color: #ffffff;
  margin: 5px;
  padding: 5px;
  list-style-type: none;
}

/* Botones */
button {
  background: #f8931f;
  color: #121212;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid #f8931f;
  cursor: pointer;
  margin: 20px;
  font-size: 16px;
  transition: all 0.5s ease;
}

button:hover {
  color: #ffffff;
  background: #121212;
}

/* Botones múltiples */
button[name="sucursal"],
button[name="horario"] {
  width: 48%;
  margin: 10px 1%;
  font-size: 16px;
}

/* Gráficos */
canvas {
  text-align: center;
  color: #ffffff;
  max-width: 600px;
  margin: 30px auto;
  display: block;
}


.est_cont {
    background-color: #121212;
    padding: 10px;
    border: solid 5px #f8931f;
    border-radius: 5px;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#loader img {
  max-width: 150px;
  animation: pulse 1.6s infinite ease-in-out;
}

.loader-text {
  margin-top: 20px;
  color: #ffffff; /* fallback */
  font-size: 18px;
  opacity: 0;
  transform: translateY(20px);
  animation: riseUp 0.5s ease forwards;
  animation-delay: 0.5s;
}

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  position: relative;
  margin: 2px;
  transition: border-color 0.3s;
}

input[type="radio"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #f8931f;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease-in-out;
  border-radius: 2px;
}

input[type="radio"]:checked::before {
  transform: translate(-50%, -50%) scale(1); 
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes riseUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    background-image: url("/img/fondomovil.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .header_img {
    max-width: 120px;
  }

  form {
    padding: 20px;
    margin: 20px 10px;
    width: 95%;
  }

  h2, h3, h4 {
    font-size: 18px;
  }

  button {
    width: 100%;
    margin: 10px 0;
    font-size: 14px;
    padding: 10px;
  }

  input[type="text"],
  input[type="password"],
  textarea {
    font-size: 14px;
  }

  button[name="sucursal"],
  button[name="horario"] {
    width: 100%;
    margin: 10px 0;
  }

  canvas {
    width: 100% !important;
    max-width: 100%;
  }

  .est_cont {
    padding: 8px;
    margin: 0 5px;
  }
}

/* Breakpoint tablet (601px a 900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .header_img {
    max-width: 150px;
  }

  form {
    padding: 25px;
    margin: 30px auto;
    width: 90%;
  }

  button[name="sucursal"],
  button[name="horario"] {
    width: 48%;
    font-size: 15px;
  }

  h2 {
    font-size: 22px;
  }

  canvas {
    max-width: 90%;
  }
}

/* Breakpoint desktop pequeño (901px a 1200px) */
@media (min-width: 901px) and (max-width: 1200px) {
  form {
    width: 80%;
    max-width: 500px;
  }

  .header_img {
    max-width: 180px;
  }

  button {
    font-size: 15px;
  }
}
