﻿.layout-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.left-panel {
    width: 60%;
    background-color: #DEEBFF;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.home-background-img {
    width: 75%;
    height: auto;
}

.right-panel {
    width: 40%;
    background-color: #ffffff;
    color: #00447D;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

    .right-panel h1 {
        font-size: clamp(2.5rem, 7vw, 7rem);
        font-weight: 900;
        margin-bottom: 40px;
    }

    .right-panel h2 {
        font-size: clamp(1.5rem, 4vw, 5rem);
        font-weight: 400;
    }

.start-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    border: solid;
    border-width: 1px;
    border-radius: 8px;
    border-color: #A6A6A6;
    cursor: pointer;
    background-color: #F2F2F2;
    color: #0a1a3a;
    font-weight: bold;
}

.login-container {
    height: 100vh;
    width: 100%;
    background-color: #DEEBFF; /* azul claro */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    width: 100%;
    max-width: 420px;
}

    .login-card h1 {
        color: #012E46;
        font-size: 5rem;
        font-weight: 900;
        margin-bottom: 20px;
    }

.login-card h2 {
    color: #012E46;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0px;
}

    .login-card h3 {
        color: #012E46;
        font-size: 1.5rem;
        font-weight: 400;
        margin-bottom: 10px;
    }

.login-logo-img {
    width: 100%;
    margin-bottom: 25px;
}

.menu-logo-img {
    height: 60px;
    width: auto;
    margin-left: 10px;
}

.form-group {
    text-align: left;
    margin-bottom: 10px;
}

.login-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    border: solid;
    border-width: 1px;
    border-radius: 8px;
    border-color: #A6A6A6;
    cursor: pointer;
    background-color: #F2F2F2;
    color: #0a1a3a;
    font-weight: bold;
    width: 100%;
}

.page-title {
    font-size: clamp(1.0rem, 1.2vw, 1.5rem);
    font-weight: 900;
}

.form-flex-layout {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.data-form {
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 100%;
    flex: 1 1 auto;
}

.data-card {
    background: white;
    padding: 12px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 100%;
    flex: 1 1 auto;
    text-align: center;
}

.data-chart {
    background: white;
    padding: 12px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 100%;
    flex: 1 1 auto;
    text-align: center;
}

.data-form-wide {
    min-width: 100%;
    flex: 1 1 auto;
}

.metric-header {
    font-size: clamp(1rem, 0.5vw, 2rem);
    font-weight: normal;
}

.metric-value {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: bold;
    margin-bottom: 0rem !important;
}

.metric-value-danger {
    font-weight: bold;
    color: #9C0006;
    border-radius: 8px;
    padding: .5rem;
}

.metric-value-ok {
    font-weight: bold;
    color: #006100;
    border-radius: 8px;
    padding: .5rem;
}

.metric-sub {
    color: #666;
    background-color: transparent;
    border-radius: 0px;
    padding: 0rem;
    margin-bottom: 0rem !important;
}

.metric-row {
    display: flex;
    justify-content: center; /* centra horizontalmente */
    align-items: center; /* alinea verticalmente */
    gap: 1rem; /* espacio entre los valores */
    width: auto; /* evita ocupar el 100% */
    margin: 0 auto; /* centra el contenedor */
}

/* Pantallas medianas*/
@media (min-width: 768px){
    .data-form {
        /*max-width: 600px;*/
        min-width: 500px;
        flex: 1 1 ;
    }
    .data-card {
        min-width: 250px;
        flex: 1 1 ;
    }
    .data-chart {
        min-width: 500px;
        flex: 1 1 ;
    }
    .data-form-wide {
        min-width: 700px;
        flex: 1 1 auto;
    }
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .layout-container {
        flex-direction: column;
        height: auto;
    }

    .left-panel {
        height: 40dvh;
        width: 100%;
        padding: 40px 20px;
    }

    .right-panel {
        height: 60dvh;
        width: 100%;
        padding: 40px 20px;
        background-color: #DEEBFF;
        justify-content: start;
        align-items: center;
    }

        .right-panel h1 {
            font-size: clamp(2.5rem, 15vw, 7rem);
            font-weight: 900;
            margin-bottom: 40px;
        }

        .right-panel h2 {
            font-size: clamp(1.5rem, 10vw, 5rem);
            font-weight: 400;
        }

    .home-background-img {
        width: 75%;
        height: auto;
    }

    .login-card {
        background: #DCEAF7;
        padding: 20px 20px;
        border-radius: 0px;
        box-shadow: 0 0px 0px rgba(0,0,0,0.15);
        text-align: center;
        width: 100%;
        height: 100%;
    }
}

.header-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 26px;
    /*padding: .25rem 1rem;*/
    box-shadow: 0 8px 24px rgba(15,23,42,0.06);
    border: 1px solid rgba(226,232,240,0.9);
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

/* Título del alimento */
.header-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 0rem;
}

/* Contenedor de los items */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-item {
    display: flex;
    flex-direction: column;
}

.header-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.header-value {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

/* Responsivo */
@media (max-width: 600px) {
    .header-row {
        flex-direction: row;
        gap: 0.75rem;
    }

    .header-item {
        /*width: 100%;*/
    }
}

/* CONTENEDOR GENERAL DE TARJETAS */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Espaciado mínimo */
}

.card-metric {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    /* Responsividad */
    flex: 1 1 190px; /* min-width */
    display: flex;
    flex-direction: column;
    border: 1px solid #e5eaf0;
}

.summary-label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.summary-value {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 850;
    color: #0f172a;
    letter-spacing: -0.6px;
}

.summary-delta {
    margin-top: 6px;
    font-size: 12px;
    color: #334155;
}
.card-basic {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    /* Responsividad */
    flex: 1 1 220px; /* min-width */
    max-width: 320px; /* max-width */
    display: flex;
    flex-direction: column;
}

/* TARJETAS EN PANTALLA PEQUEÑA */
@media (max-width: 600px) {
    .card-basic {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* TARJETA ESTILO “VEREDICTO → POR QUÉ” */
.card-alert {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    gap: 0.75rem;
    flex: 1 1 260px;
}

    /* Punto rojo a la izquierda */
    .card-alert .dot {
        width: 14px;
        height: 14px;
        background: #d9534f;
        border-radius: 50%;
        flex-shrink: 0;
    }

    /* Contenido del texto */
    .card-alert .content-title {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .card-alert .content-desc {
        font-size: 0.9rem;
        color: #555;
    }

/* Responsivo */
@media (max-width: 600px) {
    .card-alert {
        flex: 1 1 100%;
        max-width: 100%;
    }
}



.parameter-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 22px 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    /* Responsividad */
    flex: 1 1 400px; /* min-width */
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .parameter-card:hover {
        /*transform: translateY(-2px);*/
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    }

.parameter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.parameter-title {
    font-size: 17px;
    font-weight: 700;
    color: #263143;
}

.parameter-value {
    font-size: 24px;
    font-weight: 800;
    color: #222b3a;
    letter-spacing: -0.4px;
}

    .parameter-value span {
        font-size: 13px;
        font-weight: 700;
        margin-left: 2px;
        color: #6f7785;
    }

.parameter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-normal {
    background: #dcfce7;
    color: #15803d;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.status-bad {
    background: #ffe4e6;
    color: #be123c;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.cv-text {
    font-size: 13px;
    font-weight: 600;
    color: #7d8490;
}

.cv-normal {
    color: #2b3340;
}

.cv-high {
    color: #d94141;
}

.info-button {
    border: 1px solid #e4e7ec;
    background: #ffffff;
    color: #394150;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(20, 32, 54, 0.06);
}

    .info-button:hover {
        background: #f6f8fb;
    }

.range-wrapper {
    margin-bottom: 14px;
}

.range-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #e5eaf0;
    margin: 0 4px 20px;
    overflow: visible;
}

.range-band {
    position: absolute;
    left: 15%;
    width: 70%;
    top: 0;
    height: 100%;
    border-radius: 999px;
    background: #b8c1cc;
}

.range-marker {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: #0f172a;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.range-labels {
    position: relative;
    height: 18px;
    margin: 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #a1a7b2;
}

    .range-labels span {
        position: absolute;
        white-space: nowrap;
    }

.label-p15 {
    left: 15%;
    transform: translateX(-50%);
}

.label-average {
    left: 50%;
    transform: translateX(-50%);
}

.label-p85 {
    left: 85%;
    transform: translateX(-50%);
}

.grafica-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    /* Responsividad */
    flex: 1 1 400px; /* min-width */
    max-width: 600px; /* max-width */
    display: flex;
    flex-direction: column;
}
.grafica-header-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    text-align: center;
}
.grafica-header-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #222;
    text-align: center;
}