/* ====== ESTILOS GENERALES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(to bottom right, #53769a, #ffffff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====== HEADER ====== */
header {
    width: 100%;
    background: #ffffffcc;
    backdrop-filter: blur(6px);
    padding: 10px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    width: 130px;
    height: auto;
    border-radius: 6px;
}

header i {
    font-size: 32px;
    cursor: pointer;
    color: #333;
}

/* ====== FORMULARIO ====== */
#main_all {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

#main_1 fieldset {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
    max-width: 900px;
}

#form_all > div {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #bbb;
    font-size: 15px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ====== TABLAS DE DIRECCIÓN ====== */
table {
    width: 100%;
    margin-top: 10px;
}

td {
    padding: 10px;
}

/* ====== BOTONES ====== */
input[type="submit"],
input[type="reset"],
button {
    padding: 10px 18px;
    background: #007bff;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

input[type="reset"] {
    background: #dc3545;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    opacity: 0.8;
}

/* ====== MODAL PDF ====== */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#modalContent {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
}

#modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007bff;
    color: white;
    padding: 10px 15px;
}

#modalHeader button {
    background: red;
    padding: 6px 10px;
}

#modalBody iframe {
    width: 100%;
    height: 500px;
    border: none;
}

#modalFooter {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    header img {
        width: 100px;
    }

    header i {
        font-size: 28px;
    }

    table, tr, td {
        display: block;
        width: 100%;
    }

    td {
        padding: 5px 0;
    }

    #modalBody iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    header img {
        width: 80px;
    }

    header i {
        font-size: 26px;
    }

    input, select, textarea {
        font-size: 14px;
    }
}