/* ====== 1) Tokens + base para este layout ====== */
body.rocs-landing {
    /* Variables solo para páginas que usan este layout */
    --bg: #f3f4f6; /* gris claro fondo */
    --card: #ffffff; /* tarjeta */
    --text: #2b2e34; /* texto principal */
    --muted: #6b7280; /* texto secundario */
    --pill: #f1f5f9; /* fondo chips */
    --stroke: #e5e7eb; /* bordes sutiles */
    --brand: #6b77ff; /* acento */
    --cta-from: #ff2fb3; /* gradiente botón */
    --cta-to: #5f7cff; /* gradiente botón */
    --ok: #3b82f6; /* azul */
    --warn: #f43f5e; /* rojo */
    --mid: #ff00c7; /* fucsia */
    --shadow: 0 10px 25px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
    margin: 0;
    background: linear-gradient(180deg, #eef1f5 0%, #e7eaef 100%);
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
}

    body.rocs-landing * {
        box-sizing: border-box;
    }

/* ====== 2) Scope del módulo ====== */
.modulo-rocs {
    margin-top: 150px;
    padding-bottom: 50px;
}

.content .content-divider {
    width: 90%;
    margin: 20px 0;
    border: 0;
    border-top: 1px solid rgba(0,0,0,.45);
    grid-column: 2 / -1;
    flex-basis: 100%;
    align-self: stretch;
}

/* ====== 3) Utilidades locales ====== */
.modulo-rocs .pos-rel {
    position: relative;
}

.modulo-rocs .u-mt-0 {
    margin-top: 0 !important;
}

/* ====== 4) Layout de la vista ====== */
.modulo-rocs .wrap {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 16px;
}

/* ====== 5) Card principal ====== */
.modulo-rocs .card {
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--stroke);
    position: relative;
    overflow: hidden;
}

.modulo-rocs .sello-overlap {
    position: absolute;
    top: 50px;
    right: 20px;
    height: 90px;
    width: auto;
    z-index: 2;
}

.modulo-rocs .card-header {
    height: 120px;
    background: #f1f1f1;
    border-bottom: 1px solid var(--stroke);
    position: relative;
    align-items: center;
    align-content: center;
    padding: 0 200px;
}

    .modulo-rocs .card-header #card-title {
        font-weight: 300 !important;
        font-family: 'BebasNeue' !important;
        text-transform: uppercase;
        margin-top: clamp(10px, 2.6vw, 40px) !important;
        font-size: clamp(9px, 2.6vw, 60px) !important;
    }


.card-subtitle {
    font-weight: 450 !important;
    font-family: 'Montserrat' !important;
    text-transform: uppercase;
    margin-top: clamp(10px, 2.6vw, 40px) !important;
    font-size: 20px !important; /*clamp(7px, 1.5vw, 30px) !important;*/
    color: #808080 !important;
}

.modulo-rocs .header-sello {
    right: 20px;
    height: 109px;
    width: auto;
    display: block;
    position: absolute;
    top: 40px;
    transition: filter .2s ease;
    z-index: 2;
}

/* Contenido principal (3 columnas en desktop) */
.modulo-rocs .content {
    padding: 26px 26px 18px;
    display: grid;
    grid-template-columns: .23fr 1fr 0.1fr;
    align-items: start;
    min-height: 400px;
}

.modulo-rocs .side-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modulo-rocs .maturity--under-logo {
    margin-top: 8px;
    transform-origin: left top;
}

@media (max-width: 900px) {
    .modulo-rocs .content {
        grid-template-columns: 100px 1fr;
    }

    .modulo-rocs .side-right {
        display: none;
    }
}

/* Logo circular izquierda */
.modulo-rocs .logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #1f2453 url('') center/cover no-repeat;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    letter-spacing: .08em;
    font-size: 10px;
    border: 6px solid #fff;
    box-shadow: var(--shadow);
    position: relative;
    top: -20px;
}

    .modulo-rocs .logo small {
        display: block;
        font-weight: 600;
        opacity: .9;
        font-size: 12px;
        margin-top: 2px;
    }

.modulo-rocs .logo__img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
}

.modulo-rocs .logo__circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -100px;
    z-index: 100;
}

/* Títulos y badges */
.modulo-rocs .title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: -40px;
    margin-bottom: 20px;
    color: #606060 !important;
}

.modulo-rocs h1 {
    margin: 0;
    line-height: 1;
    letter-spacing: .5px;
    font-weight: 800;
    color: #3a3e45;
}

.modulo-rocs .badge {
    background: var(--pill);
    border: 1px solid var(--stroke);
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Subtítulos + texto */
.modulo-rocs .section-title {
    margin: 18px 0 8px;
    font-weight: 700;
    color: #606060;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif !important; /* FIX */
}

.modulo-rocs .lead {
    color: #666;
    line-height: 1.4;
    font-weight: 400 !important; /* ✅ peso 400 */
    font-size: 17px;
    font-style: normal; /* ✅ sin itálica */
    font-family: 'Montserrat-Medium', sans-serif !important; /* ✅ solo Montserrat */
}

/* Indicador de madurez */
.modulo-rocs .maturity {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 14px;
    width: 180px;
    box-shadow: 0 6px 12px rgba(0,0,0,.04) inset;
    transform-origin: top left;
    top: 70px !important;
    font-family: 'Montserrat', sans-serif !important; /* FIX */
}

    .modulo-rocs .maturity h4 {
        margin: 0 0 10px;
        font-size: 13px;
        letter-spacing: .08em;
        color: #808080;
        font-weight: 700 !important; /* FIX: 1700 -> 700 */
    }

.modulo-rocs .bar {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

    .modulo-rocs .bar .lbl {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        background: #f8fafc;
        display: grid;
        place-items: center;
        font-size: 12px;
        font-weight: 800;
        color: #6b7280;
        border: 1px solid var(--stroke);
    }

    .modulo-rocs .bar .track {
        height: 12px;
        border-radius: 999px;
        background: #eef2f7;
        border: 1px solid #e2e8f0;
        position: relative;
        overflow: hidden;
    }

.maturity .fill {
    transition: width .6s ease;
}

.modulo-rocs .middle {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.modulo-rocs .bottom {
    margin-top: auto;
}

.modulo-rocs .bottom-grid {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    column-gap: 24px;
    align-items: end;
    width: 100%;
    margin-top: auto;
}

.modulo-rocs .u-nowrap {
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modulo-rocs .content-bottom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: .4fr .4fr .6fr;
    column-gap: 24px;
    align-items: end;
    margin-top: 16px;
    width: 100%;
}

.modulo-rocs .content-bottom-2 {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: .26fr .25fr 1fr;
    column-gap: 24px;
    align-items: flex-start;
    margin-top: 16px;
    width: 93%;
    margin-bottom: 100px;
    min-width: 0;
}

@media (max-width:900px) {
    .modulo-rocs .content {
        grid-template-columns: 100px 1fr;
    }

    .modulo-rocs .side-right {
        display: none;
    }

    .modulo-rocs .content-bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.modulo-rocs .kv p {
    margin: .25rem 0;
    color: #6b7280;
    font-weight: 200 !important;
    font-size: 14px;
    font-style: italic;
    font-family: 'Montserrat', sans-serif !important; /* FIX */
    grid-column: 2 / -1;
}

/* Footer */
.modulo-rocs .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid var(--stroke);
    background: #f1f1f1;
}

.modulo-rocs .btn.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 130px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 26px;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}


.footer-actions {
    display: flex;
    gap: 12px;
}


.modulo-rocs .brand-left {
    font-size: 12px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: 'Montserrat', sans-serif !important; /* FIX */
}

.modulo-rocs .cta {
    margin-left: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 26px;
    color: white;
    letter-spacing: .02em;
    background: linear-gradient(90deg, var(--cta-from), var(--cta-to));
    transition: transform .15s ease, box-shadow .15s ease;
    font-size: 13px;
    font-weight: 600;
    height: 38px;
    width: 130px;
    font-family: 'Montserrat', sans-serif !important; /* FIX */
}

    .modulo-rocs .cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 22px rgba(99,102,241,.35);
    }

/* Columna derecha (sello) */
.modulo-rocs .side-right {
    align-self: start;
    display: grid;
    place-items: center;
}

.modulo-rocs .seal {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid #fff;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    position: relative;
    top: -20px;
}

    .modulo-rocs .seal::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        padding: 2px;
        background: conic-gradient(#ff2fb3, #7a7dff, #2dd4ff, #ff2fb3);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }

    .modulo-rocs .seal span {
        z-index: 1;
        font-size: 12px;
        text-align: center;
        width: 64px;
        color: #6b7280;
        font-weight: 800;
    }

/* Links */
.modulo-rocs a.link {
    color: #606060;
    text-decoration: none;
    font-size: 17px;
    font-style: normal;
    font-family: 'Montserrat', sans-serif !important; /* FIX */
}

/* Modal */
#contenedorModal .modal-dialog {
    --bs-modal-width: 600px;
    min-width: 600px;
}

@media (max-width: 600px) {
    #contenedorModal .modal-dialog {
        min-width: auto;
    }
}

#contenedorModal .modal-content {
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

#contenedorModal .modal-body {
    overflow: auto;
    max-height: calc(100vh - 7rem);
}

/* Grid Más Info */
#gridMasInfo .k-table th,
#gridMasInfo .k-table td {
    text-align: center;
    vertical-align: middle;
}

.modulo-rocs .maturity {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 14px;
    width: 260px; /* un poco más ancho */
    box-shadow: 0 6px 12px rgba(0,0,0,.04) inset;
    font-family: 'Montserrat',sans-serif !important;
    font-size:11px;
}
.modulo-rocs .bar {
    display: grid;
    grid-template-columns: 26px 100px 1fr; /* <-- texto con ancho fijo */
    gap: 12px;
    align-items: center;
    margin: 12px 0;
}

    /* Título */
    .modulo-rocs .maturity h4 {
        margin: 0 0 10px;
        font-size: 14px;
        letter-spacing: .02em;
        color: #555;
        font-weight: 700 !important;
        text-transform: none;
    }

.modulo-rocs .bar .lbl {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #404040;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    border: none;
}
.modulo-rocs .bar .tag {
    font-size: 11px;
    color: #444;
    width: 90px;
}
.modulo-rocs .bar .track {
    width: 100%; /* <-- clave */
    height: 6px; /* subila si querés más presencia */
    border-radius: 999px;
    background: #e9eef5;
    position: relative;
    overflow: hidden;
    border: none;
}


/* Fila de barra: icono + texto + barra */
    .modulo-rocs .bar .track .fill {
        position: absolute;
        inset: 0 auto 0 0;
        width: 0;
        height: 100%;
        border-radius: 999px;
        transition: opacity .6s ease;
    }


/* opcional: podés aclarar los colores de las barras "bajas" */
.modulo-rocs .bar.warn .fill {
    background: var(--ok);
}
/* E */
.modulo-rocs .bar.mid .fill {
    background: var(--mid);
}
/* S */
.modulo-rocs .bar.ok .fill {
    background: var(--warn);
}
/* G */
/* =========================
   Grid Mas Info - Mobile
   ========================= */
@media (max-width: 600px) {

    /* Modal más cómodo en mobile */
    #contenedorModal .modal-dialog {
        --bs-modal-width: 95vw;
        width: 95vw;
        min-width: 0;
        margin: 1rem auto;
    }

    #contenedorModal .modal-content {
        min-height: auto;
        max-height: 90vh;
    }

    #contenedorModal .modal-body {
        padding: 12px;
        max-height: calc(90vh - 90px);
        overflow: auto;
    }

    /* Sacar estructura de tabla clásica */
    #gridMasInfo .k-grid-header,
    #gridMasInfo colgroup {
        display: none !important;
    }

    #gridMasInfo .k-grid-content {
        overflow: visible !important;
    }

    #gridMasInfo table,
    #gridMasInfo tbody,
    #gridMasInfo tr,
    #gridMasInfo td {
        display: block;
        width: 100% !important;
    }

        /* Cada fila como card */
        #gridMasInfo tbody tr {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 10px 12px;
            margin-bottom: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,.05);
        }

        /* Cada celda con label a la izquierda */
        #gridMasInfo tbody td {
            border: 0 !important;
            padding: 8px 0 !important;
            min-height: auto;
            display: grid;
            grid-template-columns: 95px 1fr;
            gap: 10px;
            align-items: start;
            text-align: left !important;
            white-space: normal;
            word-break: break-word;
        }

            /* Labels fake */
            #gridMasInfo tbody td:nth-child(1)::before {
                content: "Descripción";
                font-weight: 700;
                color: #6b7280;
                font-size: 12px;
            }

            #gridMasInfo tbody td:nth-child(2)::before {
                content: "Archivo";
                font-weight: 700;
                color: #6b7280;
                font-size: 12px;
            }

    /* Botón descargar cómodo */
    #gridMasInfo .btn.btn-outline-primary {
        width: 100%;
        max-width: 220px;
        min-height: 38px;
        border-radius: 10px;
        font-size: 13px;
        margin: 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Texto sin archivo */
    #gridMasInfo .text-muted {
        display: inline-block;
        padding-top: 6px;
    }

    /* No records */
    #gridMasInfo .k-grid-norecords,
    #gridMasInfo .p-3.text-muted {
        text-align: center !important;
        padding: 20px 12px !important;
    }
}