﻿
:root {
    --navy: #123653;
    --navy-dark: #0b2941;
    --navy-light: #1b5c91;
    --text: #253644;
    --text-medium: #516372;
    --text-soft: #7b8996;
    --background: #f5f7f8;
    --background-light: #fafbfc;
    --border: #dde4e9;
    --border-light: #e9edf0;
    --white: #ffffff;
    --green-bg: #e7f5ec;
    --green-text: #267441;
    --red-bg: #faeaea;
    --red-text: #963333;
}


/* =========================================================
   GENERAL
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
}

.page-width {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

.skip-link {
    position: fixed;
    top: -60px;
    left: 20px;
    z-index: 9999;
    padding: 10px 15px;
    background: var(--navy-dark);
    color: #ffffff;
    border-radius: 0 0 6px 6px;
    font-size: 12px;
    font-weight: 700;
}

    .skip-link:focus {
        top: 0;
    }


/* =========================================================
   BARRA OFICIAL
   ========================================================= */

.official-bar {
    background: #f3f5f7;
    color: #475869;
    border-bottom: 1px solid #e0e5e8;
}

.official-bar-inner {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.official-left,
.official-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
}

.official-pr {
    width: 28px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #ffffff;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
}

.official-dot {
    width: 6px;
    height: 6px;
    background: #28924d;
    border-radius: 50%;
}

.official-right a {
    margin-left: 7px;
    color: var(--navy-light);
    font-weight: 700;
}

    .official-right a:hover {
        text-decoration: underline;
    }


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo-wrapper {
    width: 66px;
    min-width: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 62px;
    max-height: 62px;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brand-government {
    margin-bottom: 1px;
    color: #87939d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.brand-agency {
    color: #1e303e;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.brand-service {
    margin-top: 2px;
    color: #6e7e8c;
    font-size: 12px;
}


/* =========================================================
   NAVEGACION
   ========================================================= */

.main-nav {
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

    .main-nav a {
        display: flex;
        align-items: center;
        padding: 0 15px;
        color: #475869;
        border-bottom: 3px solid transparent;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }

        .main-nav a:hover {
            color: var(--navy-light);
            background: #fafbfc;
            border-bottom-color: #91adc1;
        }

.external-mark {
    margin-left: 5px;
    font-size: 9px;
}


/* =========================================================
   MAIN
   ========================================================= */

.main-content {
    min-height: 540px;
}


/* =========================================================
   HERO
   ========================================================= */

.search-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 115deg, #0e304b 0%, #164d74 60%, #1a608e 100% );
    padding: 47px 0 83px;
    color: #ffffff;
}

    .search-hero::before {
        content: "";
        position: absolute;
        top: -190px;
        right: -145px;
        width: 430px;
        height: 430px;
        border: 1px solid rgba(255,255,255,.06);
        border-radius: 50%;
    }

    .search-hero::after {
        content: "";
        position: absolute;
        top: -110px;
        right: -65px;
        width: 275px;
        height: 275px;
        border: 1px solid rgba(255,255,255,.04);
        border-radius: 50%;
    }

.search-hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.search-hero-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #c6d8e5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .85px;
    text-transform: uppercase;
}

.search-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.35px;
}

.search-hero p {
    max-width: 670px;
    margin: 11px auto 0;
    color: #d8e5ed;
    font-size: 14px;
    line-height: 1.65;
}

.search-period {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c4d6e2;
    font-size: 10px;
}

    .search-period strong {
        color: #ffffff;
        font-size: 11px;
    }

.period-dot {
    width: 7px;
    height: 7px;
    background: #5fc078;
    border-radius: 50%;
}


/* =========================================================
   BUSQUEDA
   ========================================================= */

.search-area {
    background: var(--background);
    padding-bottom: 32px;
}

.search-card {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 900px;
    margin: -46px auto 0;
    padding: 25px 28px 23px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 9px 30px rgba(15,42,66,.09);
}

.search-card-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

.search-card-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #edf4f8;
    color: var(--navy-light);
    border-radius: 7px;
}

    .search-card-icon svg {
        display: block !important;
        width: 15px !important;
        height: 15px !important;
        min-width: 15px !important;
        min-height: 15px !important;
        max-width: 15px !important;
        max-height: 15px !important;
    }

.search-card-header h2 {
    margin: 0;
    color: #223746;
    font-size: 19px;
    font-weight: 700;
}

.search-card-header p {
    margin: 2px 0 0;
    color: #73818e;
    font-size: 11px;
}


/* =========================================================
   CAMPO BUSQUEDA
   ========================================================= */

.field-label {
    display: block;
    margin-bottom: 6px;
    color: #465866;
    font-size: 11px;
    font-weight: 700;
}

.search-control {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #becbd4;
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .search-control:focus-within {
        border-color: #638ead;
        box-shadow: 0 0 0 3px rgba(27,92,145,.08);
    }

.search-input-container {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #83909a;
    pointer-events: none;
}

    .search-input-icon svg {
        display: block !important;
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
    }

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    color: #293c4b;
    background: transparent;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 14px;
}

    .search-input::placeholder {
        color: #99a4ad;
    }

.search-button {
    min-width: 128px;
    height: 48px;
    padding: 0 21px;
    background: var(--navy);
    color: #ffffff;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

    .search-button:hover {
        background: var(--navy-dark);
    }

.search-criteria {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: #7f8c97;
    font-size: 10px;
}

.search-criteria-title {
    color: #607180;
    font-weight: 700;
}

.criteria-dot {
    color: #b2bbc2;
}


/* =========================================================
   MENSAJES
   ========================================================= */

.search-message {
    padding: 0 0 20px;
    background: var(--background);
}

.message-box {
    padding: 13px 16px;
    background: #eef6fb;
    color: #285d7b;
    border: 1px solid #d0e1eb;
    border-radius: 7px;
    font-size: 12px;
}

.message-info-container .message-box {
    background: #eef6fb;
    color: #285d7b;
    border-color: #d0e1eb;
}

.message-error-container .message-box {
    background: #fff0f0;
    color: #8f3131;
    border-color: #edcccc;
}


/* =========================================================
   RESULTADOS
   ========================================================= */

.results-section {
    background: linear-gradient( 180deg, #f5f7f8 0%, #f8fafb 100% );
    padding: 10px 0 58px;
}

.results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 14px;
}

.results-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #7f8c97;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.results-heading h2 {
    margin: 0;
    color: #203746;
    font-size: 21px;
    font-weight: 700;
}

.results-heading p {
    margin: 3px 0 0;
    color: #7d8994;
    font-size: 10px;
}

.results-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    background: #ffffff;
    color: #627280;
    border: 1px solid #dce3e8;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   GRID RESULTADOS
   ========================================================= */

.results-container {
    width: 100%;
}

.results-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 9px;
}

    .results-grid > tbody > tr {
        transition: transform .15s ease;
    }

        .results-grid > tbody > tr > td {
            padding: 16px 14px;
            background: #ffffff;
            border-top: 1px solid #dfe5e9;
            border-bottom: 1px solid #dfe5e9;
            vertical-align: middle;
        }

            .results-grid > tbody > tr > td:first-child {
                width: 44%;
                border-left: 4px solid #1b5c91;
                border-radius: 9px 0 0 9px;
            }

            .results-grid > tbody > tr > td:last-child {
                border-right: 1px solid #dfe5e9;
                border-radius: 0 9px 9px 0;
            }

        .results-grid > tbody > tr:hover {
            transform: translateY(-1px);
        }

            .results-grid > tbody > tr:hover > td {
                background: #fcfdfe;
            }


/* =========================================================
   RESULTADO - ESCUELA
   ========================================================= */

.result-identity {
    min-width: 310px;
}

.result-school {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.result-school-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    flex: 0 0 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin-top: 1px;
    background: #edf4f8;
    color: #1b5c91;
    border-radius: 6px;
}

    .result-school-icon svg {
        display: block !important;
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
        flex: none !important;
    }

.result-school-content {
    min-width: 0;
}

.result-type-label {
    display: block;
    margin-bottom: 2px;
    color: #87949e;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .55px;
    text-transform: uppercase;
}

.result-school-name {
    color: #203746;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}


/* =========================================================
   RESULTADO - IGLESIA
   ========================================================= */

.result-church {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 9px 0 0 34px;
    padding-top: 8px;
    border-top: 1px solid #edf0f2;
}

.result-church-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex: 0 0 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #f2eef7;
    color: #69598c;
    border-radius: 5px;
}

    .result-church-icon svg {
        display: block !important;
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
        flex: none !important;
    }

.result-church-label {
    display: block;
    margin-bottom: 1px;
    color: #9589a5;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.result-church-name {
    color: #586a78;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}


/* =========================================================
   RESULTADO - NUMERO I-E
   ========================================================= */

.result-data-block {
    min-width: 90px;
}

.result-data-label {
    display: block;
    margin-bottom: 4px;
    color: #8b97a0;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .48px;
    text-transform: uppercase;
}

.result-ie {
    color: #1b5c91;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   RESULTADO - MUNICIPIO
   ========================================================= */

.result-municipality {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #485e6d;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

    .result-municipality svg {
        display: block !important;
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
        flex: 0 0 12px !important;
        color: #718897;
    }


/* =========================================================
   RESULTADO - PERIODO
   ========================================================= */

.result-period {
    display: block;
    margin-top: 5px;
    color: #88959e;
    font-size: 8px;
}


/* =========================================================
   ESTADOS
   ========================================================= */

.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.status-active {
    background: var(--green-bg);
    color: var(--green-text);
}

.status-expired {
    background: var(--red-bg);
    color: var(--red-text);
}

.status-other {
    background: #edf1f4;
    color: #61717f;
}


/* =========================================================
   BOTON DETALLE
   ========================================================= */

.result-action-cell {
    width: 1%;
    white-space: nowrap;
}

.result-detail-button {
    min-width: 108px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #ffffff;
    color: #1b5c91 !important;
    border: 1px solid #8da9bc;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

    .result-detail-button:hover {
        background: #123653;
        color: #ffffff !important;
        border-color: #123653;
    }


/* =========================================================
   AYUDA RESULTADOS
   ========================================================= */

.results-help {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 15px;
    padding: 11px 13px;
    background: #eef4f7;
    color: #617482;
    border: 1px solid #dce6ec;
    border-radius: 7px;
}

.results-help-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1b5c91;
    border: 1px solid #ccdbe4;
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 10px;
    font-weight: bold;
}

.results-help strong {
    display: block;
    margin-bottom: 1px;
    color: #425b6b;
    font-size: 9px;
}

.results-help span {
    display: block;
    font-size: 9px;
    line-height: 1.5;
}


/* =========================================================
   NOTA INFERIOR
   ========================================================= */

.page-note {
    padding: 19px 0;
    background: #fafbfc;
    border-top: 1px solid var(--border-light);
}

    .page-note p {
        margin: 0;
        color: #86919a;
        text-align: center;
        font-size: 10px;
    }


/* =========================================================
   DETALLE - PAGINA
   ========================================================= */

.detail-page {
    position: relative;
    background: linear-gradient( 180deg, #edf3f7 0, #f7f9fa 240px, #f5f7f8 100% );
    padding: 24px 0 65px;
}

.detail-top-navigation {
    margin-bottom: 15px;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #47687f;
    font-size: 11px;
    font-weight: 700;
}

    .detail-back-link:hover {
        color: #123653;
    }

.detail-back-arrow {
    font-size: 14px;
}

.detail-error {
    margin-bottom: 20px;
    padding: 13px 15px;
    background: #fff0f0;
    color: #913333;
    border: 1px solid #edcccc;
    border-radius: 7px;
    font-size: 12px;
}


/* =========================================================
   DETALLE - HERO
   ========================================================= */

.detail-identity-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    background: linear-gradient( 120deg, #103653 0%, #174f76 58%, #1d6595 100% );
    color: #ffffff;
    border-radius: 13px;
    box-shadow: 0 8px 25px rgba(15,42,66,.11);
}

.detail-identity-content {
    position: relative;
    z-index: 2;
    padding: 27px 30px 24px;
}

.detail-logo-watermark {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 48px !important;
    height: 48px !important;
    overflow: hidden;
    opacity: .05;
    pointer-events: none;
}

    .detail-logo-watermark img {
        display: block;
        width: 48px !important;
        height: 48px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 48px !important;
        max-height: 48px !important;
        object-fit: contain;
        filter: grayscale(1) brightness(4);
    }


/* =========================================================
   DETALLE - ESCUELA
   ========================================================= */

.detail-school-block {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 950px;
}

.detail-school-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex: 0 0 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 3px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 5px;
    color: #ffffff;
}

    .detail-school-icon svg {
        display: block !important;
        width: 12px !important;
        height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
    }

.detail-school-content {
    min-width: 0;
}

.detail-identity-label {
    margin-bottom: 3px;
    color: #b9d3e4;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .75px;
    text-transform: uppercase;
}

.detail-school-name {
    margin: 0;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.35px;
}


/* =========================================================
   DETALLE - IGLESIA
   ========================================================= */

.detail-church-block {
    max-width: 930px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 13px;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 8px;
}

.detail-church-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex: 0 0 22px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #d7e7f0;
}

    .detail-church-icon svg {
        display: block !important;
        width: 12px !important;
        height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
    }

.detail-church-label {
    display: block;
    color: #afcddd;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.detail-church-name {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}


/* =========================================================
   DETALLE - META
   ========================================================= */

.detail-primary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 19px;
}

.detail-meta-box {
    min-width: 125px;
    padding: 9px 11px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
}

.detail-meta-blue {
    background: rgba(255,255,255,.14);
}

.detail-meta-vigencia {
    min-width: 180px;
}

.detail-meta-caption {
    display: block;
    margin-bottom: 2px;
    color: #b7cedc;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.detail-meta-box strong {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.detail-meta-blue strong {
    font-size: 13px;
}

.detail-enrollment-number {
    font-size: 14px !important;
}


/* =========================================================
   DETALLE - BADGES
   ========================================================= */

.detail-badge,
.detail-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.detail-badge-active,
.detail-status-active {
    background: #e7f5ec;
    color: #267441;
}

.detail-badge-expired,
.detail-status-expired {
    background: #faeaea;
    color: #963333;
}

.detail-badge-approved,
.detail-status-approved {
    background: #edf1f4;
    color: #536775;
}


/* =========================================================
   DETALLE - CARDS
   ========================================================= */

.detail-color-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 0 22px 22px;
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-radius: 10px;
}

    .detail-color-card::before {
        content: "";
        display: block;
        height: 3px;
        margin: 0 -22px 17px;
    }

.detail-card-blue::before {
    background: linear-gradient( 90deg, #1b5c91, #4f92bd );
}

.detail-card-green::before {
    background: linear-gradient( 90deg, #2f7d59, #67aa80 );
}

.detail-card-orange::before {
    background: linear-gradient( 90deg, #c3762d, #e4aa67 );
}

.detail-card-purple::before {
    background: linear-gradient( 90deg, #62528c, #9688bb );
}

.detail-card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e8ecef;
}

.detail-card-heading-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex: 0 0 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef4f7;
    color: #1b5c91;
    border-radius: 5px;
}

    .detail-card-heading-icon svg {
        display: block !important;
        width: 12px !important;
        height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
    }

.detail-card-green .detail-card-heading-icon {
    background: #edf7f1;
    color: #337558;
}

.detail-card-orange .detail-card-heading-icon {
    background: #fbf3e9;
    color: #b46b29;
}

.detail-card-purple .detail-card-heading-icon {
    background: #f1eef7;
    color: #62528c;
}

.detail-card-eyebrow {
    display: block;
    color: #8a969f;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.detail-card-heading h2 {
    margin: 0;
    color: #213746;
    font-size: 16px;
    font-weight: 700;
}


/* =========================================================
   DETALLE - DATOS
   ========================================================= */

.detail-information-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    column-gap: 32px;
}

.detail-info-item {
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f2;
}

.detail-info-wide {
    grid-column: span 2;
}

.detail-info-label {
    display: block;
    margin-bottom: 2px;
    color: #8a969f;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.detail-info-value {
    display: block;
    color: #354a59;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.detail-info-emphasis {
    color: #324c62;
    font-size: 14px;
    font-weight: 700;
}

.detail-info-value a {
    color: #1b5c91;
    font-weight: 600;
}


/* =========================================================
   DETALLE - UBICACION
   ========================================================= */

.detail-two-column-layout {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 17px;
}

.detail-subcard {
    padding: 15px 16px;
    background: #f9fbfc;
    border: 1px solid #e4e9ed;
    border-radius: 7px;
}

.detail-subcard-title {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    color: #385361;
    font-size: 11px;
    font-weight: 700;
}

.subcard-icon {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #47836a;
}

    .subcard-icon svg {
        display: block !important;
        width: 11px !important;
        height: 11px !important;
        max-width: 11px !important;
        max-height: 11px !important;
    }

.detail-list-row {
    padding: 8px 0;
    border-bottom: 1px solid #e9edef;
}

    .detail-list-row:last-child {
        border-bottom: 0;
    }


/* =========================================================
   DETALLE - ACADEMICO
   ========================================================= */

.academic-cards {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
}

.academic-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eadfce;
    border-radius: 8px;
}

.academic-card-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    background: #fbf4ea;
    border-bottom: 1px solid #eadfce;
}

.academic-card-icon {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c3762d;
    color: #ffffff;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 700;
}

.academic-card-kicker {
    display: block;
    color: #9c866f;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.academic-card-header strong {
    color: #654b34;
    font-size: 12px;
}

.academic-card-body {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1px;
    background: #ece1d5;
}

.academic-stat {
    padding: 12px;
    background: #ffffff;
}

    .academic-stat > span {
        display: block;
        color: #9b8a79;
        font-size: 7px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .academic-stat > strong {
        color: #4b443c;
        font-size: 13px;
    }

.detail-empty-state {
    padding: 15px;
    background: #fafbfc;
    color: #7c8994;
    border: 1px dashed #d3dbe1;
    border-radius: 6px;
    font-size: 11px;
}


/* =========================================================
   DETALLE - REGISTRO
   ========================================================= */

.detail-registration-card {
    overflow: hidden;
    margin-top: 18px;
    background: linear-gradient( 135deg, #172f43, #213f55 );
    color: #ffffff;
    border-radius: 10px;
}

.detail-registration-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.detail-registration-icon {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;
}

    .detail-registration-icon svg {
        display: block !important;
        width: 11px !important;
        height: 11px !important;
        max-width: 11px !important;
        max-height: 11px !important;
    }

.detail-registration-heading span {
    display: block;
    color: #9fbacb;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-registration-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
}

.detail-registration-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    padding: 0 6px 6px;
    gap: 1px;
}

.registration-data {
    padding: 12px;
    background: rgba(255,255,255,.05);
}

    .registration-data > span {
        display: block;
        margin-bottom: 2px;
        color: #a6becd;
        font-size: 7px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .registration-data > strong {
        color: #ffffff;
        font-size: 10px;
    }

.detail-bottom-actions {
    margin-top: 20px;
    text-align: center;
}

.detail-return-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    background: #ffffff;
    color: #1b5c91;
    border: 1px solid #8da9bc;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}

    .detail-return-button:hover {
        background: #123653;
        color: #ffffff;
        border-color: #123653;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #102d45;
    color: #c3d0da;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding-top: 36px;
    padding-bottom: 34px;
}

.footer-agency {
    max-width: 390px;
}

.footer-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.footer-subtitle {
    margin-top: 2px;
    color: #93a9b9;
    font-size: 10px;
}

.footer-agency p {
    margin: 13px 0 0;
    color: #aebfcb;
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 75px;
}

.footer-column {
    min-width: 145px;
}

.footer-heading {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    margin-bottom: 7px;
    color: #bdcbd5;
    font-size: 11px;
}

    .footer-column a:hover {
        color: #ffffff;
        text-decoration: underline;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
}

.footer-bottom-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #849dad;
    font-size: 9px;
}


/* =========================================================
   RESPONSIVE 900
   ========================================================= */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .results-grid {
        border-spacing: 0 12px;
    }

        .results-grid > tbody > tr {
            display: grid;
            grid-template-columns: repeat(3,1fr);
        }

            .results-grid > tbody > tr > td {
                border: 0;
                padding: 10px 14px;
            }

                .results-grid > tbody > tr > td:first-child {
                    width: auto;
                    grid-column: 1 / -1;
                    border-top: 1px solid #e0e6ea;
                    border-left: 4px solid #1b5c91;
                    border-right: 1px solid #e0e6ea;
                    border-radius: 9px 9px 0 0;
                }

                .results-grid > tbody > tr > td:nth-child(2) {
                    border-left: 4px solid #1b5c91;
                }

                .results-grid > tbody > tr > td:nth-child(4) {
                    border-right: 1px solid #e0e6ea;
                }

                .results-grid > tbody > tr > td:last-child {
                    grid-column: 1 / -1;
                    border-left: 4px solid #1b5c91;
                    border-right: 1px solid #e0e6ea;
                    border-bottom: 1px solid #e0e6ea;
                    border-radius: 0 0 9px 9px;
                }

    .result-detail-button {
        width: 100%;
    }

    .detail-information-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .detail-registration-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}


/* =========================================================
   RESPONSIVE 700
   ========================================================= */

@media (max-width: 700px) {

    .page-width {
        padding-left: 15px;
        padding-right: 15px;
    }

    .official-right {
        display: none;
    }

    .header-inner {
        min-height: 78px;
    }

    .brand-logo-wrapper {
        width: 50px;
        min-width: 50px;
    }

    .brand-logo {
        max-width: 48px;
        max-height: 48px;
    }

    .brand-government {
        display: none;
    }

    .brand-agency {
        font-size: 16px;
    }

    .brand-service {
        font-size: 10px;
    }

    .search-hero {
        padding: 35px 0 72px;
    }

        .search-hero h1 {
            font-size: 28px;
        }

    .search-card {
        padding: 21px 18px;
    }

    .search-control {
        display: block;
    }

    .search-input {
        margin-bottom: 5px;
    }

    .search-button {
        width: 100%;
    }

    .results-heading {
        display: block;
    }

    .results-count {
        margin-top: 8px;
    }

    .detail-information-grid {
        grid-template-columns: 1fr;
    }

    .detail-info-wide {
        grid-column: auto;
    }

    .detail-two-column-layout {
        grid-template-columns: 1fr;
    }

    .academic-cards {
        grid-template-columns: 1fr;
    }

    .detail-registration-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 28px;
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 25px;
    }

    .footer-bottom-inner {
        display: block;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}


/* =========================================================
   RESPONSIVE 600
   ========================================================= */

@media (max-width: 600px) {

    .results-grid > tbody > tr {
        display: block;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid #e0e6ea;
        border-left: 4px solid #1b5c91;
        border-radius: 9px;
    }

        .results-grid > tbody > tr > td,
        .results-grid > tbody > tr > td:first-child,
        .results-grid > tbody > tr > td:nth-child(2),
        .results-grid > tbody > tr > td:nth-child(3),
        .results-grid > tbody > tr > td:nth-child(4),
        .results-grid > tbody > tr > td:last-child {
            display: block;
            width: 100%;
            border: 0;
            border-radius: 0;
        }

            .results-grid > tbody > tr > td:first-child {
                padding: 15px 13px 11px;
            }

            .results-grid > tbody > tr > td:not(:first-child) {
                padding: 6px 13px;
            }

            .results-grid > tbody > tr > td:last-child {
                padding: 12px 13px 14px;
            }

    .result-identity {
        min-width: 0;
    }

    .result-church {
        margin-left: 0;
    }

    .result-detail-button {
        width: 100%;
    }
}


/* =========================================================
   RESPONSIVE 480
   ========================================================= */

@media (max-width: 480px) {

    .brand-logo-wrapper {
        width: 44px;
        min-width: 44px;
    }

    .brand-logo {
        max-width: 42px;
        max-height: 42px;
    }

    .search-hero h1 {
        font-size: 24px;
    }

    .detail-school-name {
        font-size: 23px;
    }

    .academic-card-body {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
