/* ==========================================================================
   Kit Digital Page Styles (/kit-digital) — Responsive PC & Mobile
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #212529;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, .titulo {
    text-wrap: balance;
}

p, .text-col {
    text-wrap: pretty;
}

/* Header & Top Hero Section */
.contenido {
    background: linear-gradient(353deg, rgba(16, 40, 48, 0.92) 0%, rgba(18, 69, 62, 0.92) 98%),
                url("/assets/img/kit-digital/fondo.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-bottom: 48px;
}

.cabecera_logo {
    background: rgba(16, 40, 48, 0.72);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cabecera_logo_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cabecera_logo img {
    max-width: 220px;
    height: auto;
    display: block;
}

.btn-volver-inicio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border: 1px solid rgba(26, 188, 156, 0.75);
    border-radius: 50px;
    background: rgba(26, 188, 156, 0.15);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-volver-inicio:hover,
.btn-volver-inicio:focus-visible {
    background: #1abc9c;
    border-color: #1abc9c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Main Hero 2-Column Block */
.bloque1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: 36px;
    padding-bottom: 28px;
}

.col1 {
    flex: 1 1 55%;
    color: #ffffff;
    text-align: justify;
    font-size: 16px;
    line-height: 1.65;
}

.col1 h1 {
    color: #1abc9c;
    text-align: left;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 20px;
}

.col1 p {
    margin-bottom: 0;
}

.col2 {
    flex: 1 1 42%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: #ffffff;
}

.col2 a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid #1abc9c;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.col2 a:hover,
.col2 a:focus-visible {
    color: #1abc9c;
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
}

/* Official Kit Digital Logos Banner */
.bloque_kit {
    margin-top: 24px;
    text-align: center;
}

.bloque_kit img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Bono Sections */
.bono {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px;
    width: 100%;
    scroll-margin-top: 24px;
}

.color-gris {
    background: #E6EDF5;
}

.color-blanco {
    background: #ffffff;
}

.cont-cabecera {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 28px auto;
}

.cabecera {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    border-bottom: 1px solid #aeb6bf;
    padding-bottom: 10px;
}

.titulo {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1a252f;
}

.sub-titulo {
    font-size: 16px;
    color: #34495e;
}

.verde {
    color: #1abc9c;
}

.sub-cabecera {
    padding-top: 16px;
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
}

.sub-cabecera p {
    margin: 0;
}

/* 3-Column Details Grid inside each Bono */
.bloque-text {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 28px auto;
}

.bloque-text:last-child {
    margin-bottom: 0;
}

.col-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.tit-col {
    color: #1abc9c;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.text-col {
    display: block;
    font-size: 14.5px;
    line-height: 1.6;
    color: #2c3e50;
}

/* Responsive Tables inside Alcance Column */
.table-wrapper {
    overflow-x: auto;
    max-inline-size: 100%;
    container-type: inline-size;
    border-radius: 6px;
}

.cuadro,
.tabla-alcance {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #1abc9c;
    background: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    line-height: 1.45;
}

.cuadro th,
.cuadro td,
.tabla-alcance th,
.tabla-alcance td {
    padding: 8px 10px;
    border: 1px solid rgba(26, 188, 156, 0.45);
    text-align: left;
    vertical-align: top;
}

.tabla-alcance thead {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
}

.cuadro th,
.tabla-alcance thead th {
    background-color: #1abc9c;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.tabla-alcance tbody tr:nth-child(even) {
    background-color: rgba(26, 188, 156, 0.06);
}

/* Footer Banner */
.kit-page-footer {
    background: #102830;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 28px 16px;
    font-size: 14px;
}

.kit-page-footer a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: 600;
}

.kit-page-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Tablet Responsive Adjustments (<= 991px)
   ========================================================================== */
@media screen and (max-width: 991px) {
    .bloque1 {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        padding-top: 28px;
    }

    .col1 {
        text-align: left;
    }

    .col2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bloque-text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .bloque-text > .col-text:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   Mobile Responsive Adjustments (<= 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {
    .contenido {
        padding-bottom: 32px;
    }

    .cabecera_logo {
        padding: 14px 0;
    }

    .cabecera_logo_inner {
        justify-content: center;
        text-align: center;
    }

    .cabecera_logo img {
        max-width: 180px;
    }

    .bloque1 {
        padding-top: 20px;
        padding-bottom: 16px;
        gap: 22px;
    }

    .col1 {
        font-size: 15px;
    }

    .col2 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .col2 a {
        padding: 10px 14px;
        font-size: 14.5px;
    }

    .bono {
        padding: 36px 16px;
    }

    .cabecera {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sub-titulo {
        font-size: 14.5px;
    }

    .sub-cabecera {
        font-size: 15px;
        padding-top: 12px;
    }

    .bloque-text {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .bloque-text > .col-text:nth-child(3) {
        grid-column: auto;
    }

    .tit-col {
        font-size: 16.5px;
        margin-bottom: 8px;
    }

    .cuadro,
    .tabla-alcance {
        font-size: 13px;
    }

    .cuadro th,
    .cuadro td,
    .tabla-alcance th,
    .tabla-alcance td {
        padding: 7px 8px;
    }
}

