*{
    box-sizing:border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body{
    margin:0;
    padding:0;
    background: linear-gradient(70deg,#b83dbd,#2d76ca );
    min-height:100vh;
}

h1{
    text-align:center;
    color:white;
    padding:20px;
}
/* Estilos para el formulario de registro*/
.contenedor{
    width:90%;
    margin:auto;
    padding:25px;
    border-radius:12px;

    background: rgba(255, 255,255, 0.1); 
    backdrop-filter: blur(8px);           
    -webkit-backdrop-filter: blur(8px);

    box-shadow:0 10px 30px rgba(0,0,0,0.5);
    
}
.form-grid{
    display:grid;
    grid-template-columns: 2fr 1fr;
    gap:20px;
}
label{
    font-weight:600;
    margin-top:10px;
    display:block;
    font-weight:bold;
    color:#000000;   
}
input[type=text],
input[type=email],
input[type=date],
select,
textarea{
    width:100%;
    padding:8px;
    border:1px solid #141414;   
    border-radius:8px;
    background:#acacac;         
    transition: all 0.2s ease;  
}
input[type=text]:focus,
input[type=email]:focus,
input[type=date]:focus,
select:focus,
textarea:focus{
    border-color:#c33764;     
    background:#fff3e0;       
    box-shadow:0 0 8px rgba(195,55,100,0.5);
    outline:none;
}
.radios label,
.opciones label{
    font-weight:normal;
    margin-right:15px;
}
input[type=radio],
input[type=checkbox]{
    width:auto;
}

/*Estilos para los botones de guardar, buscar, modificar, eliminar y reporte*/
.botones{
    margin-top:15px;
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
}


button{
    padding:8px 14px;
    border:none;
    border-radius:20px;
    color:white;
    font-weight:bold;
    cursor:pointer;
}

button[name=guardar]{ background:#4CAF50; }
button[name=buscar_btn]{ background:#2196F3; }
button[name=modificar]{ background:#FF9800; }
button[name=eliminar]{ background:#f44336; }

.btn-pdf{
    background:#9C27B0;
    padding:8px 14px;
    border-radius:20px;
    color:white;
    text-decoration:none;
}
/* Estilos para que la tabla se vea bien*/
table{
    width:100%;
    margin-top:25px;
    border-collapse:collapse;
}

th{
    background:#333;
    color:white;
    padding:8px;
}

td{
    border:1px solid #ccc;
    padding:6px;
    text-align:center;
}
.error{
    background:#ffe6e6;
    color:#b30000;
    border:1px solid #ff4d4d;
    padding:10px;
    margin-bottom:15px;
    border-radius:5px;
    font-weight:bold;
}

.ok{
    background:#e6ffe6;
    color:#006600;
    border:1px solid #33cc33;
    padding:10px;
    margin-bottom:15px;
    border-radius:5px;
    font-weight:bold;
}
.contenedor{
    overflow-x:auto;
}
hr{
    border: none;
    height: 1px;
    background-color: #0a0a0a; 
    margin:3px 0;
}

/* CARD PRINCIPAL */
.card{
    max-width:1000px;
    margin:40px auto;
    display:flex;
    border-radius:16px;
    overflow:hidden;
    background:white;
    box-shadow:0 20px 40px rgba(0,0,0,0.4);
}

/* PANEL IZQUIERDO */
.card-left{
    width:35%;
    background:#0f3c5f;
    color:white;
    padding:30px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
}

.card-left img{
    width:120px;
    margin-bottom:15px;
}

.card-left h2{
    margin:10px 0;
}

.card-left p{
    font-size:14px;
}

/* PANEL DERECHO */
.card-right{
    width:65%;
    padding:30px;
    background:#f9f9f9;
}

/* SECCIÓN CONSULTA */
.consulta{
    margin-top:40px;
    background:rgba(255,255,255,0.9);
    padding:25px;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.3);
}


.btn-regresar{
    background-color: #222;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
        text-decoration:none;
    display:inline-block;
}

.btn-regresar:hover{
    background-color: #000;
}

.footer {
  background-color: #2d76ca;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}
.redes a img {
  width: 30px;
  margin: 0 8px;
  transition: transform 0.3s;
}