/* Reset Basico */ 
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* estilo general  */
body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9fafc;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
   
    
}
/* Estilo de Encabezado */
header{
    background-color: #003366;
    color: white;
    padding: 1rem ;
    text-align: center;
}

header h1{
    margin: 0;
    font-size: 1.8rem;
}

/*seccion de menu*/
.menu-principal{
    text-align: center;
    margin: 4rem;
}

.menu-principal h2{
    font-size: 1.6rem;
    color: #003366;
    margin-bottom: 2rem;
}

/*Stilo de botones */

.contenedor-botones{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    
}

.boton-menu{
    background-color: #0055aa;
    color: white;
    border: none;
    border-radius: 100px;
    padding: 1rem 3rem;
    font-size:  1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.2);
  
    
}



.boton-menu:hover{
    background-color: "#0077ff";
    transform: scale(1.05);
}

/*pie de pagina */
footer{
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}



/* ====== FORMULARIO ====== */
.formulario {
  text-align: center;
  margin-top: 3rem;
}

.formulario h2 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 2rem;
}

.form-box {
  display: inline-block;
  background: white;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.form-box label {
  max-width: 500px;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-box input {
 
 max-width: 400px;
  padding: 0.8rem;
  border: 2px solid #003366;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.botones-form {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;

}

.boton-menu {
  background-color: #0055aa;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 3rem;
}

.boton-menu:hover {
  background-color: #0077ff;
  transform: scale(1.05);
}




/* css para pdoer */
/* ===============================
   CONTENEDOR GENERAL
=============================== */
.contenedor-general {
  margin-top: 25px;
  padding: 15px;
  background-color: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* ===============================
   TARJETA DE DATO
=============================== */
.tarjeta-dato {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px 15px;
  margin-bottom: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.tarjeta-dato:hover {
  transform: scale(1.01);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* ===============================
   TABLA GENERAL DE DATOS
=============================== */
.contenedor-tabla {
  overflow-x: auto;
  margin-top: 20px;
}

.tabla-general {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
}

.tabla-general th {
  background-color: #003366;
  color: white;
  padding: 10px;
  text-align: center;
}

.tabla-general td {
  border: 1px solid #ccc;
  padding: 8px;
}

.tabla-general input {
  width: 95%;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #aaa;
}

.tabla-general tr:nth-child(even) {
  background-color: #f2f2f2;
}


/* ===============================
   INPUTS (TEXT, DATE, NUMBER)
=============================== */
.tabla-dato input {
  width: 95%;
  padding: 7px;
  border: 1px solid #bbb;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
}

.tabla-dato input:focus {
  border-color: #171616;
  box-shadow: 0 0 5px rgba(23, 22, 22, 0.3);
}

/* ===============================
   CABECERAS DE SECCIÓN
=============================== */
#seccion-datos h3 {
  color: #171616;
  text-align: center;
  border-bottom: 2px solid #b39ddb;
  padding-bottom: 6px;
  margin-bottom: 15px;
}

#seccion-datos h4 {
  color: #171616;
  margin-top: 25px;
  border-bottom: 1px solid #d1c4e9;
  padding-bottom: 4px;
}


/* ===============================
   TABLA DE DATOS GENERALES
=============================== */
.tabla-general-datos {
  width: 60%;
  margin: 20px auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tabla-general-datos th {
 
  text-align: left;
  padding: 8px 12px;
  width: 40%;
  font-weight: bold;
}

.tabla-general-datos td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  color: #333;
}

.tabla-general-datos tr:nth-child(even) {
  background-color: #f7f9fb;
}

.tabla-general-datos tr:hover {
  background-color: #eef4ff;
}



/*estilos del modal de alert */

/* Fondo oscuro */
.modal-alerta {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-alerta.oculto {
    display: none;
}

/* cuadro del modal */
.modal-contenido {
    width: 380px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    animation: aparecer 0.3s ease;
}

/* encabezado rojo o verde */
.alerta-header {
    padding: 12px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.alerta-header.error {
    background: #c0392b;
}

.alerta-header.exito {
    background: #27ae60;
}

/* cuerpo */
.alerta-body {
    padding: 18px;
    font-size: 15px;
    color: #333;
}

/* footer */
.alerta-footer {
    text-align: center;
    padding: 10px;
}

.btn-alerta {
    background: #27ae60;
    padding: 8px 20px;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}

.btn-alerta:hover {
    background: #1e8449;
}

@keyframes aparecer {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}


/*css de   subir formulario  en excel */

/* Contenedor de cada fila (label + input) */
.fila-form {
  
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500Px;
  margin: 0 auto;
  gap: 20px;              /* separación entre label e input */
  margin-bottom: 1rem;
  
}

/* Ajustar ancho del label */
.fila-form label {
  width: 250px;           /* controla el tamaño del lado izquierdo */
  font-weight: bold;
  text-align: left;      /* etiqueta alineada a la derecha */
white-space: nowrap;
}


.btn-Cerrar{

  width: 100px;
  background-color: red;
  color: white;
  padding: 6px;
  position: absolute;
  right: 10px;
  top: 10px;

}

.header-principal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.info-usuario {
    position: absolute;
    left: 120px; /* ajusta según tu botón */
    top: 10px;
    text-align: right;
    font-size: 0.9rem;
    color: #fff;
}

.info-usuario span {
    font-weight: bold;
}

.info-usuario small {
    opacity: 0.9;
}
