
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f3f4f6; /* gris claro moderno */
    color: rgba(51, 51, 51, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 500;
    font-size: 1.25rem;
}

/* Indicador del ambiente integrado en el encabezado del inicio. */
.hero-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 2px;
}

.hero-title-row .hero-title {
    margin: 0;
}

.hero-environment-label {
    display: inline-block;
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #e8f3fc;
    color: #174a6b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.045em;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .hero-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-environment-label {
        order: -1;
    }
}

@media (max-width: 480px) {
    .hero-title-row {
        align-items: center;
    }
}

#main-slider,
.footer-modern {
    flex: 0 0 auto;
}

#pages {
    flex: 1 0 auto;
}

/* Barra de búsqueda moderna en la página de inicio */
.search-container {
    margin-bottom: 10px;
    margin-top: 0;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 4px 16px;
    background: #ffffff;
    border: 1px solid #dce6ee;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-bar .search-icon {
    color: #999;
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.search-bar .form-control {
    height: 40px;
    padding-left: 0;
    /* 16px evita que iOS haga zoom al enfocar el campo */
    font-size: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.search-bar .form-control:focus {
    box-shadow: none;
}

.search-hint {
    display: inline-block;
    margin-top: 6px;
    color: #6b7280;
}

.search-bar--focused {
    border-color: #bed7e9;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.no-results-message {
    margin-top: 10px;
    font-size: 13px;
    color: #9b1c1c;
}

/* Encabezados modernos para secciones (DICORER, Soporte, Informática) */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 12px;
    text-align: center;
}

.section-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
    background-color: #e5e7eb;
}

.section-pill.section-pill-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.section-pill.section-pill-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.section-pill.section-pill-success {
    background-color: #dcfce7;
    color: #166534;
}

.section-title {
    margin: 9px 0 0;
    color: #172b3b;
    font-size: 21px;
    font-weight: 600;
}

.section-subtitle {
    max-width: 620px;
    margin: 5px 0 0;
    color: #66717f;
    font-size: 13px;
}

/* =========================================================================
   Capacitaciones (resumen del inicio y agenda completa)
   ========================================================================= */
.cap-panel {
    position: relative;
    margin: 0 0 32px;
    color: #1f2937;
}

/* Aviso compacto de la próxima capacitación en el inicio */
.cap-home {
    margin: 0 0 22px;
    padding: 14px 16px;
    color: #1f2937;
    background: #f3f4f5;
    border: 1px solid #dfe3e6;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(34, 48, 61, 0.09);
}

.cap-home__encabezado,
.cap-home__titulo,
.cap-home__evento,
.cap-home__accion {
    display: flex;
    align-items: center;
}

.cap-home__encabezado {
    justify-content: flex-start;
    min-height: 30px;
}

.cap-home__titulo {
    min-width: 0;
}

.cap-home__punto {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-right: 9px;
    background: #7d8991;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(125, 137, 145, 0.12);
}

#pages .cap-home__titulo h2 {
    position: static;
    display: block;
    margin: 0;
    padding: 0;
    color: #243746;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.25;
}

.cap-home__evento {
    min-height: 82px;
    margin-top: 9px;
    padding: 8px 10px 8px 8px;
    background: #ffffff;
    border: 1px solid #dfe4e7;
    border-radius: 10px;
}

.cap-home__fecha {
    display: flex;
    flex: 0 0 68px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 66px;
    margin-right: 14px;
    color: #ffffff;
    text-align: center;
    background: #e56b6b;
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(50, 58, 64, 0.16);
}

.cap-home__fecha span {
    font-size: 28px;
    font-weight: 750;
    line-height: 1;
}

.cap-home__fecha strong {
    margin-top: 3px;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.cap-home__datos {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 18px;
}

.cap-home__estado {
    display: block;
    margin-bottom: 2px;
    color: #63717c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.cap-home__datos h3 {
    margin: 0 0 4px;
    color: #1e303f;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

.cap-home__datos p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.cap-home__datos p > span {
    margin-left: 8px;
    padding-left: 8px;
    color: #687582;
    font-size: 11px;
    border-left: 1px solid #cfd8df;
}

.cap-home__accion {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 42px;
    padding: 8px 9px;
    color: #315f7b;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    background: #e8f0f4;
    border: 1px solid #cfdee6;
    border-radius: 7px;
    box-shadow: none;
}

.cap-home__accion .cap-icon {
    width: 17px;
    height: 17px;
    margin-right: 6px;
}

.cap-home__accion:hover,
.cap-home__accion:focus {
    color: #21455c;
    text-decoration: none;
    background: #d2e3ed;
    border-color: #a8c5d6;
}

.cap-home__accion:focus {
    outline: 3px solid rgba(34, 116, 178, 0.38);
    outline-offset: 3px;
}

.cap-panel__encabezado {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cap-panel__titulo {
    max-width: 700px;
    padding-right: 24px;
}

.cap-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    color: #245f91;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cap-kicker__punto {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background: #7d8991;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(125, 137, 145, 0.12);
}

#pages .cap-panel__titulo h2 {
    position: static;
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: #162b3d;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.cap-panel__titulo p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.cap-resumen {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 82px;
    padding: 10px 16px;
    color: #5f6b73;
    background: #f3f5f6;
    border: 1px solid #dfe4e7;
    border-radius: 14px;
}

.cap-resumen strong {
    color: #4f7897;
    font-size: 28px;
    line-height: 1;
}

.cap-resumen span {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
}

.cap-list {
    display: block;
}

.cap-card {
    position: relative;
    display: flex;
    min-width: 0;
    margin: 0 0 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce6ee;
    border-radius: 16px;
    box-shadow: 0 9px 26px rgba(15, 43, 65, 0.09);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.cap-card:hover {
    border-color: #bed7e9;
    box-shadow: 0 13px 32px rgba(15, 43, 65, 0.13);
}

.cap-fecha {
    position: relative;
    display: flex;
    flex: 0 0 124px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 12px 18px;
    overflow: hidden;
    color: #bd4650;
    text-align: center;
    background: #fff5f5;
}

.cap-fecha__estado {
    position: absolute;
    top: 14px;
    left: 50%;
    max-width: calc(100% - 10px);
    padding: 4px 9px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.4;
    white-space: nowrap;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #bd4650;
    border-radius: 999px;
    transform: translateX(-50%);
}

.cap-fecha__dia {
    position: relative;
    z-index: 1;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.cap-fecha__mes {
    position: relative;
    z-index: 1;
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cap-fecha__anio {
    position: relative;
    z-index: 1;
    margin-top: 5px;
    color: #9f3640;
    font-size: 13px;
    font-weight: 600;
}

.cap-card__contenido {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 18px 20px;
}

.cap-card__cabecera {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 11px;
}

.cap-card__titulo {
    min-width: 0;
}

.cap-categoria {
    display: block;
    margin-bottom: 5px;
    color: #4f6f85;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cap-card__cabecera h3 {
    margin: 0;
    color: #172b3b;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.cap-meta {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px 4px;
    padding: 0;
    list-style: none;
}

.cap-meta li {
    display: flex;
    flex: 1 1 46%;
    align-items: flex-start;
    min-width: 220px;
    margin: 0 8px 9px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.cap-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
}

.cap-meta .cap-icon {
    margin: 1px 9px 0 0;
    color: #6287a0;
}

.cap-meta__secundario {
    display: block;
    margin-top: 1px;
    color: #66717f;
    font-size: 12px;
    font-weight: 400;
}

.cap-acceso {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: auto;
    padding: 13px 14px;
    background: #f7fafc;
    border: 1px solid #e2eaf0;
    border-radius: 12px;
}

.cap-acceso__grupo {
    flex: 0 1 auto;
    min-width: 0;
    padding-right: 24px;
}

.cap-acceso__titulo {
    display: block;
    margin-bottom: 6px;
    color: #52606d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cap-credenciales {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -11px;
}

.cap-credenciales > div {
    margin: 0 11px 3px;
}

.cap-credenciales dt {
    color: #66717f;
    font-size: 11px;
    font-weight: 600;
}

.cap-credenciales dd {
    margin: 1px 0 0;
    color: #1f2937;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.cap-enlace {
    flex: 1 1 300px;
    min-width: 0;
}

.cap-enlace__titulo {
    display: block;
    margin-bottom: 5px;
    color: #52606d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cap-enlace__control {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.cap-enlace__campo {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 8px 10px;
    overflow: hidden;
    color: #344654;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #cfdce5;
    border-radius: 7px 0 0 7px;
    box-shadow: none;
}

.cap-btn-copiar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 11px;
    color: #3f6e8d;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: #edf4f8;
    border: 1px solid #bfcfda;
    border-left: 0;
    border-radius: 0 7px 7px 0;
    cursor: pointer;
}

.cap-btn-copiar .cap-icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
}

.cap-btn-copiar:hover,
.cap-btn-copiar:focus {
    color: #2f5d79;
    background: #e1edf3;
}

.cap-btn-copiar.is-copied {
    color: #2f6b4d;
    background: #e7f3ec;
    border-color: #a9cbb8;
}

.cap-enlace__campo:focus,
.cap-btn-copiar:focus {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(34, 116, 178, 0.30);
    outline-offset: 2px;
}

.cap-copy-feedback {
    display: block;
    min-height: 14px;
    margin-top: 4px;
    color: #547083;
    font-size: 11px;
    line-height: 1.35;
}

.cap-btn-reunion {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-left: 16px;
    padding: 9px 15px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    background: #4b82a8;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(75, 130, 168, 0.20);
}

.cap-btn-reunion .cap-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

.cap-btn-reunion:hover,
.cap-btn-reunion:focus {
    color: #ffffff;
    background: #3f759a;
    box-shadow: 0 8px 18px rgba(63, 117, 154, 0.24);
}

.cap-btn-reunion:focus,
.cap-hero-back:focus {
    outline: 3px solid rgba(34, 116, 178, 0.38);
    outline-offset: 3px;
}

.cap-vacio {
    display: flex;
    align-items: center;
    min-height: 150px;
    margin: 0;
    padding: 26px 28px;
    color: #4b5563;
    text-align: left;
    background: #ffffff;
    border: 1px dashed #b9cedd;
    border-radius: 16px;
}

.cap-vacio__icono {
    display: inline-flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-right: 18px;
    color: #286fa9;
    background: #eaf3fa;
    border-radius: 16px;
}

.cap-vacio__icono svg {
    width: 29px;
    height: 29px;
    fill: currentColor;
}

.cap-vacio h3 {
    margin: 0 0 5px;
    color: #1f3445;
    font-size: 19px;
    font-weight: 600;
}

.cap-vacio p {
    margin: 0;
    color: #5e6976;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

/* Encabezado de la página de agenda */
.cap-page-hero .carousel-content {
    padding-top: 0;
}

.cap-page-hero .hero-logo-wrapper {
    margin-bottom: 14px;
}

.cap-page-hero .hero-logo {
    max-height: 64px;
}

.cap-page-hero .hero-divider {
    margin-bottom: 0;
}

.cap-hero-back {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    min-height: 34px;
    margin-bottom: 10px;
    padding: 7px 13px 7px 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(6, 26, 46, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(6, 26, 46, 0.45);
}

.cap-hero-back .cap-icon {
    margin-right: 5px;
}

.cap-hero-back:hover,
.cap-hero-back:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.7);
}

.cap-page-hero .hero-title {
    font-size: 32px;
}

.cap-page-hero .hero-subtitle {
    max-width: 630px;
    color: #cfd8e3;
    font-size: 12.5px;
    line-height: 1.5;
}

.cap-page .box.first {
    min-height: 260px;
}

@media (max-width: 991px) {
    .cap-acceso__grupo {
        flex-basis: 100%;
        margin-bottom: 12px;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .cap-home {
        margin-right: -16px;
        margin-left: -16px;
        padding: 12px;
        border-radius: 10px;
    }

    #pages .cap-home__titulo h2 {
        font-size: 15px;
    }

    .cap-home__evento {
        align-items: flex-start;
        flex-wrap: nowrap;
        padding: 9px;
    }

    .cap-home__fecha {
        flex-basis: 62px;
        align-self: flex-start;
        min-height: 70px;
        margin-right: 12px;
    }

    .cap-home__fecha span {
        font-size: 25px;
    }

    .cap-home__datos {
        flex: 1 1 0;
        padding-right: 0;
    }

    .cap-home__datos h3 {
        font-size: 17px;
    }

    .cap-home__datos p > span {
        display: block;
        margin: 2px 0 0;
        padding: 0;
        border-left: 0;
    }

    .cap-home__accion {
        width: 42px;
        flex-basis: 42px;
        align-self: center;
        margin: 0 0 0 6px;
        padding: 0;
    }

    .cap-home__accion .cap-icon {
        margin-right: 0;
    }

    .cap-home__accion > span {
        display: none;
    }

    .cap-panel {
        margin-right: -16px;
        margin-left: -16px;
    }

    .cap-panel__encabezado {
        align-items: flex-start;
        flex-direction: column;
    }

    .cap-panel__titulo {
        padding-right: 0;
    }

    #pages .cap-panel__titulo h2 {
        font-size: 23px;
    }

    .cap-panel__titulo p {
        font-size: 14px;
    }

    .cap-resumen {
        margin-top: 15px;
    }

    .cap-resumen {
        min-width: 92px;
        min-height: 68px;
        align-self: flex-start;
        flex-direction: row;
    }

    .cap-resumen strong {
        font-size: 23px;
    }

    .cap-resumen span {
        margin: 0 0 0 7px;
    }

    .cap-card {
        flex-direction: column;
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .cap-fecha {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: flex-start;
        width: auto;
        min-height: 0;
        padding: 12px 16px;
        text-align: left;
    }

    .cap-fecha__estado {
        position: static;
        left: auto;
        max-width: none;
        margin-right: auto;
        transform: none;
    }

    .cap-fecha__dia {
        margin-left: 12px;
        font-size: 30px;
    }

    .cap-fecha__mes {
        margin: 0 0 0 7px;
        font-size: 14px;
    }

    .cap-fecha__anio {
        margin: 2px 0 0 7px;
        font-size: 12px;
    }

    .cap-card__contenido {
        padding: 16px 15px;
    }

    .cap-card__cabecera {
        align-items: stretch;
        flex-direction: column;
    }

    .cap-card__cabecera h3 {
        font-size: 20px;
    }

    .cap-meta {
        display: block;
        margin-right: 0;
        margin-left: 0;
    }

    .cap-meta li {
        min-width: 0;
        margin-right: 0;
        margin-left: 0;
    }

    .cap-acceso {
        padding: 13px;
    }

    .cap-credenciales {
        display: block;
        margin: 0;
    }

    .cap-credenciales > div {
        margin: 0 0 8px;
    }

    .cap-btn-reunion {
        width: 100%;
        margin: 12px 0 0;
    }

    .cap-vacio {
        align-items: flex-start;
        padding: 22px 18px;
    }

    .cap-vacio__icono {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        margin-right: 13px;
    }

    .cap-page-hero .hero-title {
        font-size: 24px;
    }

    .cap-page-hero .hero-subtitle {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #main-slider,
    #main-slider::before {
        animation: none;
    }

    .cap-home__accion,
    .cap-card,
    .cap-btn-reunion,
    #pages .box.first .center {
        transition: none;
    }

    #pages .box.first .center:hover {
        transform: none;
    }
}

/* =========================================================================
   Rejilla de sistemas del inicio
   Las columnas de Bootstrap (col-md-4 / col-sm-6) solo definen ancho a partir
   de 768px, asi que al usar flex hay que declarar el ancho en cada escalon.
   Sin esto cada tarjeta se encoge al ancho de su propio texto.
   ========================================================================= */
#pages .box.first .row:not(.search-row) {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

#pages .box.first .row:not(.search-row) > div[class*="col-"] {
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    max-width: 100%;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    #pages .box.first .row:not(.search-row) > div[class*="col-"] {
        flex-basis: 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    #pages .box.first .row:not(.search-row) > div[class*="col-"] {
        flex-basis: 33.3333%;
        max-width: 33.3333%;
    }
}

/* El encabezado de seccion ocupa la fila completa */
#pages .box.first .row .section-header {
    flex: 0 0 100%;
    margin: 0 0 12px;
    padding: 0 15px;
}

#pages .box.first .row.search-row {
    margin-top: 0;
    margin-bottom: 18px;
}

#pages .box.first .row.search-row + .row {
    margin-top: 4px;
}

/* -------------------------------------------------------------------------
   Tarjeta de sistema: icono a la izquierda, nombre y descripcion a la derecha.
   Se declara flex primero como respaldo; los navegadores con grid toman el
   layout de dos columnas, que aprovecha el ancho y da alto uniforme.
   ------------------------------------------------------------------------- */
#pages .box.first .center {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 14px;
    min-height: 96px;
    padding: 14px 16px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dce6ee;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 43, 65, 0.07);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#pages .box.first .center > .icon-md {
    grid-row: 1 / span 2;
    grid-column: 1;
    align-self: center;
    margin: 0;
}

/* El logo de MAGA ya es un circulo completo: llena su contenedor y no
   necesita fondo detras. El leve sobreescalado tapa el margen transparente
   que trae el PNG; overflow lo recorta al circulo. */
#pages .box.first .center > .icon-maga {
    overflow: hidden;
    background: transparent;
}

#pages .box.first .center > .icon-maga > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    transform: scale(0.9);
}

#pages .box.first .center > h4 {
    grid-row: 1;
    grid-column: 2;
    align-self: end;
    margin: 0;
}

#pages .box.first .center > p {
    grid-row: 2;
    grid-column: 2;
    align-self: start;
    margin: 3px 0 0;
    color: #66717f;
    font-size: 13px;
    line-height: 1.4;
}

#pages .box.first .center > h4 > a {
    color: #172b3b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

/* Toda la tarjeta es zona de clic: el enlace del titulo se estira sobre ella.
   Se mantiene un solo enlace real, asi el lector de pantalla sigue anunciando
   el nombre del sistema y el clic medio abre en pestana nueva. */
#pages .box.first .center > h4 > a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-radius: 14px;
}

#pages .box.first .center:hover {
    transform: translateY(-2px);
    border-color: #bed7e9;
    box-shadow: 0 12px 26px rgba(15, 43, 65, 0.12);
}

#pages .box.first .center:hover > h4 > a {
    color: #2f5d79;
}

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 300;
}

a {
    color: rgba(30, 41, 59, 0.85);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    -webkit-transition: 300ms;
    -moz-transition: 300ms;
    -o-transition: 300ms;
    transition: 300ms;
}

.btn {
    font-weight: 300;
    border: 0;
}

    .btn.btn-primary {
        background-color: #16a34a;
    }

        .btn.btn-primary:hover, .btn.btn-primary.active {
            background-color: #15803d;
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
        }

a:hover, a:focus {
    color: #80c9f1;
    text-decoration: none;
    outline: none;
}
c
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 99999;
}

/* ============================================
   ENCABEZADO MODERNO - REDISEÑO COMPLETO
   ============================================ */

#main-slider {
    padding: 34px 0 74px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #17456b 0%, #1f5c8a 45%, #4e91dd 100%);
    background-size: 220% 220%;
    animation: heroDegradado 11s ease infinite;
    font-family: inherit;
}

@keyframes heroDegradado {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dos halos que se desplazan muy lento sobre el degradado */
#main-slider::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -20%;
    bottom: -20%;
    left: -20%;
    background:
        radial-gradient(circle at 22% 38%, rgba(255, 255, 255, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 76% 68%, rgba(72, 168, 216, 0.18) 0%, transparent 50%);
    animation: heroHalos 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroHalos {
    from { transform: translate3d(-1.5%, 0, 0) scale(1); }
    to { transform: translate3d(1.5%, -2.5%, 0) scale(1.1); }
}

/* Contenedor principal del hero */
.hero-header {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Encabezado del inicio: logo a la izquierda, texto al lado */
.hero-header--inline {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.hero-header--inline .hero-logo-wrapper {
    flex: 0 0 auto;
    margin-right: 22px;
    margin-bottom: 0;
}

.hero-header--inline .hero-content {
    min-width: 0;
}

.hero-header--inline .hero-divider {
    justify-content: flex-start;
    margin-bottom: 0;
}

/* Logo con efecto glassmorphism */
.hero-logo-wrapper {
    margin-bottom: 14px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.hero-logo {
    display: block;
    width: auto;
    max-height: 64px;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.25));
}

/* Contenido de texto */
.hero-content {
    width: 100%;
}

.hero-title {
    margin: 0 0 2px 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(6, 26, 46, 0.5), 0 2px 8px rgba(6, 26, 46, 0.4);
}

.hero-subtitle {
    margin: 0 0 10px 0;
    color: #cfd8e3;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(6, 26, 46, 0.6), 0 1px 4px rgba(6, 26, 46, 0.4);
}

.hero-divider {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

    .hero-divider::before {
        content: "";
        width: 40px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
    }

    .hero-divider::after {
        content: "";
        width: 15px;
        height: 2px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 2px;
    }

.hero-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 992px) {
    #main-slider {
        padding: 30px 0 70px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 11.5px;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    #main-slider {
        padding: 26px 0 66px;
    }

    .hero-header {
        padding: 8px 15px;
    }

    .hero-logo-wrapper {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .hero-logo {
        max-height: 50px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 11px;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #main-slider {
        padding: 20px 0 58px;
    }

    .hero-divider {
        display: none;
    }

    .hero-logo {
        max-height: 44px;
    }

    .hero-header--inline {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-header--inline .hero-logo-wrapper {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .hero-header--inline .hero-divider {
        justify-content: center;
    }

    .hero-title {
        font-size: 21px;
    }
    
    .hero-subtitle {
        font-size: 10.5px;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .hero-logo {
        max-height: 45px;
    }
    
    .hero-logo-wrapper {
        padding: 8px;
        margin-bottom: 10px;
    }
}


#contact .box {
    background-color: #222;
    color: #999;
}

    #contact .box h1, #contact .box h2, #contact .box h3 {
        color: #fff;
    }

    #contact .box a {
        color: #999;
    }

        #contact .box a:hover {
            color: #52b6ec;
        }

    #contact .box input[type="text"], #contact .box input[type="email"], #contact .box textarea {
        background-color: #111;
        border: 0;
        -webkit-transition: 300ms;
        -moz-transition: 300ms;
        -o-transition: 300ms;
        transition: 300ms;
    }

        #contact .box input[type="text"]:focus, #contact .box input[type="email"]:focus, #contact .box textarea:focus {
            background-color: #000;
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
        }

.box {
    padding: 50px 30px;
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
    position: relative;
}

    .box.first {
        margin-top: -40px;
        padding-top: 25px;
        padding-bottom: 30px;
        border-radius: 5px 5px 0 0;
    }

    .box.last {
        border-radius: 0 0 5px 5px;
    }

    .box h2 {
        padding: 10px 30px;
        display: inline-block;
        border-radius: 4px;
        position: relative;
        margin-bottom: 30px;
        font-size: 48px;
    }

#portfolio .box {
    background: #f3f3f3;
}

.portfolio-items, .portfolio-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-items {
    margin-right: -20px;
}

.portfolio-filter {
    margin-bottom: 50px;
    text-align: center;
}

    .portfolio-filter > li {
        display: inline-block;
    }

.portfolio-items > li {
    float: left;
    padding: 0;
    margin: 0;
}

.portfolio-items.col-2 > li {
    width: 50%;
}

.portfolio-items.col-3 > li {
    width: 33%;
}

.portfolio-items.col-4 > li {
    width: 25%;
}

.portfolio-items.col-5 > li {
    width: 20%;
}

.portfolio-items.col-6 > li {
    width: 16%;
}

.portfolio-item .item-inner {
    margin: 0 20px 20px 0;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #e1e1e1;
}

.portfolio-item img {
    width: 100%;
}

.portfolio-item .portfolio-image {
    position: relative;
}

.portfolio-item h5 {
    margin: 0;
    padding: 10px 0 0 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(255,255,255,0.9);
    text-align: center;
    vertical-align: middle;
    -webkit-transition: opacity 300ms;
    -moz-transition: opacity 300ms;
    -o-transition: opacity 300ms;
    transition: opacity 300ms;
}

    .portfolio-item .overlay .preview {
        position: relative;
        top: 50%;
        display: inline-block;
        margin-top: -20px;
    }

.portfolio-item:hover .overlay {
    opacity: 1;
}

.isotope-item {
    z-index: 2;
}

.isotope-hidden.isotope-item {
    pointer-events: none;
    z-index: 1;
}

.isotope, .isotope .isotope-item {
    -webkit-transition-duration: 0.8s;
    -moz-transition-duration: 0.8s;
    -ms-transition-duration: 0.8s;
    -o-transition-duration: 0.8s;
    transition-duration: 0.8s;
}

.isotope {
    -webkit-transition-property: height,width;
    -moz-transition-property: height,width;
    -ms-transition-property: height,width;
    -o-transition-property: height,width;
    transition-property: height,width;
}

    .isotope .isotope-item {
        -webkit-transition-property: -webkit-transform,opacity;
        -moz-transition-property: -moz-transform,opacity;
        -ms-transition-property: -ms-transform,opacity;
        -o-transition-property: -o-transform,opacity;
        transition-property: transform,opacity;
    }

        .isotope.no-transition, .isotope.no-transition .isotope-item, .isotope .isotope-item.no-transition {
            -webkit-transition-duration: 0s;
            -moz-transition-duration: 0s;
            -ms-transition-duration: 0s;
            -o-transition-duration: 0s;
            transition-duration: 0s;
        }

    .isotope.infinite-scrolling {
        -webkit-transition: none;
        -moz-transition: none;
        -ms-transition: none;
        -o-transition: none;
        transition: none;
    }

#pricing .box {
    background-color: #f9f9f9;
}

#pricing .plan {
    background: #fff;
    list-style: none;
    margin: 0 0 20px;
    text-align: center;
    padding: 0;
    border-bottom: 1px solid #e1e1e1;
}

    #pricing .plan li {
        padding: 10px 0;
        margin: 0 15px;
        border-bottom: 1px dashed #eee;
    }

        #pricing .plan li.plan-name {
            padding: 15px 0;
            font-size: 18px;
            font-weight: 700;
        }

        #pricing .plan li.plan-price {
            color: #666;
            padding: 15px 0;
            font-size: 48px;
        }

        #pricing .plan li.plan-action {
            margin-top: 20px;
            margin-bottom: 20px;
            border-bottom: 0;
        }

    #pricing .plan.featured {
        -webkit-transform: scale(1.05);
        -moz-transform: scale(1.05);
        -ms-transform: scale(1.05);
        -o-transform: scale(1.05);
        transform: scale(1.05);
    }

        #pricing .plan.featured .plan-price {
            color: #fff;
            background-color: #52b6ec;
            border-bottom-color: #52b6ec;
            margin: 0;
        }

#services .box {
    padding-bottom: 0;
}

#services .row > div {
    margin-bottom: 50px;
}

.center {
    text-align: center;
}

#team-scroller .designation {
    margin-top: 10px;
    display: block;
}

.member {
    margin: 0 50px;
    text-align: center;
}

.carousel.scale .left-arrow, .carousel.scale .right-arrow {
    top: 30%;
    position: absolute;
}

.carousel.scale .left-arrow {
    left: -10px;
}

.carousel.scale .right-arrow {
    right: -10px;
}

.carousel.scale .active .row > div:nth-child(1) {
    -webkit-animation: scaleUp 200ms linear 0 both;
    -moz-animation: scaleUp 200ms linear 0 both;
    -ms-animation: scaleUp 200ms linear 0 both;
    -o-animation: scaleUp 200ms linear 0 both;
    animation: scaleUp 200ms linear 0 both;
}

.carousel.scale .active .row > div:nth-child(2) {
    -webkit-animation: scaleUp 200ms linear 100ms both;
    -moz-animation: scaleUp 200ms linear 100ms both;
    -ms-animation: scaleUp 200ms linear 100ms both;
    -o-animation: scaleUp 200ms linear 100ms both;
    animation: scaleUp 200ms linear 100ms both;
}

.carousel.scale .active .row > div:nth-child(3) {
    -webkit-animation: scaleUp 200ms linear 200ms both;
    -moz-animation: scaleUp 200ms linear 200ms both;
    -ms-animation: scaleUp 200ms linear 200ms both;
    -o-animation: scaleUp 200ms linear 200ms both;
    animation: scaleUp 200ms linear 200ms both;
}

.carousel.scale .active .row > div:nth-child(4) {
    -webkit-animation: scaleUp 200ms linear 400ms both;
    -moz-animation: scaleUp 200ms linear 400ms both;
    -ms-animation: scaleUp 200ms linear 400ms both;
    -o-animation: scaleUp 200ms linear 400ms both;
    animation: scaleUp 200ms linear 400ms both;
}

.icon-lg {
    font-size: 48px;
    height: 108px;
    width: 108px;
    line-height: 108px;
    color: #fff;
    margin: 10px;
    background-color: rgba(0,0,0,0.4);
    text-align: center;
    display: inline-block !important;
    border-radius: 100%;
}

.icon-md {
    font-size: 24px;
    height: 68px;
    width: 68px;
    line-height: 68px;
    color: #fff;
    margin-right: 10px;
    background-color: rgba(0,0,0,0.4);
    text-align: center;
    display: inline-block;
    border-radius: 100%;
    margin-bottom: 10px;
}

.icon-red {
    background-color: #e74c3c;
}

.icon-green {
    background-color: #449d44;
}

.icon-blue {
    background-color: #3498db;
}

.icon-color4 {
    background-color: #8e44ad;
}

.icon-color5 {
    background-color: #1abc9c;
}

.icon-color6 {
    background-color: #2c3e50;
}

.icon-gray {
    background-color: lightgray;
}

.icon-purple {
    background-color: mediumpurple;
}

.gap {
    margin-bottom: 50px;
}

.big-gap {
    margin-bottom: 100px;
}

#footer {
    padding-top: 30px;
    padding-bottom: 30px;
    color: #999;
}

    #footer a {
        color: #999;
    }

        #footer a:hover {
            color: #52b6ec;
        }

div.social {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

div.social {
    margin: 0 0 20px;
}

    div.social > a {
        display: block;
        font-size: 18px;
    }

        div.social > a i {
            margin-right: 10px;
        }

textarea#message {
    padding: 10px 15px;
    height: 220px;
}

@keyframes scaleUp {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@-moz-keyframes scaleUp {
    0% {
        opacity: 0;
        -moz-transform: scale(0.3);
    }

    100% {
        opacity: 1;
        -moz-transform: scale(1);
    }
}

@-webkit-keyframes scaleUp {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.3);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
    }
}

@-ms-keyframes scaleUp {
    0% {
        opacity: 0;
        -ms-transform: scale(0.3);
    }

    100% {
        opacity: 1;
        -ms-transform: scale(1);
    }
}

@-o-keyframes scaleUp {
    0% {
        opacity: 0;
        -o-transform: scale(0.3);
    }

    100% {
        opacity: 1;
        -o-transform: scale(1);
    }
}

/* footer */

.footer-modern {
    background-color: #222;
    color: #bbb;
    padding: 34px 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    border-top: 4px solid #337ab7;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 18px;
}

.footer-info, .footer-social {
    flex: 1;
    min-width: 280px;
}

/* Título en Blanco Puro */
.footer-title,
.social-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-divider,
.social-title::after {
    display: block;
    width: 50px;
    height: 3px;
    margin-bottom: 14px;
    background-color: #337ab7;
}

/* La columna de redes no trae divisor propio en el markup */
.social-title::after {
    content: "";
    margin-top: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    line-height: 1.45;
}

/* Estilo para los iconos informativos */
.info-icon {
    width: 20px;
    height: 20px;
    fill: #337ab7;
    flex-shrink: 0;
    margin-top: 2px;
}

.link-highlight {
    color: #337ab7;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

    .link-highlight:hover {
        color: #ffffff;
    }

/* Redes Sociales */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icon-svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.3s, fill 0.3s;
}

/* Hover General: Texto se aclara */
.social-icon:hover {
    transform: translateX(2px); /* Desplazamiento sutil */
}

/* Facebook: Azul */
.fb-hover:hover {
    color: #1877F2;
}

    .fb-hover:hover .icon-svg {
        fill: #1877F2;
    }

/* X: Blanco (sobre fondo oscuro) */
.x-hover:hover {
    color: #ffffff;
}

    .x-hover:hover .icon-svg {
        fill: #ffffff;
    }

/* YouTube: Rojo */
.yt-hover:hover {
    color: #FF0000;
}

    .yt-hover:hover .icon-svg {
        fill: #FF0000;
    }

.footer-bottom {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #444;
    text-align: center;
}

    .footer-bottom p {
        margin: 0;
        color: #eee;
        font-size: 12.5px;
        letter-spacing: 0.5px;
    }
