/* ==========================================================
   PANEL 1 - INFORMACIÓN PARA ASPIRANTES
   Restauración de páginas legacy
   ========================================================== */


/* ==========================================================
   CONTENEDOR PRINCIPAL
   ========================================================== */

main.detalle {
    width: 92%;
    max-width: 1500px;
    margin: 0 auto 60px;
    padding: 0;

    background: transparent;
    color: #333;
}

main.detalle .contenido {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/* ==========================================================
   BREADCRUMB
   ========================================================== */

main.detalle .breadcrumb-class {
    margin-bottom: 25px;
}


/* ==========================================================
   IMPORTANTE:
   RESTAURAR GRID BOOTSTRAP ORIGINAL

   No volver a poner 74% / 26%.
   Las clases push/pull ya realizan la distribución.
   ========================================================== */

@media (min-width: 992px) {

    main.detalle .contenido > .row > .col-sm-8.col-sm-pull-4 {
        width: 66.66666667%;
        right: 33.33333333%;
        left: auto;

        float: left;

        padding-left: 15px;
        padding-right: 15px;
    }

    main.detalle .contenido > .row > .col-sm-4.col-sm-push-8 {
        width: 33.33333333%;
        left: 66.66666667%;
        right: auto;

        float: left;

        padding-left: 15px;
        padding-right: 15px;
    }

    main.detalle .contenido > .row > .col-sm-10.col-sm-pull-2 {
        width: 83.33333333%;
        right: 16.66666667%;
        left: auto;

        float: left;

        padding-left: 15px;
        padding-right: 15px;
    }

    main.detalle .contenido > .row > .col-sm-2.col-sm-push-10 {
        width: 16.66666667%;
        left: 83.33333333%;
        right: auto;

        float: left;

        padding-left: 15px;
        padding-right: 15px;
    }
}


/* ==========================================================
   JUMBOTRON / TÍTULO PRINCIPAL
   El título está sobre el GRIS, no dentro de caja blanca.
   ========================================================== */

main.detalle .jumbotron {
    margin: 0 0 25px;
    padding: 15px 20px;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    text-align: center;
}

main.detalle .jumbotron h1,
main.detalle .jumbotron h2 {
    margin: 0;

    color: #333;
    background: transparent;

    font-family: "Ancizar sans", Tahoma, Geneva, sans-serif;
    font-size: 2.6em;
    font-weight: normal;
    line-height: 1.08;
}


/* ==========================================================
   FRAMES TYPO3
   ========================================================== */

main.detalle .frame {
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    box-shadow: none;
}


/* ==========================================================
   CE-BODYTEXT
   MUY IMPORTANTE:
   El contenedor completo NO es blanco.
   ========================================================== */

main.detalle .ce-bodytext {
    margin: 0;
    padding: 0;

    background: transparent;
    color: #333;
}


/* ==========================================================
   H3 - TÍTULOS DE LAS PREGUNTAS

   Quedan directamente sobre el fondo gris.
   ========================================================== */

main.detalle .ce-bodytext > h3 {
    display: block;

    margin: 24px 0 7px;
    padding: 0;

    background: transparent;
    color: #333;

    font-family: "Ancizar sans", Tahoma, Geneva, sans-serif;
    font-size: 1.55em;
    font-weight: normal;
    line-height: 1.15;
}


/* Primer título */
main.detalle .ce-bodytext > h3:first-of-type {
    margin-top: 0;
}


/* ==========================================================
   H4
   ========================================================== */

main.detalle .ce-bodytext > h4 {
    margin: 14px 0 6px;
    padding: 0;

    background: transparent;
    color: #333;

    font-family: "Ancizar sans", Tahoma, Geneva, sans-serif;
    font-size: 1.1em;
    font-weight: bold;
}


/* ==========================================================
   BLOQUES BLANCOS DE CONTENIDO

   Los P, UL y OL sí forman las cajas blancas.
   Como no tienen margen vertical entre sí, varios elementos
   consecutivos se perciben como UNA sola caja.
   ========================================================== */

main.detalle .ce-bodytext > p:not(.text-right),
main.detalle .ce-bodytext > ul,
main.detalle .ce-bodytext > ol {
    box-sizing: border-box;

    margin-top: 0;
    margin-bottom: 0;

    background-color: #fff;
    color: #333;
}


/* Párrafos */
main.detalle .ce-bodytext > p:not(.text-right) {
    padding: 7px 16px;

    line-height: 1.45;
}


/* Primer párrafo inmediatamente después del título */
main.detalle .ce-bodytext > h3 + p {
    padding-top: 13px;
}


/* Listas */
main.detalle .ce-bodytext > ul,
main.detalle .ce-bodytext > ol {
    padding-top: 5px;
    padding-right: 20px;
    padding-bottom: 7px;
    padding-left: 42px;
}


/* Último bloque antes del siguiente título */
main.detalle .ce-bodytext > p + h3,
main.detalle .ce-bodytext > ul + h3,
main.detalle .ce-bodytext > ol + h3 {
    margin-top: 24px;
}


/* Contenido de listas */
main.detalle .ce-bodytext li {
    margin: 0 0 5px;

    color: #333;
    line-height: 1.4;
}


/* Negritas */
main.detalle .ce-bodytext b,
main.detalle .ce-bodytext strong {
    color: #333;
    font-weight: bold;
}


/* ==========================================================
   FECHA DE ACTUALIZACIÓN

   No debe convertirse en caja blanca.
   ========================================================== */

main.detalle .ce-bodytext > p.text-right {
    margin: 0 0 18px;
    padding: 0;

    background: transparent;

    text-align: right;
}

main.detalle .ce-bodytext > p.text-right strong,
main.detalle .fecha-actualizacion,
main.detalle .update-date {
    display: inline-block;

    padding: 3px 10px;

    background: #999;
    color: #fff;

    border-radius: 12px;

    font-size: .85em;
    line-height: 1.2;
}


/* ==========================================================
   PÁRRAFOS VACÍOS DE TYPO3
   ========================================================== */

main.detalle .ce-bodytext > p:empty {
    display: none;
}


/* ==========================================================
   ENLACES
   ========================================================== */

main.detalle .ce-bodytext a,
main.detalle .rightContent a {
    color: #759b24;
    text-decoration: none;
}

main.detalle .ce-bodytext a:hover,
main.detalle .ce-bodytext a:focus,
main.detalle .rightContent a:hover,
main.detalle .rightContent a:focus {
    color: #333;
    text-decoration: underline;
}


/* ==========================================================
   COLUMNA DERECHA / NORMATIVA

   Sí puede quedar a la derecha, pero respetando el mismo
   contenedor y márgenes que el contenido principal.
   ========================================================== */

main.detalle .rightContent,
main.detalle .col-sm-4.col-sm-push-8 {
    box-sizing: border-box;
}

main.detalle .col-sm-4.col-sm-push-8 .frame {
    margin: 0;
}

main.detalle .col-sm-4.col-sm-push-8 .ce-bodytext,
main.detalle .rightContent .ce-bodytext {
    padding: 18px 20px;

    background: #fff;
    color: #333;
}


/* En la columna lateral sí queremos los párrafos dentro
   de una única caja, no el comportamiento de preguntas. */

main.detalle .col-sm-4.col-sm-push-8 .ce-bodytext > p,
main.detalle .rightContent .ce-bodytext > p {
    margin: 0 0 8px;
    padding: 0;

    background: transparent;
}


/* NORMATIVA */
main.detalle .col-sm-4.col-sm-push-8 h2,
main.detalle .col-sm-4.col-sm-push-8 h3,
main.detalle .col-sm-4.col-sm-push-8 h4,
main.detalle .rightContent h2,
main.detalle .rightContent h3,
main.detalle .rightContent h4 {
    margin: 0 0 10px;
    padding: 0;

    background: transparent;
    color: #333;

    font-family: "Ancizar sans", Tahoma, Geneva, sans-serif;
    font-size: 1em;
    font-weight: normal;
}


/* ==========================================================
   INTRODUCCIÓN / BLOQUES SIMPLES BLANCOS

   Para contenido que NO es el listado de preguntas.
   ========================================================== */

main.detalle .jumbotron + .frame .ce-bodytext,
main.detalle .contenido > .row:first-child .ce-bodytext {
    background: #fff;
    padding: 18px 22px;
}


/* ==========================================================
   BOTÓN IMPRIMIR
   ========================================================== */

main.detalle .btn-info,
main.detalle .print-button {
    background: #50b9d5;
    border-color: #50b9d5;
    color: #fff;
}

main.detalle .btn-info:hover,
main.detalle .btn-info:focus,
main.detalle .print-button:hover,
main.detalle .print-button:focus {
    background: #328fa8;
    border-color: #328fa8;
    color: #fff;
}


/* ==========================================================
   TABLET
   En tablet NO dejamos dos columnas estrechas.
   Apilamos contenido y normativa.
   ========================================================== */

@media (min-width: 768px) and (max-width: 991px) {

    main.detalle {
        width: 92%;
    }

    main.detalle .contenido > .row > .col-sm-8.col-sm-pull-4,
    main.detalle .contenido > .row > .col-sm-4.col-sm-push-8 {
        width: 100%;

        left: auto;
        right: auto;

        float: none;

        padding-left: 15px;
        padding-right: 15px;
    }

    main.detalle .col-sm-4.col-sm-push-8 {
        margin-top: 25px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    main.detalle {
        width: 94%;
        margin-bottom: 40px;
    }

    main.detalle .jumbotron {
        padding: 10px 5px;
    }

    main.detalle .jumbotron h1,
    main.detalle .jumbotron h2 {
        font-size: 2em;
    }

    main.detalle .ce-bodytext > h3 {
        margin-top: 20px;

        font-size: 1.4em;
    }

    main.detalle .ce-bodytext > p:not(.text-right) {
        padding-left: 13px;
        padding-right: 13px;
    }

    main.detalle .ce-bodytext > ul,
    main.detalle .ce-bodytext > ol {
        padding-left: 34px;
        padding-right: 13px;
    }

    main.detalle .col-sm-4.col-sm-push-8 {
        margin-top: 25px;
    }
}