body {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    color: #222222;
}

h1 {
    border-bottom: 2px solid #2a6f6f;
    padding-bottom: 10px;
}

h2, h3 {
    color: #2a6f6f;
}

p {
    line-height: 1.6;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    margin: 16px 0;
}

.nav a {
    color: #2a6f6f;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.nav a:hover {
    border-bottom-color: #2a6f6f;
}

a {
    color: #2a6f6f;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid #cccccc;
    margin: 20px 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #cccccc;
}

th {
    border-bottom: 2px solid #2a6f6f;
}

input[type="text"] {
    padding: 6px;
    width: 220px;
    border: 1px solid #999999;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2a6f6f;
}

input[readonly] {
    color: #777777;
    border-style: dashed;
}

input[type="submit"] {
    padding: 8px 18px;
    background: none;
    color: #2a6f6f;
    border: 1px solid #2a6f6f;
    margin-top: 10px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #2a6f6f;
    color: #ffffff;
}

.busqueda {
    border: 1px solid #cccccc;
    padding: 15px;
    margin-bottom: 20px;
}

.busqueda input[type="submit"] {
    margin-top: 0;
    margin-left: 8px;
}

.mensaje-error {
    color: #9c2f27;
    border-left: 3px solid #9c2f27;
    padding: 8px 12px;
}

.mensaje-exito {
    color: #1f6b3a;
    border-left: 3px solid #1f6b3a;
    padding: 8px 12px;
}

/* ===== Diseno responsivo del banner de navegacion ===== */
@media (max-width: 600px) {
    body {
        margin: 20px auto;
        padding: 0 12px;
    }

    .nav {
        flex-direction: column;
        gap: 0;
        border: 1px solid #cccccc;
    }

    .nav a {
        width: 100%;
        padding: 10px 8px;
        border-bottom: 1px solid #eeeeee;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    input[type="text"] {
        width: 100%;
        box-sizing: border-box;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table tr {
        border: 1px solid #cccccc;
        margin-bottom: 10px;
    }

    table td {
        border: none;
        border-bottom: 1px solid #eeeeee;
        position: relative;
        padding-left: 45%;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        width: 40%;
        font-weight: bold;
        color: #2a6f6f;
    }
}
