:root {
    --blue-lochmara: #007BC4;
    --blue-azure-palace:#145a92;
    --white-aura:#eff5f3;
    --blue-mya:#0d3d63
}

/*MOVTIC*/
.chave-square {
    background-color: rgb(224 224 224 / 0.5);
    height: 319px;
    border-radius: 10px;
    width:95%;
    height: 100%;
}

#chave-img-col {
    z-index: 1;
}

@media (min-width: 993px) {
    .chave-row {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    #chave-img-col {
        margin-right: -26px;
        margin-top: 14px;
    }
}

@media (min-width: 0px) and (max-width: 992px) {
    #chave-img-col {
        display: flex;
        justify-content: center;
        margin-right: 0;
        margin-bottom:1rem;
    }

    .seccion-titulo {
        margin-top: 1rem;
    }

    .chave-square {
        width:100%
    }

}

.chave-square > .seccion {
    padding: 20px 45px 21px 45px;
}

.aligned-row {
    display: flex;
    flex-flow: row wrap;
}
.aligned-row::before {
    display: block;
}

.aligned-row > div {
    margin-bottom: 3rem;
}

.blue-rectangle-title {
    height: 35px;
    width: 100%;
    background-color: var(--blue-lochmara);
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:21px;
    font-weight: 700;
}

.blue-rectangle-table {
    height: 35px;
    background-color: var(--blue-lochmara);
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:21px;
}

/*Tabla Movtic*/
.tabla-utilizar-movtic {
    width: 100%;
    max-width: 900px;
    min-width: 640px;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top:1rem;
}

.tabla-utilizar-movtic col.col-titulo   { width: 26%; }
.tabla-utilizar-movtic col.col-dato     { width: 18.5%; }

.tabla-utilizar-movtic * {
    box-sizing: border-box;
}

.tabla-wrapper {
    width: 100%;
    max-width: 900px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Cabecera --- */

.tabla-utilizar-movtic thead th:first-child {
    text-align: left;
}

@media (min-width: 601px) {
    .tabla-utilizar-movtic tbody tr:first-child td{
        border-top:none;
    }

    .tabla-utilizar-movtic tbody tr:last-child td{
        border-bottom:1px solid #e6e6e6;
    }
}


.tabla-utilizar-movtic thead{
    background-color: white;
}

.badge-movtic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 82px;
    background-color: var(--blue-lochmara);
    color: white;
    border-radius: 10px;
    padding: 6px 12px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

@media only screen and (min-width : 1200px) {
    .col-pl-50 {
        padding-left:50px;
    }

    .col-pr-50 {
        padding-right:50px;
    }
}


/* Título de la primera columna: mismo badge azul, alineado a la izquierda */
.badge-title {
    justify-content: flex-start;
    text-align: left;
}

/* --- Cuerpo --- */
.tabla-utilizar-movtic tbody td {
    padding: 16px 6px;
    text-align: center;
    border-top: 1px solid #e6e6e6;
    font-size: 15px;
}

.tabla-utilizar-movtic tbody td:first-child {
    text-align: left;
    color: #333;
}

.tabla-utilizar-movtic thead th {
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
    height: 76px;
}

.check-tabla {
    color: #2196d8;
    font-weight: bold;
    font-size: 16px;
}

.dash-tabla {
    color: #bdbdbd;
    font-weight: bold;
    font-size: 16px;
}

.nota-tabla-footer {
    font-size: 12px;
    color: #777;
    margin-top: 16px;
}

/* ===================================================
   TABLET (≈ 700px – 900px): la tabla se encoge un poco
   y si no cabe, hace scroll horizontal suave
=================================================== */
@media (max-width: 900px) {
    .badge-movtic {
        padding: 6px 8px;
        font-size: 13px;
        height: 52px;
    }

    .tabla-utilizar-movtic tbody td,
    .tabla-utilizar-movtic thead th {
        padding: 10px 4px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .tabla-wrapper {
        overflow-x: visible;
    }

    .tabla-utilizar-movtic {
        min-width: 0;
        table-layout: auto;
    }

    .tabla-utilizar-movtic thead {
        display: none;
    }

    .tabla-utilizar-movtic,
    .tabla-utilizar-movtic tbody,
    .tabla-utilizar-movtic tr,
    .tabla-utilizar-movtic td {
        display: block;
        width: 100%;
    }

    .tabla-utilizar-movtic tr {
        border: 1px solid #e6e6e6;
        border-radius: 12px;
        margin-bottom: 16px;
        padding:0;
        overflow: hidden;
    }

    .tabla-utilizar-movtic tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border-top: 1px solid #f0f0f0;
        padding: 10px 16px;
    }

    .tabla-utilizar-movtic tbody td:first-child {
        display: block;
        text-align: left;
        font-weight: 600;
        border: 1px var(--blue-lochmara) solid;
        color: white;
        background-color: var(--blue-lochmara);
    }

    .tabla-utilizar-movtic tbody td:not(:first-child)::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        text-align: left;
    }
}

/*Cards Movtic*/
.movtic-doc-card {
    background: #f2f2f2;
    border-radius: 12px;
    padding: 32px 28px;
    box-sizing: border-box;
    height:100%;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    row-gap: 0;
}

.movtic-doc-card__title {
    margin: 0 0 16px;
    color: var(--blue-lochmara);
    font-size: 18px;
    font-weight: 700;
    grid-row: 1;
}

.movtic-doc-card__text {
    margin: 0 0 28px;
    color: #333333;
    line-height: 1.6;
    grid-row: 2;
}

.movtic-doc-card__section {
    margin-bottom: 24px;
}

.movtic-doc-card__tags-section     { grid-row: 3; }
.movtic-doc-card__downloads-section { grid-row: 4; }

.movtic-doc-card__section:last-child {
    margin-bottom: 0;
}

.movtic-doc-card__label {
    margin: 0 0 10px;
    color: #333333;
}

.movtic-doc-card__label.blue {
    font-weight:bold;
    color: var(--blue-lochmara);
}

.movtic-doc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.movtic-doc-card__tag {
    display: inline-block;
    background: #C7DAF2;
    color: var(--blue-lochmara);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.movtic-doc-card__language {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.movtic-doc-card__language:last-child {
    margin-bottom: 0;
}

.movtic-doc-card__language-name {
    width: 70px;
    flex-shrink: 0;
    color: #333333;
}

.movtic-doc-card__btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: var(--blue-lochmara);
    padding: 10px 18px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
    font-size:12px
}

.movtic-doc-card__btn:hover,
.movtic-doc-card__btn:focus-visible {
    background: var(--blue-azure-palace);
    color: white;
}

.movtic-doc-card__btn:focus-visible {
    outline: 2px solid var(--blue-mya);
    outline-offset: 2px;
}

.movtic-doc-card__buttons {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
}

/* Responsive: apila los botones bajo el nombre del idioma en pantallas muy estrechas */
@media (max-width: 380px) {
    .movtic-doc-card__language {
        flex-wrap: wrap;
    }
}

/*Grid para cards*/
.movtic-cards-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(330px,100%), 1fr));
    grid-auto-rows: auto;
    gap: 24px;
    width: 100%;
    padding-top: 1rem;
}

/**Descargar aplicacion Movtic**/
.descargar-aplicacion-movtic {
    background-color:var(--white-aura);
}

.descargar-aplicacion-movtic .descargar-aplicacion-movtic-texto {
    padding: 5rem 100px 0rem 100px;
}

@media (max-width: 991px) {
    .descargar-aplicacion-movtic .descargar-aplicacion-movtic-texto {
        padding: 0rem 100px 0rem 100px;
    }

}

@media (max-width: 600px) {
    .descargar-aplicacion-movtic .descargar-aplicacion-movtic-texto {
        padding: 0rem;
    }

}

@media (min-width: 0px) and (max-width: 1198px) {
    #documentos-movtic-mobile-col {
        display: flex;
        justify-content: center;
        margin-right: 0;
    }

}

@media (min-width: 0px) and (max-width: 1198px) {
    #img-movtic {
        display: flex;
        justify-content: center;
        margin-right: 0;
    }

}