/* ======== ESTILOS GENERALES ======== */
body {
    font-family: Arial, sans-serif;
    background-color: #F5F6FA;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ======== CABECERA ======== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FAFAFA;
    padding: 20px 25PX;
    width: 100%;
    position: relative;
    min-height: 13vh;
    border-bottom: 5px solid #0572AA;
}

/* Logo a la izquierda */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    width: 150px;
    height: auto;
}

/* Título centrado */
.titulo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
}

.titulo {
    font-size: 32px;
    color: #3f3f3f;
    font-weight: bold;
    text-align: center;
}

/* Contenedor del formulario */
.container {
    width: 40%;
    margin: 50px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px 0 #0006;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.container:hover {
      transform: translateY(-5px); /* 👈 se mueve un poco hacia arriba */
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* Campos de entrada */
label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

input, select {
    padding: 8px;
    margin-bottom: 25px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    font-size: 16px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

/* Documento */
.documento-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.documento-container input {
    width: 160px;
    padding: 5px;
}

.documento-container span {
    font-size: 24px;
    font-weight: bold;
}

/* Botones */
button {
    padding: 10px 15px;
    border: none;
    color: white;
    background: #002b5e;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    width: 50%;
    margin-top: 15px;
}

button:hover {
    background: #001a3d;
}

/* Resultado */
.result {
    margin-top: 20px;
    font-weight: bold;
}

/* ======== BOTONES DESCARGA (GENERADOS JS) ======== */
.boton-descarga {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    color: white;
    cursor: pointer;
}

.boton-xml { background-color: #22641b; }
.boton-cdr { background-color: #810d23; }
.boton-pdf { background-color: #0077B6; }

#contenedor-botones {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ======== BLOQUE DESCARGA DE ACTUALIZACIÓN ======== */
.container-descarga {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    margin: 80px auto;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.container-descarga label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: block;
}

.container-descarga .btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.container-descarga .btn-success {
    background-color: #28a745;
    border: none;
}

.container-descarga .btn-success:hover {
    background-color: #218838;
}

.container-descarga .btn-dark {
    background-color: #333;
    border: none;
}

.container-descarga .btn-dark:hover {
    background-color: #000;
}

.container-descarga i {
    font-size: 1.2rem;
}

/* ======== PIE DE PÁGINA ======== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0572aa;
    color: white;
    padding: 20px 25PX;
    width: 100%;
    margin-top: auto;
    min-height: 13vh;
    flex-wrap: wrap;
}

.logo-light-container {
    width: 140px;
    margin-left: 20px;
}

.logo-light {
    width: 100%;
}

.footer-text {
    text-align: right;
    flex-grow: 1; 
    margin-right: 20px;
}

.footer-text p {
    margin: 0;
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    color: #142d39;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 768px) {
    .container, .container-descarga {
        width: 90%;
        margin: 40px auto;
        padding: 20px;
    }

    input, select, button {
        width: 100%;
        font-size: 14px;
    }

    .logo {
        width: 110px;
    }

    .titulo {
        font-size: 20px;
    }

    .container-descarga .d-flex {
        flex-direction: column;
        gap: 10px !important;
    }

    .container-descarga .btn {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .footer-text {
        margin: 10px 0 0;
    } 
}

/* ======== CELULARES (iPhone SE, etc) ======== */
@media (max-width: 480px) {
    .header {
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .logo-container {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        width: 75px;
        height: auto;
    }

    .titulo-container {
        position: relative;
        transform: none;
        left: 0;
        width: 100%;
        text-align: center;
    }

    .titulo {
        font-size: 18px;
        line-height: 1.1;
        margin: 0;
    }

    .container-descarga {
        width: 95%;
        padding: 20px;
    }

    .footer {
        padding: 15px;
        font-size: 13px;
    }
}

