
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    font-size: 14px;
}


body.header {
    background: #1a5276;
    color: white;
    margin: 0;
    padding: 0;
    border-bottom: 3px solid #117a8b;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header-text {
    text-align: left;
}

body.header h1 {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
    color: white;
    text-align: left;
}

body.header h3 {
    font-size: 14px;
    font-weight: normal;
    margin-top: 4px;
    margin-bottom: 0;
    opacity: 0.85;
    color: #e0f2fe;
    border: none;
    padding: 0;
    text-align: left;
}


body.sidebar {
    background: #ffffff;
    height: 100%;
    padding: 15px 0;
    border-right: 2px solid #d6e4f0;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #1a3a52;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.menu-item:hover {
    background: #eaf2fb;
    border-color: #aed6f1;
    color: #1a5276;
}

.menu-icon {
    width: 20px;
    height: 20px;
}


body.contenido {
    background: #f0f4f8;
    padding: 0;
}

.container {
    background: #ffffff;
    width: 90%;
    max-width: 850px;
    margin: 20px auto;
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid #d6e4f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}


h1 {
    color: #1a5276;
    font-size: 22px;
    text-align: center;
    margin-bottom: 10px;
}

h2 {
    color: #1a5276;
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d6e4f0;
}

h3 {
    color: #1a5276;
    font-size: 16px;
    text-align: left;
    margin: 25px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #d6e4f0;
}


hr {
    border: none;
    border-top: 1px solid #d6e4f0;
    margin: 20px 0;
}


.form-group {
    margin-bottom: 18px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    color: #1a3a52;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #b0c4d8;
    border-radius: 5px;
    font-size: 14px;
    background: #fdfdfd;
    color: #333;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: #1a5276;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.12);
}

.options label {
    font-weight: normal;
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
    color: #333;
}

input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}


button,
.btn {
    padding: 10px 20px;
    background: #1a5276;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin: 5px 4px;
    transition: background 0.2s;
}

button:hover,
.btn:hover {
    background: #154360;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 20px 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d6e4f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

th {
    background: #1a5276;
    color: white;
    padding: 11px 14px;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8f0f7;
    text-align: left;
    color: #333;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f4f9fd;
}


.captcha-box {
    margin: 20px 0;
    text-align: center;
    padding: 18px;
    background: #f4f9fd;
    border-radius: 6px;
    border: 1px solid #b0c4d8;
}

#captcha-pregunta {
    font-size: 18px;
    font-weight: bold;
    color: #1a5276;
}


.summary p {
    border-bottom: 1px solid #e8f0f7;
    padding: 9px 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    color: #333;
}

.total-box {
    background: #eaf4ff;
    padding: 16px 20px;
    border-radius: 6px;
    font-size: 17px;
    margin-top: 20px;
    color: #1a3a52;
    border: 1px solid #aed6f1;
    text-align: center;
    font-weight: bold;
}


.error {
    color: #c0392b;
    margin-top: 12px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background: #fdf2f2;
    border: 1px solid #e8b4b4;
    border-radius: 5px;
}

.correcto {
    color: #1e8449;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    border-radius: 5px;
    margin-top: 8px;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 15px 0 25px 0;
}

.gallery img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border: 1px solid #d6e4f0;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.viewer img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 26px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 50%;
    font-weight: bold;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 1);
}


body.inicio {
    background: #f0f4f8;
    text-align: center;
    padding: 30px 20px;
}

body.inicio h1 {
    color: #1a5276;
    font-size: 28px;
    margin-bottom: 5px;
}

body.inicio h3 {
    color: #5d6d7e;
    font-size: 16px;
    border: none;
    text-align: center;
    margin-bottom: 20px;
}

body.inicio p {
    color: #555;
    margin: 6px 0;
}

body.inicio iframe {
    border-radius: 8px;
    border: 2px solid #d6e4f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.inicio .btn-group {
    margin: 20px 0;
}

body.inicio button,
body.inicio .btn {
    padding: 10px 24px;
    font-size: 14px;
    margin: 6px;
}

body.inicio footer {
    margin-top: 30px;
    color: #888;
    font-size: 12px;
}