*{
  font-family: 'Poppins';
  margin: 0;
  padding: 0;
}
:root{
  --primary-color: #999;
  --second-color: #E67373;
  --green-color: #0D9A8D;
  --white-color: white;
}

body {
  background-image: url("bgGuadalix.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  overflow-x: hidden;
}
.logo-autoflotas {
  width: 50%;
  margin: auto;
}
.row{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3rem 0;
  align-items: center;
}
.logo-guadalix{
  margin: 0 auto;
  height: 124px;
  width: 296px;
}
h1{
  text-align: center;
}
.card-form{
  width: 50%;
  background: var(--white-color);
  border-radius: .4rem;
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  gap:2rem;
}
form{
  display: flex;
  flex-direction: column;
  gap:1rem;
}
form div {
  display: flex;
  flex-direction: column;
  width: 100%;
}
input,select{
  outline: none;
  padding: .2rem;
}


.container-btn{
  gap: .6rem;
  flex-direction: row;
  justify-content: space-around;
}

.btn{
  padding: .4rem .5rem;
  cursor: pointer;
  transition: transform .4s ease;
  border-radius: .3rem;
  border: solid 1px #999;
  color: black;
  font-size: 0.9rem;
}
.btn:hover{
  transform: scale(1.05);
}
.btn:first-child{
  border: solid 2px var(--green-color);
}
.btn:nth-child(2){
  border: solid 2px #7491A1;
}
.btn:nth-child(3) {
  border: solid 2px var(--second-color);
}
.btn:disabled {
  pointer-events: none;
  opacity: 0.7;
}
.msg-form{
  width: 100%;
  color: var(--second-color);
  text-align: center;
}
.loader {  
  position: fixed;
  animation-delay: 3000ms;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: url('65ba488626025cff82f091336fbf94bb.gif') 50% 50% no-repeat rgb(249,249,249);
  opacity: .8;
}

.msg-error-field {
  color: var(--second-color);
  font-size: 0.8rem;
}

/* MODAL */
.container-modal{
  background: var(--white-color);
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
}

.modal-confirm{
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  margin-top: 10px;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top:2rem;
  font-size: 1.3rem;
}
.container-close{
  margin: .1rem 0;
  display: inline-block;
}
.close {
  cursor: pointer;
  font-size: 1.2rem;
  background-color: var(--white-color);
  color: var(--second-color);
  border: solid 1px var(--second-color);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  transition: background-color .5s ease, color .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.close:hover{
  background-color: var(--second-color);
  color: var(--white-color);
}
.btn-primary-modal{
  background: var(--green-color);
  padding: .2rem .3rem;
  cursor: pointer;
  border-radius: .3rem;
  border: solid 1px #999;
  color: var(--white-color);
  transition: background .4s ease-in-out, color .4s ease-in-out;
}
.btn-primary-modal:hover{
  background: var(--white-color);
  color: var(--green-color);
}
/* MSG STYLE MODAL */
.success-title {
  color: var(--green-color);
}

.error-title {
  color: var(--second-color);
}

/* TABLA DE HORAS Y CITA */
.container-citas{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  height: 100vh;
  flex-wrap: wrap;
}
.data-cita{
  display: flex;
}
.dates{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color:var(--white-color);
  border-radius: .4rem;
  padding: 2rem;
}

.data-date{
  display: grid;
  grid-template-columns: auto auto;
  gap: 1rem;
}

.container-date .solicitar-btn{
  width: 100%;
  height: 4rem;
  font-size: 1.6rem;
  padding:  .2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}
h2{
  color: var(--second-color);
  font-size: 1.6rem;
}

td,
th {
  border: 1px solid black;
  padding: 8px;
  text-align: center;
}

td{
  color: black;
}

th {
  background-color: rgb(249,249,249, 0.9);
  color: var(--second-color);
}

caption{
  color: var(--second-color);
  margin: 1rem 0;
}

.container-no-laborable{
  color: var(--second-color);
}
.solicitar-btn{
  color: black;
}



.info-cita{
  display: flex;
  flex-direction: column;
  gap:.2rem;
}


/* General card styling */
.card {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-family: 'Arial', sans-serif;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.card-header,
.card-footer {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f1f1;
}

.card-footer {
  border-top: 1px solid #f1f1f1;
  border-bottom: none;
}

.card-info {
  font-size: 1.1rem;
  color: #333;
  width: 100%;
}

.card-info span {
  display: block;
  margin: 0.5rem 0;
}

/* Styling for the body and buttons */
.card-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
  padding: 1rem 0;
  overflow-y: auto;
  max-height: 50vh;

}

.time-btn {
  flex: 1 1 calc(20% - 1rem);
  margin: 0.5rem;
  padding: 0.75rem;
  background-color: #f0f4ff;
  color: #999;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.time-btn:hover {
  background-color: #f0f4ff;
  color: black;
}

/* Confirm button */
.btn-confirm-action {
  background-color: var(--green-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color .3s ease;
}

.btn-confirm-action:hover {
  background-color: #fff;
  color: var(--green-color);
  border: 1px solid var(--green-color);;
}
.alert-msg{
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--green-color);
  text-align: center;
}

.btn-danger{
  background: var(--second-color);
  padding: .4rem .5rem;
  cursor: pointer;
  border-radius: .3rem;
  border: solid 1px #999;
  color: var(--white-color);
  transition: background .4s ease-in-out, color .4s ease-in-out;
}
.btn-danger:hover{
  background-color: #fff;
  color: var(--second-color);
  border: 1px solid var(--second-color);
}

.required{
  color: red;
  font-size: 1.2rem;
}

@media (max-width: 540px) {
  body{
    background-image: none;
  }
  .logo-autoflotas {
    width: 80%;
  }
  .row{
    padding: 0;
  }
  .card-form {
    width: 90%;
  }
  input,select {
    font-size: 0.85rem;
  }
  .container-btn {
    flex-direction: column;
  }
}

@media (max-width: 1000px){
  .data-date {
      flex-direction: column;
    }
}

/* Responsive design */
@media (max-width: 768px) {
  .time-btn {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
  .time-btn {
    flex: 1 1 100%;
  }
}