﻿/* =========================================================
   INICIO - CONTENEDOR GENERAL
   ========================================================= */

.inicio-page {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0;
    margin-right: 0;
}

.inicio-bloque {
    padding-top: 10px;
}

.inicio-titulo {
    margin-bottom: 0.25rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
}

.inicio-subtitulo {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-style: italic;
    color: #6b7280;
}

.inicio-linea {
    margin: 0;
    border: 0;
    border-top: 1px solid #d1d5db;
}


/* =========================================================
   PANEL OPERATIVO - CONTENEDOR PRINCIPAL
   ========================================================= */

.panel-operativo-nasa {
    position: relative;
    overflow: hidden;
    margin-top: 14px;
    margin-bottom: 18px;
    padding: 20px 24px 22px;
    border-radius: 16px;
    background: radial-gradient(circle at 100% 100%, rgba(47, 133, 90, 0.14), transparent 34%), linear-gradient(135deg, #ffffff 0%, #fbfefd 50%, #f1faf5 100%);
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 28px rgba(27, 67, 50, 0.10);
    color: var(--color-text);
}

    /* Puntitos decorativos */
    .panel-operativo-nasa::before {
        content: "";
        position: absolute;
        right: 130px;
        top: 24px;
        width: 150px;
        height: 70px;
        background-image: radial-gradient(rgba(47, 133, 90, 0.35) 1.3px, transparent 1.3px);
        background-size: 18px 18px;
        opacity: 0.45;
        pointer-events: none;
    }

    /* Semicírculo / ondas esquina inferior derecha */
    .panel-operativo-nasa::after {
        content: "";
        position: absolute;
        right: -110px;
        bottom: -135px;
        width: 330px;
        height: 330px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(47, 133, 90, 0.10) 0%, rgba(47, 133, 90, 0.08) 38%, transparent 39%), radial-gradient(circle, transparent 48%, rgba(47, 133, 90, 0.18) 49%, transparent 50%), radial-gradient(circle, transparent 61%, rgba(47, 133, 90, 0.12) 62%, transparent 63%);
        pointer-events: none;
    }

.panel-operativo-header,
.panel-operativo-grid {
    position: relative;
    z-index: 1;
}


/* =========================================================
   PANEL OPERATIVO - CABECERA
   ========================================================= */

.panel-operativo-header {
    margin-bottom: 18px;
}

.panel-operativo-etiqueta {
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.panel-operativo-titulo {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
}

.panel-operativo-subtitulo {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: 0.86rem;
    color: #64748b;
}

.estado-punto {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(47, 133, 90, 0.50);
}


/* =========================================================
   PANEL OPERATIVO - MÉTRICAS
   ========================================================= */

.panel-operativo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.panel-metrica {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    column-gap: 14px;
    min-height: 92px;
    padding: 6px 22px;
    border-right: 1px solid rgba(27, 67, 50, 0.16);
}

    .panel-metrica:last-child {
        border-right: 0;
    }

.metrica-icono {
    grid-row: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 1.7rem;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.metrica-numero {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-primary-dark);
}

.metrica-texto {
    margin-top: 4px;
    font-size: 0.90rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.metrica-barra {
    width: 54px;
    height: 5px;
    margin-top: 10px;
    border-radius: 99px;
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(47, 133, 90, 0.28);
}

.metrica-roja,
.metrica-ambar,
.metrica-verde,
.metrica-azul {
    color: var(--color-primary-dark);
}


/* =========================================================
   TARJETAS - ACCESOS RÁPIDOS
   ========================================================= */

.inicio-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tarjeta {
    position: relative;
    overflow: hidden;
    min-height: 98px;
    padding: 20px;
    text-align: center;
    user-select: none;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #dce5df;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(27, 67, 50, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .tarjeta::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 12px;
        background: radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent 60%);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .tarjeta:hover {
        transform: translateY(-4px);
        border-color: var(--color-primary);
        box-shadow: 0 10px 24px rgba(27, 67, 50, 0.14);
    }

        .tarjeta:hover::after {
            opacity: 1;
        }

.tarjeta-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    background: var(--color-primary-soft);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

    .tarjeta-icono i {
        font-size: 1.6rem;
        color: var(--color-primary-dark);
        transition: transform 0.2s ease, color 0.2s ease;
    }

.tarjeta:hover .tarjeta-icono i {
    color: var(--color-primary);
    transform: scale(1.08);
}

.tarjeta-texto {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.tarjeta-enlace {
    display: block;
    color: inherit;
    text-decoration: none;
}

    .tarjeta-enlace:hover {
        color: inherit;
        text-decoration: none;
    }


/* =========================================================
   RESPONSIVE - MÓVIL
   ========================================================= */

@media (max-width: 767.98px) {
    .panel-operativo-nasa {
        margin-top: 14px;
        margin-bottom: 18px;
        padding: 16px 14px 18px;
        border-radius: 16px;
    }

        .panel-operativo-nasa::before {
            right: 18px;
            top: 20px;
            width: 90px;
            height: 50px;
            background-size: 15px 15px;
            opacity: 0.30;
        }

        .panel-operativo-nasa::after {
            right: -145px;
            bottom: -155px;
            width: 290px;
            height: 290px;
        }

    .panel-operativo-header {
        margin-bottom: 14px;
    }

    .panel-operativo-etiqueta {
        font-size: 0.66rem;
    }

    .panel-operativo-titulo {
        font-size: 1.35rem;
    }

    .panel-operativo-subtitulo {
        margin-top: 8px;
        font-size: 0.76rem;
    }

    .panel-operativo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .panel-metrica {
        grid-template-columns: 42px 1fr;
        column-gap: 10px;
        min-height: 82px;
        padding: 10px 8px;
        border-right: 1px solid rgba(27, 67, 50, 0.13);
    }

        .panel-metrica:nth-child(2) {
            border-right: 0;
        }

        .panel-metrica:nth-child(3),
        .panel-metrica:nth-child(4) {
            border-top: 1px solid rgba(27, 67, 50, 0.13);
        }

    .metrica-icono {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 1.18rem;
    }

    .metrica-numero {
        font-size: 1.45rem;
    }

    .metrica-texto {
        font-size: 0.72rem;
    }

    .metrica-barra {
        width: 40px;
        height: 4px;
        margin-top: 7px;
    }
}
