:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(150deg, rgb(69, 181, 255), rgb(108, 0, 197),rgb(69, 181, 255), rgb(108, 0, 197));
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}
.fecha {
  margin-top: 130px;
}
.frontmenu{
    width: 100%;
    height: 6%;
    position: fixed;
    background-color: black;
    left: 0%;
    bottom: 0%;
    z-index: 3;
}
.conterformula {
  display: grid;
  place-items: center;
  height: 426px;
  display: block;
  margin-top: 52%;
}
.formula {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 87%;
    min-height: 45vh;
    border-radius: 10px;
    padding: 20px;
    }
.contenedor-botones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 90%;
  max-width: 0px;
  position: relative;
  inset: -5% 0% 0% -37%;
}

button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  color: white;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

button:hover {
  transform: scale(1.03);
}

.butoon {
  width: 100%;
  text-align: center;
  text-decoration: none;
}
#formRegistroUsuario {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  gap: 15px;
  font-family: Arial, sans-serif;
}
.btnRegistrarVeterinaria {
    padding: 11px 6px;
    background-color: #6200ea;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}
.btnCancelar{
    padding: 10px 20px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}
.uploadsBtn{
    padding: 11px 6px;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}
h2{
    color: #ffffff;
    font-size: 14px;
    margin-top: 10px;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}
h3{
    color: #ffffff;
    font-size: 14px;
    margin-top: 10px;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}
.message{
  width: 70%;
  padding: 10px;
  /*background-color: #ffffffa6;*/
  position: relative;
  top: -41%;
  text-align: justify;
}
.bienvenida {
  color: aliceblue;
  font-size: 10px;
  /* Degradado en el texto */
  background: linear-gradient(90deg, #646464, #272727, #646464);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;

  /* Animación de entrada */
  opacity: 0;
  transform: translateY(-40px);
  animation: fadeDown 1.2s ease-out forwards;
}

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

/* ── Modal encargado/gerente ── */
.modal-encargado {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-encargado-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.modal-encargado-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  width: 90%;
  max-width: 420px;
  z-index: 1;
  animation: popInContent 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-encargado-titulo {
  color: #2c3e50 !important;
  font-size: 18px !important;
  font-weight: 700;
  margin: 0 0 18px 0;
  text-align: center;
  font-family: 'Times New Roman', serif !important;
}
.encargado-form-group {
  margin-bottom: 14px;
}
.encargado-label {
  display: block;
  color: #555 !important;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  -webkit-text-fill-color: #555 !important;
}
.encargado-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
  box-shadow: none;
}
.encargado-input:focus {
  border-color: #00c597;
  outline: none;
  box-shadow: none;
}
.encargado-input.input-error {
  border-color: #e74c3c;
}
.encargado-input-readonly {
  background: #f0f0f0 !important;
  color: #666 !important;
  cursor: default;
  letter-spacing: 0.3px;
}
.encargado-hint {
  display: block;
  color: #999;
  font-size: 11px;
  margin-top: 4px;
}
.encargado-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.btn-encargado-guardar {
  flex: 1;
  padding: 12px;
  background: #00c597;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-encargado-cancelar {
  flex: 1;
  padding: 12px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s;
}

/* ── Toast registro exitoso ── */
.toast-expediente-flotante {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.3s ease-out;
}
.toast-expediente-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}
.toast-expediente-content {
  position: relative;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 25px;
  padding: 50px 40px;
  text-align: center;
  min-width: 350px;
  max-width: 450px;
  width: 90%;
  transform: scale(0.8);
  opacity: 0;
  animation: popInContent 0.4s ease-out 0.1s forwards;
}
.toast-expediente-icon {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  animation: bounceIcon 0.8s ease-out 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}
.toast-expediente-titulo {
  color: #2c3e50;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px 0;
  opacity: 0;
  animation: slideUpText 0.5s ease-out 0.4s forwards;
  font-family: 'Times New Roman', serif;
}
.toast-expediente-texto {
  color: #6c757d;
  font-size: 18px;
  margin: 0;
  line-height: 1.6;
  opacity: 0;
  animation: slideUpText 0.5s ease-out 0.6s forwards;
  font-family: 'Times New Roman', serif;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popInContent {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes bounceIcon {
  0%   { transform: scale(0.3) rotate(-180deg); opacity: 0; }
  60%  { transform: scale(1.2);                 opacity: 0.9; }
  100% { transform: scale(1);                   opacity: 1; }
}
@keyframes slideUpText {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeOutOverlay {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.9); }
}