﻿body {
    font-size:12px;
    background-color: wheat;
}

#loadingOverlay {
    position: absolute; /* Cambiado de fixed a absolute */
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#Section01 {
    position: relative; /* Obligatorio para que el loader se base en este div */
    min-height: 200px; /* Evita que el div colapse a 0px mientras carga */
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top: 6px solid #ff9800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.MainPanel {
    min-height:75vh;
    max-height:75vh;
}
.backgroundImg {
    width:98.8vw;
    z-index:-5;
    position:fixed;
}

.title-container {
    position: absolute;
    top: 17vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 85vw;
    min-height: 77vh;
    background-color: whitesmoke;
    opacity: 95%;
    border-radius: 10px;
    padding:5px;
}
.search-box {
    padding: 12px 16px;
    font-size: 1.2vw;
    border-radius: 10px;
    border: 1px solid #ccc;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.imgButton {
    width:42px;
    border-radius:5px;
    cursor:pointer;
    padding:2px;
}
    .imgButton:hover {
        background-color: wheat;
    }


.imgButton01 {
    width: 32px;
}
.imgButton02 {
    width: 29px;
    cursor: pointer;
    padding: 2px;
}

.tabOn, .tabOff, .tabOver {
    font-size: 1.3vw;
    width: 15.9vw;
    padding: 10px;
    cursor: pointer;
    border-style: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
    box-shadow: 4px 4px 4px lightgray;
}
.tabOn {
    background-color: darkblue;
    color: white;
}
.tabOff {
    background-color: lightgrey;
    color: black;
}
.tabOver {
    background-color: wheat;
    color: black;
}
.tableTitles {
    width:100%;
}
.titleRow {
    font-size: 1.2vw;
    cursor: pointer;
    background-color: whitesmoke;
    color: black;
}
    .titleRow:hover {
        font-size: 1.4vw;
        background-color: wheat;
    }
.itemTitle {
    padding:6px;
    font-size:1.2vw;
}
.titleHeaders {
    font-size: 1.3vw;
    color: white;
    background-color: darkblue;
    padding: 5px;
    text-align: center;
}
.searchList {
    box-shadow: 10px 10px 12px rgba(0, 0, 0, 0.1);
    background-color: lightgoldenrodyellow;
    font-size: 1.2vw;
    width: 60vw;
    z-index:2000;
    opacity:100%;
}

.leftMenuOn, .leftMenuOff, .leftMenuOver, .leftMenuHeader {
    background-color: darkblue;
    font-size: 1.1vw;
    color: white;
    padding: 5px;
    border-style: none;
    text-align: center;
    box-shadow: 4px 4px 4px lightgray;
}
.leftMenuOn {
    background-color: powderblue;
    color: black;
    font-size: 1.1vw;
    cursor: pointer;
}
.leftMenuOver {
    background-color: wheat;
    color: black;
    font-size: 1.1vw;
    cursor: pointer;
}
.leftMenuOff {
    background-color: white;
    color: black;
    font-size: 1vw;
    cursor: pointer;
}
.tableCred {
    vertical-align: top;
    text-align:center;
    background-color: lightgrey;
    min-height: 75vh;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    height:69vh;
    width:17.4vw;
}
.tableTips {
    font-size:1.1vw;
    vertical-align: top;
    text-align: left;
    padding:3px;
    background-color: whitesmoke;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin:auto;
}
.titleDetailHeader {
    text-align:left;
    font-size:1.5vw;
    color: black;
    padding-left:5px;
}
.buttonBack {
    font-size: 1.2vw;
    background-color: lightgray;
    height: 32px;
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center; 
    justify-content: center; 
    text-align: center;
    cursor: pointer;
}
    .buttonBack:hover {
        background-color: wheat;
        color: black;
    }

.labelDetails {
    font-size:1.3vw;
    color: darkred;
    padding:5px;
}
.valueDetails {
    font-size: 1.3vw;
    color: darkslategray;
    padding: 5px;
}
.table-header {
    font-size: 1.3vw;
    background-color: lightgray;
    font-weight: normal;
    padding: 1px;
}
.comboListField {
    width: 98%;
    box-sizing: border-box;
    font-size: 1.3vw;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.nested-schedule-table {
    width: 95%;
    font-size:1vw;
    margin-left: auto;
    margin-right: auto;
    border-style: solid;
    border-width: thin;
    border-color: burlywood;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: white;
}
    .nested-schedule-table th {
        background-color: burlywood;
        font-weight: normal;
    }
.DetailsImage01 {
    min-height: 32vh;
    max-height: 32vh;
}
.DetailsImage02 {
    min-height: 50vh;
    max-height: 50vh;
}
.innerTitle {
    font-size:1.6vw;
    color: darkblue
}
.innerText {
    font-size: 1.4vw;
    color: darkslategray;
}
.itemCalendar {
    font-size: 1.1vw;
    color: darkslategray;
    padding: 5px;
    padding-left: 10px;
}
.calendarwraper {
    min-height: 90vh;
    padding: 5px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    vertical-align: top;
    width: 324px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buttonReg {
    font-size: 1vw;
    background-color: lightgray;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    width:90%;
}

    .buttonReg:hover {
        background-color: wheat;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

.modalWindow {
    position: fixed; /* centrado en pantalla */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* ocupa casi toda la pantalla en móviles */
    max-width: 600px; /* límite en pantallas grandes */
    background-color: ghostwhite;
    border: thin solid lightgray;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
    z-index: 3000;
}

.modalContent {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap; /* se acomoda en pantallas pequeñas */
}

.modalTextContainer {
    flex: 1 1 250px;
}

.modalImageContainer {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modalImage {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.modalButtons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.modalButton {
    flex: 1;
    min-width: 120px;
    background-color: lightgray;
    padding: 12px;
    font-size: 1vw;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}
    .modalButton:hover {
        background-color: wheat;
    }

.modalTitle {
    font-size: 1.5vw;
    color: steelblue;
    margin-bottom: 10px;
}

.modalText {
    font-size: 1.2vw;
    color: slategray;
}

.Section00 {
    height: 70vh; /* altura fija */
    display: flex;
    align-items: flex-start; /* centra verticalmente el hijo .hero */
    justify-content: center;
    box-sizing: border-box;
}
.hero {
    display: flex;
    flex-direction: row;
    align-items: center; /* centra verticalmente dentro de Section00 */
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    padding: 0 2rem;
    box-sizing: border-box;
    margin: 0;
    padding-top: 3vw;
    padding-bottom:3vw;
}

.hero-content {
    font-size: 1.3vw;
}
.hero-image {
    flex: 0 0 50%;
    display: flex;
    align-items: center; /* centra verticalmente la imagen */
    justify-content: center; /* centra horizontalmente */
    overflow: hidden;
    border-radius: 16px;
    box-sizing: border-box;
    height: 100%;
}

    .hero-image img {
        max-height: 100%; /* nunca más alto que el contenedor */
        max-width: 100%; /* nunca más ancho que el contenedor */
        object-fit: contain; /* se ajusta sin recortarse */
        border-radius: 16px;
        display: block;
    }

.btn-primary {
    background: #0067b8;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-block;
}

.btn-primary:hover {
    background: wheat;
    color: black;
}
