
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}


form {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 20px 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}


h2 {
    color: #004d99; 
    border-bottom: 2px solid #004d99;
    padding-bottom: 5px;
    margin-top: 30px;
    font-size: 1.5em;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}


table[style*="width: 100%"] {
    border: 1px solid #000;
}

table[style*="width: 100%"] tr:first-child td {
    border-top: none;
}

table[style*="width: 100%"] td:nth-child(2) {
    border-left: 1px solid #000;
}

.seccion td {
    background-color: #e9e9e9;
    font-weight: bold;
    text-align: center;
}


.label {
    font-weight: bold;
    color: #555;
    text-align: right;
    width: 50px;
    padding-right: 10px;
    vertical-align: middle;
   
}


input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}


#previewFoto {
    border: 2px solid #ccc;
    border-radius: 4px;
    object-fit: cover;
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto;
}




label {
    display: block;
    margin-bottom: 5px;
}

label input[type="radio"],
label input[type="checkbox"] {
    margin-right: 5px;
}


button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}


p {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #007bff;
  border-radius: 50%;
  animation: girar 1s linear infinite;
  margin: 0 auto;
}
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  color: #fff;
  font-size: 18px;
}
#mensajeExito {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: #28a745;
  color: #fff;
  padding: 15px 25px;
  border-radius: 6px;
  font-weight: bold;
  display: none;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: slideIn 0.5s ease;
}
#loader p {
  color: #04cff3; /* rojo */
  font-weight: bold;
}

    @keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(50px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}


@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    form {
        padding: 15px;
    }
    .label {
        text-align: left;
        width: 100%;
        display: block;
        margin-bottom: 5px;
    }
    td {
        display: block;
        width: 100%;
    }
    table, tr {
        display: block;
        width: 100%;
    }
    .seccion td {
        display: table-cell;
        width: auto;
    }
}