* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    clear: both;
    width: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #2b3d5a;
    background-color: white;
}

.top {
    position: fixed;
    z-index: 2;
    top: 0;
    width: 100%;
    color: white;
    cursor: default;
    background-color: #142440;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px;
}

.obs {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    padding-left: 2%;
    cursor: pointer;
    text-align: left;
}

.pre {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    padding: 8px;
}

.menu {
    flex: 1;
    cursor: pointer;
    padding-right: 2%;
    text-align: right;
}

.menu::before {
    content: '☰';
    font-size: 28px;
}

.menu-float {
    display: none;
    position: absolute;
    top: 41px;
    right: 8px;
    font-size: 16px;
    background-color: #142440eb;
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 3;
}

.menu-float ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu-float ul li {
    padding: 10px;
    cursor: pointer;
}

.menu-float ul li:hover {
    background-color: #2b3d5a;
    color:#d8b59e;
}

.cont {
    width: 95%;
    margin: 40px auto 0 auto;
    padding: 16px;
    background: white;
    box-shadow: 0px -1px 7px 1px rgb(0 0 0 / 20%);
}

.cont h1 {
    font-size: 21px;
    font-weight: 400;
    margin: 0px 0 16px 0;
}

form em {
    position: absolute;
    user-select: none;
    background-color: white;
    margin: 2px 0 0 7px;
    padding: 0 5px;
    font-style: normal;
    font-size: 13px;
    color: #2b3d5a;
}

input, select, textarea {
    width: 100%;
    margin: 10px auto;
    padding: 8px 0 0 12px;
    height: 40px;
    font-size: 20px;
    font-weight: 300;
    border: 1px solid #e2e3e1;
    border-radius: 6px;
    color: #08172e; /* Color de texto */
    transition: 0.4s ease;
    text-transform: capitalize;
}
textarea {
    text-transform: none;
    font-size: 17px;
    height: 96px;
}
input::placeholder,
select::placeholder {
    color: #d7d7d7; /* Color de gris tenue para valores por defecto */
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border: 1px solid #2b3d5a;
    color: #2b3d5a;
}

.selectdiv {
    position: relative;
}

.selectdiv:after {
    content: '▼';
    font: 800 16px system-ui;
    color: #333;
    right: 14px;
    top: 6px;
    height: 26px;
    padding: 15px 5px 0 0;
    position: absolute;
    pointer-events: none;
}

.selx {
    width: 83%;
}

/* IE11 hide native button */
select::-ms-expand {
    display: none;
}

.selectdiv select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    margin: 10px 0px;
    padding: 5px 0 0 12px;
    font-size: 18px;
    background: white;
    border: 1px solid #e2e3e1;
    border-radius: 6px;
    -ms-word-break: normal;
    word-break: normal;
}

.search-btn {
    background: #d8b59e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    width: 15%;
    float: inline-end;
    margin: -51px 0 0 0;
    transition: 0.4s ease;
}

.resu {
    position: sticky;
    bottom: 0;
    width: 100%;
    height: 120px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    border-top: 1px solid #e5e5e5;
    background-color: white;
}

.res1 {
    float: left;
    width: 60%;
    color: #2b3d5a;
}

.res1::before {
    content: '∧';
    font-size: 14px;
    font-weight: 800;
    padding: 0 2% 0 1%;
}

.res2 {
    float: right;
    width: 40%;
    text-align: right;
    color: black;
}

.btn {
    clear: both;
    width: 100%;
    margin: 0 auto;
}

button {
    float: left;
    height: 40px;
    color: white;
    border: 0;
    border-radius: 7px;
    transition: .3s;
    padding: 10px;
    font-size: 16px;
}

button.duogray {
    background-color: #444;
    width: 49%;
    margin: 5px 1% 5px 0;
}

button.duored {
    background: #bb8f60;
    width: 49%;
    margin: 5px 0 5px 1%;
}

button.uniblue {
    background: #08172e;
    width: 100%;
    margin: 5px 0;
}

.fecha-fields {
    display: flex;
    gap: 10px;
    background-color: white;
}

.fecha-fields input,
.fecha-fields select {
    width: calc(33.33% - 7px);
}

.fecha-fields input[type="number"] {
    text-align: center;
}

.tenue {
    filter: blur(2px) grayscale(60%);
    transition: 0.4s ease;
}

.desactiva {
    pointer-events: none;
    user-select: none;
}

#vistaPreviaDatos {
    margin: 0;
    text-align: justify;
    white-space: pre-wrap; /* Mantener saltos de línea y ajustar texto */
    word-wrap: break-word; /* Ajustar el texto largo para IE */
    overflow-wrap: break-word; /* Ajustar el texto largo para navegadores modernos */
}
.vista-previa-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 13px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 13px;
    opacity: 0; /* Ocultar inicialmente */
    visibility: hidden; /* Ocultar inicialmente */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transición */

}

.vista-previa-container.active {
    opacity: 1; /* Mostrar cuando está activo */
    visibility: visible; /* Mostrar cuando está activo */
}

.vista-previa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vista-previa-header h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: 14px;
}

.cerrar-btn {
    cursor: pointer;
    background-color: #ddd;
    padding: 5px 10px;
    border: 1px solid #aaa;
    border-radius: 4px;
}
