/************************************/
/*  RESET BÁSICO Y BASE MODERNA     */
/************************************/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    background-color: #f4f6f9;
    color: #333;
}

/************************************/
/* TIPOGRAFÍA                      */
/************************************/

p {
    margin: 10px 0;
}

h1, h2, h3, h4, h5 {
    color: #263465;
    margin: 10px 0;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/************************************/
/* ENLACES                         */
/************************************/

a {
    color: #24618E;
    text-decoration: none;
    transition: color 0.25s ease, text-decoration 0.25s ease;
}

a:hover {
    color: #0c8b8b;
    text-decoration: underline;
}

/************************************/
/* LAYOUT GENERAL                  */
/************************************/

#contenidos {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/************************************/
/* CABECERA ESTABLE CON IMÁGENES    */
/************************************/

#header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flow-root; /* Reemplaza el overflow:auto para evitar colapsos limpiamente */
}

#header img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

#header h1 {
    margin: 0;
    font-size: 2.2rem;
    color: #24618E;
}

#header p {
    margin: 5px 0 0;
    color: #666;
}

/************************************/
/* NAVEGACIÓN (TABS MODERNOS)      */
/************************************/

#tabs {
    width: 100%;
    border-bottom: 2px solid #24618E;
    margin: 10px 0 20px;
}

#tabs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#tabs li {
    margin: 0;
}

#tabs a {
    display: block;
    padding: 10px 16px;
    background: #e8eef5;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #24618E;
    transition: background 0.25s ease, color 0.25s ease;
}

#tabs a:hover {
    background: #24618E;
    color: white;
    text-decoration: none;
}

/************************************/
/* MENÚS                           */
/************************************/

.menu,
.menu_off {
    width: 100%;
    max-width: 360px;
    margin: 10px auto;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.menu {
    background: #24618E;
    color: white;
}

.menu:hover {
    background: #1b4c6f;
    transform: translateY(-2px);
}

.menu_off {
    background: #aaa;
    color: white;
    cursor: default;
}

/************************************/
/* TABLAS                          */
/************************************/

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: #24618E;
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f4f8fb;
}

/************************************/
/* FORMULARIOS                    */
/************************************/

input,
select,
textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    margin: 8px 0 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #24618E;
    box-shadow: 0 0 5px rgba(36, 97, 142, 0.3);
}

.submit {
    background: #24618E;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.submit:hover {
    background: #1b4c6f;
}

/************************************/
/* PIE DE PÁGINA                  */
/************************************/

#footer {
    text-align: center;
    padding: 20px;
    background: white;
    border-top: 1px solid #ddd;
    color: #777;
    margin-top: 30px;
}

/************************************/
/* UTILIDADES                     */
/************************************/

.center { text-align: center; }
.small { font-size: 0.85rem; }
.large { font-size: 1.3rem; }
.right { float: right; }
.clear { clear: both; }
