:root {
  --vino: #7a0019;
  --vino-oscuro: #590012;
}

/* ======== GENERAL ======== */
body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar, footer {
  background-color: var(--vino);
}

.navbar{
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}

.navbar-logo img {
  height: 50px;
}

.navbar-user {
  display: flex;
  align-items: center; 
  gap: 20px; 
}

.user-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0078d7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.navbar-brand, .navbar-text, footer {
  color: #fff !important;
}



/* ======== BOTONES ======== */
.btn-vino {
  background-color: var(--vino);
  color: #fff;
  transition: all 0.3s ease;
  border: none;
}

.btn-vino:hover {
  background-color: var(--vino-oscuro);
  transform: scale(1.03);
}

.btn-outline-secondary:hover {
  transform: scale(1.03);
}

/* ======== SECCIONES ======== */
.section-title {
  background-color: var(--vino);
  color: white;
  padding: 8px 15px;
  font-weight: bold;
  border-radius: 6px;
}

/* ======== SELECTOR DE OPCIONES ======== */
.selector {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 15px 25px;
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
}

.selector h3 {
  color: var(--vino);
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-align: center;
}

.option {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

input[type="checkbox"] {
  accent-color: var(--vino);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

label {
  cursor: pointer;
}

/* ======== FORMULARIO ======== */
form {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

textarea.form-control {
  resize: vertical;
}

.alert {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1rem;
  }

  form {
    padding: 20px;
  }

  .selector {
    padding: 15px 20px;
  }

  .selector h3 {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .row > div {
    margin-bottom: 15px;
  }

  .btn {
    width: 100%;
    margin-top: 10px;
  }

  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    width: 40px;
    height: 40px;
  }

  h4, h5 {
    font-size: 1rem;
  }

  .selector {
    padding: 10px 15px;
  }

  .selector h3 {
    text-align: left;
    font-size: 0.95rem;
  }
}
/*index*/
/* Estilos para la caja de aviso */
.alerta-aviso {
  background-color: #fff;
  border-left: 6px solid var(--vino);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px 25px;
  max-width: 100%;
  line-height: 1.6;
  text-align: justify;
  width: 100%;
  animation: fadeInUp 1s ease;
}

.alerta-aviso strong {
  color: var(--vino);
}

/* Estilos para el logo */
.logo-aifa {
  height: 60px;
  width: auto;
}

/* Tarjetas responsivas */
.card-reporte {
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-reporte:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Color vino */
.text-vino {
  color: var(--vino);
}

/* Animación para entrada */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
  .alerta-aviso {
    padding: 15px 18px;
  }
  .logo-aifa {
    height: 45px;
  }
  .navbar-brand {
    font-size: 0.9rem;
  }
}
/*notificacion de alerta*/
.modal-content {
  border-radius: 12px;
  padding: 15px;
}

.modal-body h4 {
  font-size: 1.8rem;
}

.modal-footer .btn-vino {
  min-width: 100px;
}

a{
  text-decoration: none;
  text-decoration-line: none;
  color: #fff;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #87ceeb;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  font-size: 16px;
  color: #104656;
}

.navbar-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.user-menu {
  display: none;
  position: absolute;
  top: 49px; /* justo debajo del navbar */
  left: -80px;
  background-color: #2c2c3e;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  min-width: 150px;
  z-index: 10000000;
  padding: 10px 0;
}

.user-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-menu li {
  padding: 10px 15px;
  text-align: left;
}

.user-menu li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: block;
}

.user-menu li:hover {
  background-color: #3d3d5c;
}

.user-menu.show {
  display: block;
}

.btn-back {
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* ======== FOOTER FIJO AL FINAL ======== */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

main {
  flex: 1;
}

footer {
  background-color: var(--vino);
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  margin-top: auto;
}
