body {
    font-family: 'Poppins', sans-serif;
    background-image: url('fondo1.jpg');
    background-size: cover;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h2, h5, p {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

form {
    background: transparent;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 40px;
    color: #364db5c8;
    margin-bottom: 20px;
}

h5 {
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;
    color: #140b56c8;
    margin-bottom: 25px;
}

p {
    color: rgb(20, 18, 80);
    margin-bottom: 30px;
    font-style: italic;
}

label {
    font-weight: 700;
    margin: 16px 0 10px;
    color: #051742;
    display: block;
    text-align: center;
}

.required::after {
    content: " *";
    color: red;
}

input, textarea {
    width: 95%;
    padding: 12px;
    margin-top: 12px;
    border: 0.5px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9c8;
    outline: none;
    font-size: 14px;
    text-align: center;
}

input:focus, textarea:focus {
    border-color: #007bff;
    background: #fff;
}

button {
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
    transition: background 0.3s;
    width: 95%;
    text-align: center;
}

button:hover {
    background: #0056b3;
}

footer {
    text-align: center;
    background-color: white;
    position: static;
    bottom: 0;
    width: 100%;
    height: 5rem;
    margin-top: 4%;
}

footer p {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    color: rgb(0, 0, 0);
    font-family: Arial, sans-serif;
}

footer img {
    height: 50px;
    object-fit: cover;
    padding: 3px 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    font-size: 18px;
    font-family: "Roboto Mono", monospace;
}

.breadcrumb li {
    margin: 0 5px;
}

.breadcrumb li a {
    text-decoration: none;
    color: #2563eb;
    font-size: 18px;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 5px;
    color: #333;
}

.button-container {
    text-align: center;
    margin: 20px;
}

.back-button {
    background: #007BFF;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    min-width: 150px; /* Asegura un ancho mínimo para el botón */
    display: inline-block; /* Asegura que el botón se ajuste al contenido */
}

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

@media (max-width: 480px) {
    body {
        font-family: 'Poppins', sans-serif;
        background-image: url('../css/fondo_movil.webp');
        background-size: cover;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 100vh;
    }

    h2, h5, p {
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
    }

    form {
        background: transparent;
        padding: 0px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 100%;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h2 {
        font-size: 28px;
        color: #364db5c8;
        margin-bottom: 15px;
        text-align: center;
    }

    h5 {
        font-size: 18px;
        font-family: Arial, Helvetica, sans-serif;
        color: #140b56c8;
        margin-bottom: 20px;
        text-align: center;
    }

    p {
        color: rgb(20, 18, 80);
        margin-bottom: 20px;
        font-style: italic;
        text-align: center;
    }

    label {
        font-weight: 700;
        margin: 12px 0 8px;
        color: #051742;
        display: block;
        text-align: center;
    }

    .required::after {
        content: " *";
        color: red;
    }

    input, textarea {
        width: 80%;
        padding: 10px;
        margin-top: 12px;
        border: 0.5px solid #ccc;
        border-radius: 5px;
        background: #f9f9f9c8;
        outline: none;
        font-size: 14px;
        text-align: center;
    }

    input:focus, textarea:focus {
        border-color: #007bff;
        background: #fff;
    }

    button {
        padding: 12px;
        background: #007bff;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 20px;
        font-size: 16px;
        transition: background 0.3s;
        width: 95%;
        text-align: center;
    }

    button:hover {
        background: #0056b3;
    }

    footer {
        text-align: center;
        background-color: white;
        position: static;
        bottom: 0;
        width: 100%;
        height: 6rem;
        margin-top: 6%;
    }

    footer p {
        font-size: 12px;
        font-weight: bold;
        margin: 0;
        color: rgb(0, 0, 0);
        font-family: Arial, sans-serif;
    }

    footer img {
        content: url("../footer-mob.webp");
        max-height: 100px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .back-button {
        min-width: 120px; /* Ajuste para pantallas pequeñas */
        font-size: 14px;
        padding: 8px 16px;
    }
}