
/* ==========================================================
   REGISTRO DE CANDIDATURAS
   IEQROO - PROCESO ELECTORAL LOCAL 2027
   Compatible con Bootstrap 3
========================================================== */


/* ==========================================================
   1. VARIABLES INSTITUCIONALES
========================================================== */

:root {
    --ieqroo-primary: #581844;
    --ieqroo-secondary: #c8133c;
    --ieqroo-gray: #848494;
    --ieqroo-black: #000000;

    --ieqroo-background: #f6f5f7;
    --ieqroo-border: #e8e4e8;
    --ieqroo-muted: #777777;
}


/* ==========================================================
   2. GENERAL
========================================================== */

body {
    background: var(--ieqroo-background);
    color: var(--ieqroo-black);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.registro-container {
    max-width: 1050px;
    padding-top: 35px;
    padding-bottom: 50px;
}


/* ==========================================================
   3. ENCABEZADO INSTITUCIONAL
========================================================== */

.registro-header {
    background: var(--ieqroo-primary);
    border-radius: 12px;
    padding: 30px 25px;
    color: #ffffff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.registro-header:after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border: 35px solid rgba(255,255,255,.06);
    border-radius: 50%;
    right: -65px;
    top: -100px;
    pointer-events: none;
}

.registro-header-content {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) 145px;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}


/* LOGOTIPOS */

.registro-logo {
    width: 145px;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.registro-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}


/* TEXTO CENTRAL */

.registro-header-text {
    text-align: center;
    min-width: 0;
}

.registro-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.75);
    margin-bottom: 8px;
}

.registro-header-text h1 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 10px;
}

.registro-header-text p {
    color: #ffffff;
    opacity: .9;
    font-size: 14px;
    margin: 0 auto;
    line-height: 1.6;
    max-width: 550px;
}


/* ==========================================================
   4. BUSCADOR
========================================================== */

.registro-search {
    background: #ffffff;
    border: 1px solid var(--ieqroo-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 35px;
    box-shadow: 0 3px 12px rgba(0,0,0,.025);
}

.registro-search-title h2 {
    color: var(--ieqroo-primary);
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 7px;
}

.registro-search-title p {
    color: var(--ieqroo-muted);
    font-size: 13px;
    margin-bottom: 17px;
}

.registro-search-input {
    position: relative;
}

.registro-search-input > .glyphicon-search {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--ieqroo-gray);
    font-size: 16px;
    z-index: 2;
}

.registro-search-input .form-control {
    height: 48px;
    padding: 10px 45px;
    border-radius: 8px;
    border: 1px solid #ded9df;
    box-shadow: none;
    font-size: 14px;
}

.registro-search-input .form-control:focus {
    border-color: var(--ieqroo-primary);
    box-shadow: 0 0 0 3px rgba(88,24,68,.08);
}

.btn-limpiar {
    position: absolute;
    right: 12px;
    top: 12px;
    border: none;
    background: transparent;
    color: var(--ieqroo-gray);
    font-size: 16px;
    padding: 3px 7px;
    display: none;
    cursor: pointer;
}

.btn-limpiar:hover {
    color: var(--ieqroo-secondary);
}

.registro-search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--ieqroo-muted);
}


/* ==========================================================
   5. ENCABEZADOS DE SECCIÓN
========================================================== */

.registro-section-heading {
    margin-bottom: 18px;
}

.registro-section-heading h2 {
    color: var(--ieqroo-black);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 7px;
}

.registro-section-heading p {
    font-size: 13px;
    color: var(--ieqroo-muted);
    margin: 0;
}


/* ==========================================================
   6. ACORDEÓN
========================================================== */

.registro-accordion .panel {
    border: 1px solid var(--ieqroo-border);
    border-radius: 10px !important;
    margin-bottom: 12px;
    box-shadow: 0 2px 7px rgba(0,0,0,.025);
    overflow: hidden;
}

.registro-accordion .panel-heading {
    padding: 0;
    background: #ffffff;
}

.registro-accordion .panel-title {
    font-size: 15px;
}

.registro-accordion .panel-title a {
    display: flex;
    align-items: center;
    padding: 17px 20px;
    text-decoration: none;
    color: var(--ieqroo-black);
    transition: background .2s ease;
}

.registro-accordion .panel-title a:hover,
.registro-accordion .panel-title a:focus {
    background: #faf7fa;
    text-decoration: none;
}

.rubro-icon {
    width: 42px;
    height: 42px;
    background: #f3edf2;
    color: var(--ieqroo-primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-right: 14px;
    flex-shrink: 0;
}

.rubro-info {
    flex: 1;
    min-width: 0;
}

.rubro-name {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.rubro-description {
    display: block;
    font-size: 12px;
    color: var(--ieqroo-muted);
    font-weight: 400;
}

.rubro-count {
    background: #f3edf2;
    color: var(--ieqroo-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 20px;
    margin-right: 16px;
    white-space: nowrap;
}

.rubro-chevron {
    color: var(--ieqroo-gray);
    transition: transform .2s ease;
}

.registro-accordion .panel-title a[aria-expanded="true"] .rubro-chevron {
    transform: rotate(180deg);
}

.registro-accordion .panel-collapse {
    border-top: 1px solid var(--ieqroo-border);
}

.registro-accordion .panel-body {
    padding: 10px 20px;
    background: #ffffff;
}


/* ==========================================================
   7. DOCUMENTOS
========================================================== */

.documento-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0edf0;
    gap: 13px;
}

.documento-item:last-child {
    border-bottom: none;
}

.documento-icon {
    width: 39px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 7px;
    background: #edf3fa;
    color: #2873b9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.documento-info {
    flex: 1;
    min-width: 0;
}

.documento-titulo {
    font-size: 14px;
    font-weight: 600;
    color: var(--ieqroo-black);
    display: block;
    margin-bottom: 5px;
}

.documento-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.documento-formato {
    font-size: 11px;
    color: var(--ieqroo-primary);
    font-weight: 700;
}

.documento-extension {
    font-size: 10px;
    color: var(--ieqroo-muted);
    background: #f2f2f2;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.documento-condicional {
    font-size: 10px;
    color: #8b5300;
    background: #fff5df;
    padding: 4px 7px;
    border-radius: 4px;
}

.btn-documento {
    border: 1px solid var(--ieqroo-primary);
    background: #ffffff;
    color: var(--ieqroo-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all .2s ease;
}

.btn-documento:hover,
.btn-documento:focus {
    background: var(--ieqroo-primary);
    color: #ffffff;
    text-decoration: none;
}

.btn-documento .glyphicon {
    margin-right: 5px;
}


/* ==========================================================
   8. AVISO INFORMATIVO
========================================================== */

.registro-notice {
    display: flex;
    gap: 14px;
    background: #f0edf2;
    border-left: 4px solid var(--ieqroo-secondary);
    border-radius: 7px;
    padding: 18px;
    margin-top: 30px;
}

.registro-notice-icon {
    color: var(--ieqroo-primary);
    font-size: 20px;
}

.registro-notice strong {
    font-size: 13px;
    color: var(--ieqroo-primary);
}

.registro-notice p {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ieqroo-black);
}


/* ==========================================================
   9. ESTADOS: CARGA Y SIN RESULTADOS
========================================================== */

.registro-loading,
.registro-empty {
    text-align: center;
    padding: 35px 15px;
    color: var(--ieqroo-muted);
}

.registro-empty .glyphicon {
    font-size: 32px;
    color: var(--ieqroo-gray);
    margin-bottom: 12px;
}

.registro-empty h3 {
    color: var(--ieqroo-black);
    font-size: 18px;
    font-weight: 700;
}

.registro-empty p {
    font-size: 13px;
}

.spinning {
    animation: spinning 1s linear infinite;
    margin-right: 7px;
}

@keyframes spinning {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   10. RESPONSIVE - TABLET Y MÓVILES
========================================================== */

@media (max-width: 767px) {

    /* CONTENEDOR */

    .registro-container {
        padding: 15px;
    }


    /* ENCABEZADO */

    .registro-header {
        padding: 22px 15px;
    }

    .registro-header-content {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .registro-logo {
        width: 100%;
        height: 75px;
    }

    .registro-header-text {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 5px 0 8px;
    }

    .registro-header-text h1 {
        font-size: 23px;
    }

    .registro-header-text p {
        font-size: 12px;
    }

    .registro-eyebrow {
        font-size: 9px;
        letter-spacing: 1px;
    }


    /* BUSCADOR */

    .registro-search {
        padding: 18px;
    }


    /* ACORDEÓN */

    .rubro-count {
        display: none;
    }

    .registro-accordion .panel-title a {
        padding: 14px;
    }

    .registro-accordion .panel-body {
        padding: 8px 13px;
    }


    /* DOCUMENTOS */

    .documento-item {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 13px 0;
    }

    .documento-info {
        flex: 1;
    }

    .btn-documento {
        margin-left: 52px;
    }


    /* RESULTADOS */

    .registro-search-footer {
        gap: 8px;
        flex-wrap: wrap;
    }

}


/* ==========================================================
   11. PANTALLAS MUY PEQUEÑAS
========================================================== */

@media (max-width: 380px) {

    .registro-header {
        padding: 18px 12px;
    }

    .registro-logo {
        height: 65px;
    }

    .registro-header-text h1 {
        font-size: 20px;
    }

    .registro-eyebrow {
        font-size: 8px;
    }

    .rubro-description {
        font-size: 11px;
    }

    .documento-titulo {
        font-size: 13px;
    }

}


/* =========================================
   MASTHEAD INSTITUCIONAL
========================================= */

.registro-masthead {
    background: #ffffff;
    border: 1px solid #e8e4e8;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

/* LOGOTIPOS Y MARCA */

.registro-brand {
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
}

.registro-brand-logo {
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.registro-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.registro-brand-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.registro-brand-center span {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #848494;
    font-weight: 700;
}

.registro-brand-center strong {
    font-size: 19px;
    color: #581844;
    font-weight: 700;
}

/* SEPARADOR INSTITUCIONAL */

.registro-brand-divider {
    height: 4px;
    background: linear-gradient(
        to right,
        #581844 0%,
        #581844 75%,
        #c8133c 75%,
        #c8133c 100%
    );
}

/* TÍTULO DE PÁGINA */

.registro-page-heading {
    padding: 23px 30px 27px;
    background: #581844;
}

.registro-breadcrumb {
    display: flex;
    gap: 9px;
    font-size: 10px;
    letter-spacing: .5px;
    font-weight: 600;
    color: #848494;
    margin-bottom: 13px;
}

.registro-page-heading h1 {
    color: #ffffff;
    font-size: 27px;
    font-weight: 700;
    margin: 0 0 8px;
}

.registro-page-heading p {
    font-size: 13px;
    color: #ffffff;
    margin: 0;
    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 767px) {

    .registro-brand {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 16px;
    }

    .registro-brand-logo {
        height: 65px;
    }

    .registro-brand-center {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .registro-brand-center strong {
        font-size: 16px;
    }

    .registro-brand-center span {
        font-size: 9px;
    }

    .registro-page-heading {
        padding: 20px;
    }

    .registro-page-heading h1 {
        font-size: 23px;
    }

    .registro-page-heading p {
        font-size: 12px;
    }

}

.registro-panel-heading-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.registro-panel-heading-content > a {
    flex: 1;
    min-width: 0;
}


@media (max-width: 767px) {
    .registro-panel-heading-content {
        flex-wrap: wrap;
    }

    .registro-btn-descargar {
        margin: 0 13px 12px 59px;
    }
}