body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}

header, footer {
    background: #0056b3;
    color: #fff;
    padding: 15px;
    text-align: center;
}

h1, h2 {
    margin: 0 0 10px 0;
}

main {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    background: #fff;
}

.politica p {
    margin-bottom: 15px;
    text-align: justify;
}

.politica ul {
    margin-left: 30px; /* más sangría */
    list-style-type: disc; /* viñeta en forma de punto */
}

.empresa-lista {
    list-style: none;
    padding: 0;
}

.empresa-lista li {
    margin: 10px 0;
}

.empresa-lista a {
    text-decoration: none;
    background: #007bff;
    color: white;
    padding: 10px 15px;
    display: inline-block;
    border-radius: 5px;
}

.empresa-lista a:hover {
    background: #0056b3;
}

footer a {
    color: white;
    text-decoration: none;
}

/* Diseño responsive */
@media (max-width: 600px) {
    main {
        padding: 10px;
    }
    .empresa-lista a {
        display: block;
        text-align: center;
    }
}

/* Botón de regreso al inicio */
.btn-regresar {
    margin-right: 15px;
    text-decoration: none;
    background: #007BFF;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-regresar:hover {
    background: #0056b3;
}

.formulario {
    max-width: 500px;
    margin: auto;
    padding: 20px;
}

.formulario form {
    display: flex;
    flex-direction: column;
}

.formulario label {
    margin-top: 10px;
    font-weight: bold;
}

.formulario input, 
.formulario textarea, 
.formulario button {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.formulario button {
    background-color: #007BFF;
    color: white;
    border: none;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.formulario button:hover {
    background-color: #0056b3;
}

.aviso-legal {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    font-size: 13px;
    line-height: 1.5;
    text-align: justify;
    border-radius: 6px;
}
.aviso-legal p {
    margin-bottom: 10px;
}

/* Estilo de campos */
form input, form textarea {
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Campo válido */
form input:valid, form textarea:valid {
    border-color: #28a745; /* verde */
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

/* Campo inválido */
form input:invalid, form textarea:invalid {
    border-color: #dc3545; /* rojo */
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

/* Mensajes personalizados */
form input:invalid:focus::placeholder,
form textarea:invalid:focus::placeholder {
    color: #dc3545;
    opacity: 0.8;
}
