/* --- ESTILOS DE LA CABECERA CON IMAGEN Y TEXTO --- */
#logo-header-container {
    width: 100%;
    height: 120px; /* Altura del contenedor de la cabecera */
    
    /* Usamos Flexbox para alinear la imagen y el texto horizontalmente */
    display: flex;
    align-items: center;
    
    padding: 0 5%;
    box-sizing: border-box;
}

/* Estilo para la imagen (el logo) */
#logo-principal {
    max-width: 100%; 
    height: auto; 
    max-height: 100px; /* Establece una altura máxima fija para que no sea demasiado alta */
    width: auto;
    margin-right: 20px;
}

/* Contenedor del Título y la Fecha */
#header-textos {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Estilo del título principal (Votación Junta Directiva CPPA Jaén) */
.header-principal {
    font-size: 1.8em; 
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: #333333;
}

/* Estilo del subtítulo de la fecha (29 de noviembre de 2025) */
.header-fecha {
    font-size: 1em; 
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 0;
    color: #555;
}

/* --- ESTILOS GENERALES Y FORMULARIO --- */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8; 
    
    display: flex;
    flex-direction: column; /* Apila el header y el formulario verticalmente */
    align-items: center;
    min-height: 100vh;
    margin: 0;
    width: 100%;
}

form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
    width: 100%;
    max-width: 450px; 
    margin-top: 30px; 
    margin-bottom: 30px;
}

/* Agrupar etiquetas e inputs */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    margin-top: 15px;
}

/* Campos de texto y contraseña */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4CAF50; 
    outline: none;
}

/* Área de votación (Radio buttons) */
.opcion-voto {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.opcion-voto label {
    display: inline-block;
    margin-right: 15px;
    font-weight: 400;
    cursor: pointer;
    padding: 5px;
}

input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.1);
}

/* Estilo para el botón de enviar */
input[type="submit"] {
    background-color: #4CAF50; 
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 30px;
    font-weight: 600;
}

input[type="submit"]:hover {
    background-color: #45a049;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

/* --- Media Query para Dispositivos Móviles (Adaptabilidad) --- */
@media (max-width: 600px) {
    /* Ajustes para la cabecera en móvil */
    #logo-header-container {
        height: 100px; /* Reduce aún más la altura en móvil */
        padding-left: 3%;
        align-items: center;
    }
    
    #logo-principal {
        max-height: 80px; /* Reduce la altura máxima de la imagen */
    }
    
    .header-principal {
        font-size: 1.4em; /* Hace el título más pequeño para caber */
    }
    .header-fecha {
        font-size: 0.9em;
    }
    
    /* Ajustes del formulario */
    form {
        padding: 20px;
        margin: 20px; 
        width: 90%;
        max-width: none; 
    }

    body {
        font-size: 16px;
    }

    input[type="submit"] {
        padding: 18px;
        font-size: 16px;
    }
}