/* =========================
   Estilos Globales
========================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* espacio para header fijo */
    background: url('fondo.jpeg') no-repeat center center fixed;
    background-size: cover;
    box-sizing: border-box;
}

/* =========================
   Header Fijo
========================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent; /* transparente para mostrar fondo */
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0);
    z-index: 1000;
}

.logo {
    height: 60px;
}

/* =========================
   Formularios
========================= */
form {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;           /* ancho flexible en móviles */
    max-width: 600px;     /* no crece demasiado en desktop */
    margin: 20px auto;
    box-sizing: border-box;
}

form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* =========================
   Botones
========================= */
button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    padding: 12px;
    font-size: 16px;
    border-radius: 20px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* =========================
   Grupos de Checkboxes / Radios
========================= */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* =========================
   Ajustes Responsivos
========================= */
@media (max-width: 768px) {
    form {
        width: 95%;
        padding: 15px;
    }

    button {
        font-size: 15px;
        padding: 10px;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    form {
        width: 95%;
        padding: 10px;
    }

    button {
        font-size: 14px;
        padding: 8px;
    }

    .main-header {
        padding: 8px 10px;
    }

    .logo {
        height: 50px;
    }
    /* =========================
   Utilidades
========================= */
.hidden {
    display: none;
}

/* =========================
   Contenedores y Secciones
========================= */
.container {
    margin-top: 30px;
}

.form-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    margin-bottom: 20px;
}

.form-section h4 {
    color: #343a40;
    margin-bottom: 20px;
}

/* =========================
   Botones Personalizados
========================= */
.btn-custom {
    background-color: #007bff;
    color: #fff;
    border-radius: 20px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: #0056b3;
}

/* =========================
   Tablas
========================= */
table {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

}

