/*
 * njra-layout.css - Layout base para actidea.es/nochesalcazar2025
 * Estructura y posicionamiento. Carga después de noches.css.
 */

/*---------------------------------------------------- CSS VARIABLES (solo la que necesita layout) --------------------*/
:root {
    --jardines-article-marginTop: calc(100vh - 130px);
}

/*---------------------------------------------------- UTILS ---------------------------------------------------------*/
.clear {
    clear: both;
}

:focus {
    outline: none;
}

img {
    border: none;
}

a img {
    border: none;
}

p img {
    padding: 0;
    max-width: 100%;
}

.valignM {
    vertical-align: middle;
}

error {
    margin: 20px;
    display: block;
    border: 1px dotted #565656;
    position: relative;
    z-index: 2000;
}

#codeigniter_profiler {
    position: relative;
    z-index: 200;
}

.spectrum.sp-container {
    left: 400px;
    top: 200px;
}

.spectrum.sp-container.cp-open {
    left: 400px;
    top: 200px;
}

/*---------------------------------------------------- HTML / BODY ---------------------------------------------------*/
html,
body {
    margin: 0;
    padding: 0;
    text-align: center;
    height: auto;
    min-height: 100%;
}

html {
    background-color: black;
    background-size: cover;
}

body {
    background-color: transparent;
}

/*---------------------------------------------------- SITE-WRAPPER --------------------------------------------------*/
.site-wrapper {
    margin: 0 auto 0 auto;
    padding: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    height: auto;
}

header,
nav,
article,
footer {
    display: block;
    position: relative;
    padding: 0 4px;
}

article {
    padding: 0 8px;
}

/*---------------------------------------------------- HEADER --------------------------------------------------------*/
header {
    background: var(--header-background);
    margin: 0 auto 0 auto;
    height: auto;
    left: 0;
    right: 0;
    top: 0;
    z-index: 22000;
}

header > p > a {
    max-width: 48%;
}

body.home header {
    background: var(--home-header-background);
}

header a{
    display: inline-block;line-height: 0;
}
#site-logo{
    width:40%;
}
#site-logo>a>img{
    width:100%;
}
#logos-institucionales{
    width:60%;
    position:absolute;right:0;top:0;
    display:flex;
    justify-content: flex-end;
    align-items:center;
}
#NOmadejaDO{
    /*max-width: 26%;
    width:76px;*/
}

#njrapatronato {
    /*width: 144px;*/
    /*height:100%;*/
    width:auto;
}


/* líneas decorativas (posicionamiento) */
#ls1 {
    left: 24px;
    top: 24px;
    width: 36px;
    height: 10px;
}

#ls2 {
    left: 50px;
    top: 34px;
    width: 10px;
    height: 32px;
}

#ls3 {
    left: 24px;
    top: 56px;
    width: 26px;
    height: 10px;
}

#ls4 {
    left: 24px;
    top: 34px;
    width: 10px;
    height: 22px;
}

#ls5 {
    left: 24px;
    top: 69.8px;
    width: 9.4px;
    height: 41.8px;
}

#ls6 {
    left: 37.2px;
    top: 69.8px;
    width: 8.8px;
    height: 41.8px;
}

#ls7 {
    left: 50.9px;
    top: 69.8px;
    width: 9px;
    height: 41.8px;
}

#ls8 {
    left: 33.4px;
    top: 69.8px;
    width: 3.8px;
    height: 9.8px;
}

#ls9 {
    left: 46px;
    top: 101.8px;
    width: 4.4px;
    height: 9.8px;
}

/*---------------------------------------------------- NAV -----------------------------------------------------------*/
nav {
    left: 0;
    right: 0;
    z-index: 22001;
    padding: 4px 0;
    background: transparent;
    flex: 1 auto;
}

/*---------------------------------------------------- ARTICLE -------------------------------------------------------*/
article {
    background: var(--main-bg-color);
    overflow: hidden;
    padding-top: 8px;
    padding-bottom: 56px;
    margin-bottom: 100vh;
}

article div.tab {
    margin-bottom: 28px;
}

article.vídeos-2010-2013 img {
    width: 236px;
    height: 162px;
}

/* ajustes por página */
body.home article {
    padding: 0 0 0 0;
}

article.home > h1 {
    display: none;
}

article.home p {
    color: var(--main-color);
}

article.home > .mensaje-institucional p {
    padding: 8px 12px;
}

article.home > div.cartelNJRA > h1 {
    margin: 84px 0 124px 0;
    background: black;
    padding: 12px;
    width: fit-content;
}

article.home > div.cartelNJRA {
    display: flex;
    flex-direction: column;
    align-items: center;
}

article.home > p.firma {
    margin-top: 12px;
}

p.firma {
    margin-top: 12px;
    text-align: right;
}

p.enlaceVerVideo {
    margin: 24px 12px 0 0;
}

p.enlaceVerVideo > a {
    color: #3fc7f7 !important;
    font-size: 20px;
}

body.descargas---download article {
    min-height: 80vh;
}

article.error404 {
    background: #000000;
    height: 100%;
}

.error404 article p {
    color: #f2f2f2 !important;
}

article.error404 a {
    color: #e07101 !important;
}

article.contacto {
    min-height: 100vh;
}

article.grupos p {
    margin-bottom: 8px;
}

article.video-promocional {
    height: 100%;
}

article.programación div.tab {
    margin-bottom: 48px;
}

article.programación li > p {
    line-height: 1.2em;
}

article.programación li {
    margin-bottom: 8px;
}

article.programación ul {
    margin-bottom: 28px;
}

/*---------------------------------------------------- FOOTER --------------------------------------------------------*/
footer {
    margin: 0 auto 0 auto;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.84);
    text-align: left !important;
    clear: both;
    z-index: 21010;
    font-size: 12px;
    line-height: 14px;
}

footer DIV.masArriba {
    padding: 16px 0 0 0;
}

footer DIV.masArriba p {
    padding: 0 0 0 0;
}

footer p {
    padding: 5px 0 5px 0;
    line-height: 16px;
    text-align: left;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer > ul {
    padding: 8px 0 12px 0;
    margin: 0;
}

footer > ul > li {
    display: inline;
}

footer > ul > li:first-child {
    margin-left: 0;
}

.produce {
    margin: 12px 12px 6px 12px;
    /*position: absolute;
    right: 0;
    bottom: 0;*/
}

.produce > a > img {
    padding: 6px 0 0 0;
}

footer,
footer p {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer span.edicion16 {
    font-size: 1.2em;
    color: var(--main-title-color);
}


div.footerlogos a{
    display: inline-block;line-height: 0;
}
div.footerlogos {
    display:flex;
    flex-flow: column nowrap;
    align-items:center;
}
div.bodaCarloseIsabel {
    display:block;
    width:94px;
    position: relative;
    margin-bottom:6px;
}
.logotipo-actidea>a>img{height:28px;}




@media screen and (max-width: 769px) {
  footer {
    text-align: center !important;
  }
  footer > ul {
    text-align: center;
    margin-top: 12px;
  }
  footer > ul > li {
    display: block;
    clear: both;
    margin-bottom: 8px;
  }
  footer .separator {
    display: none;
  }
  footer > p > a {
    display: block;
    clear: both;
  }
  footer .produce {
    position: relative;
    float: none;
    margin: 12px auto;
    padding-bottom: 12px;
  }
  footer .masArriba {
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
  }
  footer .masArriba p {
    width: 224px;
    text-align: center;
    margin: 0 auto;
  }

  nav {
     margin-top:34px;
    }
    #NOmadejaDO{margin-right:-20px;}
}
.produce-y-programa {
    padding-left: 8px;
}

/*---------------------------------------------------- JARDINES (estructura) -----------------------------------------*/
body.jardines article {
    margin-top: 0;
    animation: slideToBottom 1s forwards;
    animation-delay: 3s;
}

body.jardines footer {
    background: rgba(0, 0, 0, 0.86);
}

/*---------------------------------------------------- TOC -----------------------------------------------------------*/
#toc {
    display: none;
    float: right;
    text-align: right !important;
    padding: 0 0 20px 148px;
    z-index: 10000;
    top: 0;
    right: 0;
}

#toc h2 {
    font-size: 14px;
    line-height: 16px;
    margin: 0 0 4px 0;
    cursor: pointer;
    font-weight: normal;
    text-transform: none;
}

#toc h2:hover {
    color: var(--toc-hover-color);
}

#toc p {
    text-align: right;
}

ul.otras-ediciones {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
}

ul.otras-ediciones li {
    margin: 10px;
    background: #e6e6e6;
    padding: 1rem;
    box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.2);
    text-align: right;
}

ul.otras-ediciones li h2 {
    font-size: 1.4em;
    color: rgba(154, 154, 154, 1);
}

ul.otras-ediciones li a h2 {
    color: rgba(41, 42, 43, 1);
}

/*---------------------------------------------------- MAIN MENU (estructura) ----------------------------------------*/
ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mainMenu {
    display: none;
    z-index: 500009;
    position: relative;
}

.mainMenu a {
    background: var(--main-bg-color);
    display: flex;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px dotted var(--mainMenu-border-color);
    flex-flow: column nowrap;
}

.mainMenu > li > a {
    white-space: nowrap;
}

.mainMenu li {
    flex: 1;
    position: relative;
}

html.no-js ul.jardines,
html.no-js ul.más-información {
    display: block;
    height: auto;
    opacity: 1;
    visibility: visible;
}

/* menú móvil */
.mainMenu li > div {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 500ms, -ms-grid-rows 500ms;
}

.mainMenu li > div.sub-menu-open {
    grid-template-rows: 1fr;
}

.mainMenu ul {
    overflow: hidden;
}

@media only screen and (max-width: 1279px) {
    #show-menu-input-checkbox:checked ~ .mainMenu {
        display: block;
    }

    .mainMenu ul > li > a {
        padding: 0.6rem 1rem;
        background: var(--mainMenu-submenu-bg-color);
        border-bottom: 1px dotted var(--mainMenu-submenu-border-color);
    }

    .mainMenu > li.has-sub-menu > a {
        background: var(--mainMenu-a-has-sub-menu) var(--mainMenu-a-has-sub-menu-url-png) no-repeat center 100%;
    }
}

/* menú escritorio */
@media only screen and (min-width: 1280px) {
    .mainMenu {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items: flex-start;
        max-height: 56px;
        overflow: visible;
    }

    .mainMenu > li > a {
        border-bottom: none;
    }

    .mainMenu li > div > ul {
        width: 100%;
        min-width: max-content;
    }

    .mainMenu li > div {
        position: absolute;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        width: 0;
    }

    .mainMenu li > div > ul {
        margin-left: -50%;
    }

    .mainMenu li:hover > div {
        grid-template-rows: 1fr;
    }
}

/* botón toggler */
#show-menu-input-checkbox {
    display: none;
}

#main-menu-toggler {
    width: 22px;
    height: 22px;
    position: absolute;
    top: 0px;
    right: 0;
    margin-top: -50px;
    padding: 24px 8px 24px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media only screen and (min-width: 1280px) {
    #main-menu-toggler {
        display: none;
    }
}

#main-menu-toggler-icon:after,
#main-menu-toggler-icon:before {
    content: "";
    position: absolute;
    left: 0;
    top: -7px;
}

#main-menu-toggler-icon:after {
    top: 7px;
}

#main-menu-toggler-icon {
    position: relative;
    display: block;
}

#main-menu-toggler-icon,
#main-menu-toggler-icon:after,
#main-menu-toggler-icon:before {
    width: 100%;
    height: 2px;
    background-color: rgba(222, 222, 222, 1);
    transition: all 0.3s;
    backface-visibility: hidden;
    border-radius: 2px;
}

#show-menu-input-checkbox:checked ~ #main-menu-toggler > #main-menu-toggler-icon {
    background-color: transparent;
}

#show-menu-input-checkbox:checked ~ #main-menu-toggler > #main-menu-toggler-icon:before {
    transform: rotate(45deg) translate(5px, 2px);
}

#show-menu-input-checkbox:checked ~ #main-menu-toggler > #main-menu-toggler-icon:after {
    transform: rotate(-45deg) translate(8px, -5px);
}

/*---------------------------------------------------- HEADER & FOOTER TWEAKS (responsive estructural) ------------------------*/

@media screen and (min-width: 0px) {
    body.jardines article {
        --jardines-article-marginTop: calc(100vh - 130px);
    }
}

@media screen and (min-width: 320px) {

    /*#site-logo > a > img {
        width: 174px;
        height: auto;
    }*/

    body.jardines article {
        --jardines-article-marginTop: calc(100vh - 156px);
    }
}

@media screen and (min-width: 481px) {
    
    /*#njrapatronato {
        width: 184px;
    }

    #site-logo > a > img {
        width: 236px;
    }*/

    body.jardines article {
        --jardines-article-marginTop: calc(100vh - 166px);
    }
}

@media screen and (min-width: 525px) {
    .site-wrapper {
        width: 90%;
    }
    /*#njrapatronato {
        width: 174px;
    }*/
}

@media screen and (min-width: 769px) {
    
    #njrapatronato {
        width: 204px;
    }

    div.footerlogos {
        display:flex;
        flex-flow: row nowrap;
        justify-content:flex-end;
        align-items:end;
        width:144px;
        position:absolute;right:0;bottom:0;
    }
    div.bodaCarloseIsabel {
        display:block;
        width:94px;
        position: absolute;
        margin-bottom:60px;
    }


    body.jardines article {
        --jardines-article-marginTop: calc(100vh - 176px);
    }

    .site-wrapper {
        width: 86%;
    }

    body.home .align_R {
        float: right;
        margin: 8px 0 6px 18px;
    }
}

@media screen and (min-width: 961px) {

    /*#njrapatronato {
        width: 264px;
    }*/

    #toc {
        display: block;
    }

    div.footerlogos {
        display:flex;
        flex-flow: row nowrap;
        justify-content:flex-end;
        align-items:end;
        width:auto;
        position:absolute;right:0;bottom:0;
    }
    div.bodaCarloseIsabel {
        display:block;
        width:94px;
        position: relative;
        margin-bottom:6px;
    }

}

@media screen and (min-width: 1181px) {
    
    footer {
        position: fixed;
        bottom: 0;
        left: 7%;
        right: 7%;
    }

    body.jardines footer {
        position: relative;
        bottom: unset;
        left: unset;
        right: unset;
    }
}

/*---------------------------------------------------- ERRORES (z-index) ---------------------------------------------*/
.cc-revoke,
.cc-window {
    z-index: 49999;
}
