﻿body,
html, .container,
#main-container {
    font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    padding: 0;
    color: #333;
    height: 100vh;
    margin: 0;
    width: 100vw;
}


#loading-screen {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
}

.loading-text {
    font-size: 16px;
    color: #444;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: pulseShared 1.5s ease-in-out infinite;
    text-align: center;
    white-space: nowrap;
}

.pulse-loader {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-left: 20px;
    width: 100%;
}

    .pulse-loader span {
        height: 5px;
        background: linear-gradient(90deg, #0078d4, #00bcd4, #a3d900, #ffb300, #ff4081);
        background-size: 600% 100%;
        animation: pulseShared 1.5s ease-in-out infinite, pulseAnimation 1.5s ease-in-out infinite, gradientShift 4s linear infinite;
        opacity: 0.4;
    }

        .pulse-loader span:nth-child(1) {
            width: 22px;
            animation-delay: 0.5s, 0s;
        }

        .pulse-loader span:nth-child(2) {
            width: 26px;
            animation-delay: 0.25s, 0.5s;
        }

        .pulse-loader span:nth-child(3) {
            width: 20px;
            animation-delay: 0.2s, 0s;
        }

        .pulse-loader span:nth-child(4) {
            width: 23px;
            animation-delay: 0.23s, 0.43s;
        }

        .pulse-loader span:nth-child(5) {
            width: 20px;
            animation-delay: 0s, 0s;
        }

        .pulse-loader span:nth-child(6) {
            width: 22px;
            animation-delay: 0.25s, 0.4s;
        }

        .pulse-loader span:nth-child(7) {
            width: 30px;
            animation-delay: 0.5s, 0s;
        }

@keyframes pulseShared {

    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes pulseAnimation {

    0%, 100% {
        opacity: 0.2;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.6);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes loading {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.06);
    font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
}

.chat-block {
    background-color: #F5F5F5;
    border-left: 4px solid #0078d4;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    .chat-block:hover {
        background-color: #ECECEC;
        transition: background-color 0.2s ease-in-out;
    }


.section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2b2b2b;
}

.detail {
    display: none;
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid #ccc;
    font-size: 12px;
    color: #555;
    white-space: pre-wrap;
}

button.toggle-btn {
    background-color: #003766;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

    button.toggle-btn:hover {
        background-color: #00254a;
        transform: scale(1.02);
    }

.fade-in {
    animation: fadeIn ease 1s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.resumen-destacado {
    border-left: 4px solid #0078d4;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

    .resumen-destacado .section-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 16px;
        color: #004578;
    }

    .resumen-destacado .resaltado-positivo {
        color: #107c10;
        font-weight: 600;
    }

    .resumen-destacado .resaltado-alerta {
        color: #d83b01;
        font-weight: 600;
    }

    .resumen-destacado .resaltado-atencion {
        color: #8a8886;
        font-style: italic;
    }

.toggle-secciones-btn {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 10px 16px;
    font-weight: 500;
    cursor: pointer;
    margin: 12px 0;
    font-size: 14px;
    transition: background 0.2s ease;
    text-align: center;
}

    .toggle-secciones-btn:hover {
        background-color: #d0d0d0;
    }

#barra-autocierre {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #4caf50;
    z-index: 9999;
    width: 100vw;
    transition: width 0.2s linear, background-color 0.2s ease;
}

/*Estilos para el contenido que genera la IA automaticamente.*/

/*Para el DIV principal del que genera la IA*/
.resumenia-container {
    background: transparent;
    font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
    line-height: 2.3;
    color: #333;
    font-size: 15px;
    margin: 25px;
    text-align: justify;

}

/*Para el los <h2> del que genera la IA*/
.resumenia-title {
    font-size: 18px;
    color: #333;
    display:none;
}

/*Para el los <h3> del que genera la IA*/
.resumenia-subtitle {
    font-size: 18px;
    color: #cc2f2b;
    display: flex;
    align-items: center; /* asegura que todo quede alineado */
    gap: 12px;
}

.resumenia-icon {
    height: 1.2em;
    width: auto;
}

.resumenia-marked {
    font-weight: 500; /* un poco más fuerte que normal */
    color: black;
}
