body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    padding: 20px;
    color: #333;
    margin: 0;
}

/* Contenedor principal */
.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Botón volver */
.btn-back {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-back:hover {
    background-color: #5a6268;
}

.btn-submit {
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #004494;
}

/* Título principal */
h1 {
    color: #0056b3;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Título ANEXO 8 */
h3 {
    color: #0056b3;
    font-size: 22px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Subtítulo */
h4 {
    color: #333;
    font-size: 17px;
    margin-top: 25px;
    margin-bottom: 5px;
}

/* Formulario */
form {
    width: 100%;
}

/* Etiquetas */
form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* Campos de texto */
form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Efecto al seleccionar un campo */
form input[type="text"]:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

/* Botón generar */
form button {
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #004494;
}

/* Evita que los <br> del PHP generen espacios exagerados */
form br {
    display: none;
}

/* =========================================================
   ESTILOS PARA ANEXO 4
   ========================================================= */

/* Contenedor principal del Anexo 4 */
#container_a4 {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Título principal */
#container_a4 h1 {
    color: #0056b3;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Título de cada sección */
#container_a4 h4 {
    color: #0056b3;
    font-size: 18px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
}

/* Labels */
#container_a4 form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* Todos los campos */
#container_a4 form input[type="text"],
#container_a4 form input[type="number"],
#container_a4 form input[type="date"],
#container_a4 form input[type="time"],
#container_a4 form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Textareas */
#container_a4 form textarea {
    resize: vertical;
    min-height: 45px;
}

/* Efecto al seleccionar campos */
#container_a4 form input:focus,
#container_a4 form textarea:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

/* Campos precargados */
#container_a4 .precargado {
    background-color: #eef4ff;
}

/* Campos fijos */
#container_a4 .fijo {
    background-color: #e9ecef;
    color: #495057;
}

/* Texto aclaratorio debajo de "Lugar a visitar" */
#container_a4 form span {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* Párrafo explicativo del ejemplo */
#container_a4 form > p {
    background-color: #fab4b4;
    border-left: 4px solid #b30000;
    padding: 12px;
    margin: 25px 0;
    color: #220000;
    font-size: 13px;
    line-height: 1.5;
}

/* Botón final */
#container_a4 form button {
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#container_a4 form button:hover {
    background-color: #004494;
}

/* Ocultar los <br> para que el espaciado lo controle el CSS */
#container_a4 form br {
    display: none;
}

/* Adaptación para celulares */
@media (max-width: 650px) {

    body {
        padding: 10px;
    }

    #container_a4 {
        padding: 20px;
    }

    #container_a4 h1 {
        font-size: 20px;
    }

    #container_a4 h4 {
        font-size: 17px;
    }
}

