:root {
    --primary-color: #2e3469;
    --secondary-color: #2d2d83;
    --tertiary-color: #1d71b9;
    --letra: #000000;
    --blanco: #fff9f9;
}

* {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
a {
  text-decoration: none;
  color: #ffffff
}
/* MENSAJES */
.alert {
  width: 80%;
  /* height: 10vw; */
  padding: 12px;
  position: fixed;
  top: 60vw;
  left: 8vw;
  border-radius: 6px;
  margin-bottom: 10px;
  color: white;
  font-size: 5vw;
  font-weight: 600;
  text-align: center;
  z-index: 5;
}
.alert {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.alert.hide {
    opacity: 0;
    transform: translateY(-10px);
}
.alert-success {
    background-color: #28a745e3;
}

.alert-error {
    background-color: #dc3545eb;
}

.alert-warning {
    background-color: #ecc808ed;
    color: #000;
}

.alert-info {
    background-color: #17a2b8;
}

/* FIN MENSAJES */

/* INICIO FORMULARIO CREAR CASO */
.banner {
    width: 100%;
    color: white;
}
.img {
    width: 100%;
    height: auto;
    display: block;
}
.Crear {
    width: 100%;
    padding: 3vw 0;
    /* background-color: var(--blanco); */
    background: linear-gradient(135deg, #fff9f9 0%, #e8eef8 40%, #1d71b9 100%);
    text-align: center;
}
.Crear-title {
    font-size: 5vw;
    margin: 2vw 1vw;
    color: var(--secondary-color);
    margin-bottom: 7vw;
}
.Crear-text {
    width: 80%;
    font-size: 4vw;
    margin: 2vw auto;
    color: var(--letra);
}
.Crear-formu {
    padding: 5vw 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.Crear-nom,
.Crear-ofi,
.Crear-tipo,
.Crear-tipo,
.Crear-num,
.Crear-ob {
    width: 95%;
    display: flex;
    flex-direction: column;  
    width: 100%;              
    align-items: flex-start;
    margin-bottom: 5vw;
}
.Crear label {
    font-size: 5vw;
    color: var(--letra);
    margin-left: 9vw;
}

.input-f1 {
    width: 80%;
    height: 7vw;
    padding: 1vw;
    margin: 1vw auto;
    font-size: 4vw;
    border: 2px solid #c7c7c7;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}
.select-f1 {
    width: 80%;
    height: 10vw;
    padding: 1vw;
    margin: 1vw auto;
    font-size: 5vw;
    border: 2px solid #c7c7c7;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease-in-out;
}
.Crear-tipo,
.Crear-ofi, option{
    font-size: 2vw;
}
.input-f1:focus,
.select-f1:focus,
.text-input:focus {
    border-color: var(--tertiary-color);
    box-shadow: 0 0 6px rgba(0, 110, 255, 0.35);
    outline: none;
}
.text-input {
    width: 80%;
    height: 9vw;
    padding: 2vw;
    margin: 1vw auto;
    font-size: 4vw;
    border-radius: 8px;
    background: #fafafa;
    border: 2px solid #c7c7c7;
}
.Crear-button {
    width: 50%;
    padding: 2vw;
    font-size: 4vw;
    color: white;
    background-color: var(--tertiary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 5vw;
}
/* QUERY RESPONSIVE */
/* Tablet:  */
@media screen and (min-width: 650px) and (max-width: 1199px) {
  .img {
    height: 210px;
  }
  .Crear {
    padding: 32px 0; 
  }
  .Crear-inner {
    max-width: 900px;
    padding: 0 20px;
  }
  .Crear-title {
    font-size: 28px; 
    margin-bottom: 48px;
    margin-top: 16px;
  }
  .Crear-text {
    width: 70%;     
    font-size: 21px; 
    margin: 12px auto 24px;
  }
  .Crear-formu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 28px 0;
  }
  .Crear-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 16px;                     
    width: 100%;
    justify-items: center;
  }
  .Crear-nom,
  .Crear-ofi,
  .Crear-tipo,
  .Crear-num {
    width: 43%;        
    margin: 10px 15px;
  }
  .Crear-ob {
    width: 90%;        
    margin: 10px 15px;
  }
  .Crear-ob input{
    width: 90%;
    margin: 8px auto;
  }
  .Crear-nom input,
  .Crear-ofi select,
  .Crear-tipo select,
  .Crear-num input{
    width: 92%;
    margin: 5px auto;
    font-size: 14px;  
    padding: 10px;    
    height: auto;
  }
  .Crear-ofi select,
  .Crear-tipo select {
    min-height: 30px;
  }
  .Crear-nom input,
  .Crear-num input {
    min-height: 20px;
  }
  .Crear label {
    font-size: 17px;
    margin-left: 10px;
  }
  .Crear-button {
    width: 40%;      
    max-width: 320px;   
    padding: 12px 16px; 
    font-size: 15px;    
    margin: 24px auto;
  }
}

/* Desktop: >= 1200px (PC y pantallas grandes) */
@media screen and (min-width: 1200px) {
  .img {
    height: 325px;
  }
  .Crear {
    width: 100%;
    padding: 40px 0;
  }
  .Crear-title {
    font-size: 48px;
    margin-bottom: 56px;
  }
  .Crear-text {
    width: 60%;
    font-size: 35px;
    margin-bottom: 28px;
  }
  .Crear-formu {
    gap: 20px;
    padding: 36px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
  }
  .span-2 { grid-column: span 2; }
  .Crear-nom,
  .Crear-ofi,
  .Crear-tipo,
  .Crear-num {
    width: 43%;    
    margin-bottom: 16px;
  }
  .Crear-ob {
    width: 90%;    
    margin: 15px auto;
  }
  .input-f1 {
    width: 92%;
    font-size: 30px;
    padding: 12px;
    height: 53px;
  }
  .select-f1 {
    width: 92%;
    font-size: 30px;
    padding: 12px;
    height: 80px;
  }
  .text-input {
    width: 90%;
    font-size: 27px;
    padding: 12px;
    height: 55px;
  }
  .Crear label {
    font-size: 34px;
    margin-left: 12px;
  }
  .Crear-button {
    width: 30%;           
    max-width: 280px;     
    padding: 20px;   
    font-size: 28px;     
    margin: 28px auto;
  }
}
/* FIN FORMULARIO CREAR CASO */

/* INICIO FORMULARIO CARGAR IMAGENES */
.Cargar {
    width: 100%;
    padding: 3vw 0;
    background: linear-gradient(135deg, #fff9f9 0%, #e8eef8 40%, #1d71b9 100%);
    text-align: center;
}
.Cargar-title {
    font-size: 6vw;
    margin: 8vw 1vw 2vw;
    color: var(--secondary-color);
}
.Cargar-formu {
    padding: 4vw 1vw;
    width: 94%;
    min-height: 85vh;
    margin: 1vw auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cont {
    font-size: 5vw;              
    font-weight: 600;
    color: #ffffff;                 
    background: rgb(45 45 131 / 87%);
    padding: 10px 22px;
    border-radius: 12px;          
    backdrop-filter: blur(6px);     
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    display: inline-block;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}
.Cargar-formu-indi {
  width: 70%;
  font-size: 4vw;
  margin: 8vw 1vw 1vw;
  color: var(--secondary-color);
}
.Cargar-formu-indi-d {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #d0d0d0;     
    border-radius: 12px;          
    box-shadow:
        inset 0 4px 10px rgba(0, 0, 0, 0.18),
        inset 0 -4px 10px rgba(0, 0, 0, 0.12);
    transition: 0.3s ease;
}

/* Media Query Tablet: 600px - 1199px */
@media screen and (min-width: 650px) and (max-width: 1199px) {
  .Cargar {
    padding: 32px 0;
  }
  .Cargar-title {
    font-size: 28px;
    margin: 48px 16px 20px;
  }
  .Cargar-formu {
    padding: 28px 20px;
    width: 90%;
    margin: 16px auto;
  }
  .cont {
    font-size: 18px;
    padding: 14px 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
  .Cargar-formu-indi {
    width: 70%;
    font-size: 18px;
    margin: 48px 16px 16px;
  }
  .Cargar-formu-indi-d {
    width: 80%;
    margin: 24px auto;
    padding: 24px;
    border-radius: 12px;
  }
}
/* Media Query Desktop: >= 1200px */
@media screen and (min-width: 1200px) {
  .Cargar {
    padding: 40px 0;
  }
  .Cargar-title {
    font-size: 40px;
    margin: 56px 16px 28px;
  }
  .Cargar-formu {
    padding: 36px 24px;
    width: 85%;
    margin: 20px auto;
  }
  .cont {
    font-size: 24px;
    padding: 16px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
  .Cargar-formu-indi {
    width: 65%;
    font-size: 24px;
    margin: 56px 16px 20px;
  }
  .Cargar-formu-indi-d {
    width: 75%;
    margin: 28px auto;
    padding: 28px;
    border-radius: 14px;
  }
}

/* FORMULARIO CARGAR IMAGENES */

/* INICIO FORMULARIO CASO COMPLETADO */
.Cont {
  width: 100%;
  margin: 18vw 0;
}
.Complet {
    width: 90%;
    margin: 3vw auto 3vw;
    padding-bottom: 4vw;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.75);
    text-align: center;
    font-family: 'Arial', sans-serif;
}
.Cromplet-title {
    font-size: 1.5rem;
    color: #22379d;
    margin-bottom: 14px;
    font-weight: 600;
}
.Complt {
    font-size: 1.3rem;
    margin: 4vw 6vw;
    font-weight: 600;
    color: #17a2b8;
}
.aprobado{
  color: #28a745;
  /* color: #20ba43; */
}
.espera {
  color: #1d71b9
}
.rechazado{
  /* color: #dc3545; */
  color: #e2172a;
}
.warning {
  color: #ffc107;
  /* background-color: #ecc808ed; */
  /* color: #000; */
}
.Complet-text {
  width: 70%;
  margin: 2vw auto;
  font-size: 0.95rem;
  color: #303549;
  line-height: 1.4;
}
.Complet-btn {
  width: 50%;
  padding: 2vw;
  font-size: 4vw;
  color: white;
  background-color: var(--tertiary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 5vw auto;
}
.complet-btn a {
  color: #ffffff;
}
.buton {
    display: inline-block;
    margin-top: 3vw;
    padding: 2vw 4vw;
    background-color: #1d71b9;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.buton a {
  font-size: 1rem;
  color: #ffffff;
}
.loader-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.loader-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #3498db; /* color inicial */
  animation: jump 1.2s infinite ease-in-out, colorChange 2s infinite alternate;
}
.loader-dots span:nth-child(1) { animation-delay: 0s, 0s; background-color: #2d2d83; }
.loader-dots span:nth-child(2) { animation-delay: 0.15s, 0.15s; background-color: #114f85; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s, 0.3s; background-color: #1d71b9; }
.loader-dots span:nth-child(4) { animation-delay: 0.45s, 0.45s; background-color: #aed6f1; }
@keyframes jump {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
}
@keyframes colorChange {
  0% { background-color: #2d2d83; }
  25% { background-color: #114f85; }
  50% { background-color: #1d71b9; }
  75% { background-color: #aed6f1; }
  100% { background-color: #2d2d83; }
}

/* Media Query Tablet: 600px - 1199px */
@media screen and (min-width: 650px) and (max-width: 1199px) {
  .Cont {
    width: 100%;
    margin: 80px 0;
  }
  .Complet {
    width: 85%;
    margin: 28px auto;
    padding-bottom: 32px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  }
  .Cromplet-title {
    font-size: 1.8rem;
    margin-bottom: 18px;
    margin-top: 18px;
  }
  .Complet-response {
    font-size: 1.3rem;
    margin: 16px 0;
  }
  .Complet-text {
    width: 80%;
    margin: 16px auto;
    font-size: 1.05rem;
    line-height: 1.5;
  }
  .loader-dots span {
    width: 14px;
    height: 14px;
  }
}

/* Media Query Desktop: >= 1200px */
@media screen and (min-width: 1200px) {
  .Cont {
    width: 100%;
    margin: 100px 0;
  }
  .Complet {
    width: 80%;
    margin: 32px auto;
    padding-bottom: 40px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  }
  .Cromplet-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    margin-top: 20px;
  }
  .Complet-response {
    font-size: 1.5rem;
    margin: 20px 0;
  }
  .Complet-text {
    width: 75%;
    margin: 20px auto;
    font-size: 1.15rem;
    line-height: 1.6;
  }
  .loader-dots {
    gap: 14px;
    margin: 28px 0;
  }
  .loader-dots span {
    width: 16px;
    height: 16px;
  }
}
/* CONSULTA MANUAL */
.Consulta {
  width: 100%;
  padding: 15vw 0 3vw;
  background: linear-gradient(135deg, #fff9f9 0%, #e8eef8 40%, #1d71b9 100%);
  text-align: center;
}
.Consulta-title {
  width: 80%;
  font-size: 1.7rem;
  margin: 2vw auto;
  color: var(--secondary-color);
  margin-bottom: 3vw;
}
.Consulta-text {
  width: 80%;
  font-size: 1.3rem;
  margin: 1vw auto 4vw;
  color: var(--letra);
}
.Consulta-formu {
  padding: 3vw 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.Consulta-busq,
.Consulta-num {
  width: 90%;
  display: flex;
  flex-direction: column;  
  width: 100%;              
  align-items: flex-start;
  margin-bottom: 4vw;
}
.Consulta label {
  font-size: 4vw;
  color: var(--letra);
  margin-left: 9vw;
}
.input-f1 {
  width: 80%;
  height: 7vw;
  padding: 1vw;
  margin: 1vw auto;
  font-size: 4vw;
  border: 2px solid #c7c7c7;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}
.input-f1:focus {
  border-color: var(--tertiary-color);
  box-shadow: 0 0 6px rgba(0, 110, 255, 0.35);
  outline: none;
}
.Consulta-button {
  width: 50%;
  padding: 2vw;
  font-size: 4vw;
  color: white;
  background-color: var(--tertiary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 5vw;
}
.Consulta-cont {
  width: 80%;
    background: #ffffff;
    padding: 2vw 3vw;
    border-radius: 14px;
    border-left: 8px solid #2d2d83;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 7vw auto 10vw;
    font-family: "Segoe UI", Roboto, sans-serif;
}
.Consulta-cont .aprobado{
  color: #28a745;
  /* color: #20ba43; */
}
.Consulta-cont .espera {
  color: #1d71b9
}
.Consulta-cont .rechazado{
  /* color: #dc3545; */
  color: #e2172a;
}
.Consulta-cont .warning {
  color: #ffc107;
}
.Consulta-cont h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: #1F3A60;
    font-weight: 600;
}

.Consulta-cont p {
    margin: 0;
    font-size: 1.3rem;
    color: #5A6A85;
    line-height: 1.5;
}
.Consulta-texto {
  width: 90%;
  font-size: 1.6rem;
  margin: 1vw auto 4vw;
  color: var(--blanco);
}
.Consulta-fon {
  width: 100%;
    box-sizing: border-box;
    /* margin: 2vw auto; */
    display: flex;
    padding: 4vw;
    flex-direction: column;
    /* padding: 5vw; */
    background-color: #0d1775a1;
}
/* FIN CONSULTA MANUAL */
/* CARGA EXCEL */
.Cont-spiner {
  background-color: var(--blanco);
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.title-spiner {
  color: var(--primary-color);
  margin-bottom: 10px;
}
.text-spiner {
  color: var(--secondary-color);
  margin-bottom: 30px;
}
.spinner {
  width: 100px;
  height: 100px;
  border: 10px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite, colorChange 2s infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes colorChange {
    0%   { border-top-color: var(--primary-color); }
    33%  { border-top-color: var(--secondary-color); }
    66%  { border-top-color: var(--tertiary-color); }
    100% { border-top-color: var(--primary-color); }
}
/* FIN FORMULARIO CASO COMPLETADO */