/* Copyright Gumersindo Fernández Arquitectos. Desarrolla novadir.com */

/* Prevención de FOUC (por: Foundation) */
.no-js .top-bar {
  display: none;
}

@media screen and (min-width: 40em) {
  .no-js .top-bar {
    display: block;
  }
  .no-js .title-bar {
    display: none;
  }
}

/* General */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
}

@media screen and (max-width: 63.9375em) {
    .grid-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
.grid-container .formulario {
    padding: 0;
}

.contenido {
    font-size: 0.8em;
    background-color: #fff;
    text-align: justify;
    margin: 20px 0;
}
.contenido.inicio {
    margin: 0;
}
.contenido.edificio {
    margin-bottom: 0;
}
.contenido p {
    margin-bottom: 0.5em;
}
.contenido p.doblemargen {
    margin-bottom: 2em;
}

h1 {
    font-size: 1.3em;
    font-weight: bold;
}
h2 {
    font-size: 1em;
    font-weight: bold;
}
h1, h2 {
    font-family: 'Roboto', sans-serif;
}

a {
    color: #bfbdb0;
}
a:focus, a:hover {
    color: #dbd8c9;
}

.linea {
    border-top: 1px solid #000;
}

/* Bloques */
@media screen and (max-width: 39.9375em) {
    .cabecera {
        padding-top: 40px;
    }
    .logo {
        max-width: 235px;
    }
}
@media screen and (max-width: 26.500em) {
    .logo, .telefono {
        max-height: 32.36px;
    }
}
@media screen and (max-width: 19.938em) {
    .logo, .telefono {
        max-height: 25px;
    }
}
@media screen and (max-width: 16.188em) {
    .logo, .telefono {
        max-height: 20px;
        vertical-align: top;
    }
}
.boton-menu {
    background-color: #e7e7e7;
    line-height: 1.2;
}
.boton-menu.is-stuck {
    border-top: 1px solid #75706c;
    height: 32px;
}
.title-bar{
    background-color: #e7e7e7;
    margin: 0;
    padding: 0;
}
.title-bar-title {
    display: inline;
}
.menu-icon:after {
    background: #75706c;
    -webkit-box-shadow: 0 5px 0 #75706c,0 10px 0 #75706c;
    box-shadow: 0 5px 0 #75706c,0 10px 0 #75706c;
}
.menu-icon:hover:after {
    background: #75706c;
    -webkit-box-shadow: 0 5px 0 #75706c,0 10px 0 #75706c;
    box-shadow: 0 5px 0 #75706c,0 10px 0 #75706c;
}
.title-bar .menu-icon {
    margin-left: 10px;
    margin-right: 0;
}

.top-bar, .top-bar ul {
    background: #fff;
    padding: 0;
}

.menu {
    height: 40px;
    padding-left: 0;
    width: 100%;
}
.menu li a {
    display: block;
    text-decoration: none;
    color: #a7a4a4;
    height: 40px;
    padding-left: 0;
    padding-right: 26px;
}
.menu li a:hover, a.seleccionado {
    color: #739a92 !important;
    font-weight: bold;
}
.menu li {
    float: left;
}
.menu li:last-child {
    right: 0;
    position: absolute;
}
.menu li:last-child a {
    padding-right: 0;
}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
    .menu li a {
        white-space: nowrap;
        padding-right: 17px;
        font-size: 80%;
    }
}

#menu-small {
    display: none;
}
#menu-small .side-nav {
    width: 100%;
}
#menu-small ul {
    background-color: #e7e7e7;
    margin: 0;
    padding: 0;
}
#menu-small ul li:first-child {
    border-top: 1px solid #75706c;
}
#menu-small ul li {
    list-style-type: none;
    height: 40px;
    line-height: 22px;
    border-bottom: 1px solid #75706c;
}
#menu-small li a {
    display: block;
    text-decoration: none;
    color: #75706c;
    padding-left: 10px;
    font-size: 1.1em;
    padding-top: 8px;
    height: 100%
}
#menu-small li a:hover, a.seleccionado {
    color: #739a92;
}
.menu-icon {
    font-size: 100%;
}

.pie {
    background-color: #fff;
    height: 60px;
    padding-top: 1%;
}
.pie a {
    color: #777777;
}
.pie #legal {
    font-size: 0.8rem;
    margin: 0.4rem 0;
}
.pie #legal a {
    color: #a7a4a4;
}
.pie #legal a:hover {
    color: #b5b1b1;
}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
    /* Evita que el texto del pie desborde en altura */
    .pie a {
        font-size: 0.57em;
    }
}
@media screen and (max-width: 39.9375em) {
    /* Evita que el texto del pie desborde en altura */
    .pie a {
        font-size: 0.67em;
    }
    .pie-izq .pie-claro {
        color: #777777;
    }
    .pie-izq .pie-oscuro {
        color: #4f4f4f;
        font-weight: bold;
    }
    .pie-izq .pie-claro, .pie-izq .pie-oscuro {
        display: block;
    }
    .pie-izq .pie-coma {
        display: none;
    }
    .pie-der img {
        margin-top: 16px;
    }
    .pie #legal, .pie #legal a {
        font-size: 0.6rem;
    }
}
@media screen and (max-width: 19.938em) {
    .pie-izq .pie-abreviaturas {
        display: none;
    }
}

/* Inicio */
 .orbit-slide {
     pointer-events: none;
 }

/* Información general */
#mapa {
    width: 450px;
    height: 567px;
    margin-top: 60px;
    margin-left: 30px;
    margin-bottom: 0;
}
@media screen and (max-width: 40em) {
    #mapa {
        width: 100%;
        height: auto;
        margin-top: 10px;
        margin-left: 0;
        margin-bottom: 20px;
    }
}

.grid-x.masinfo {
    padding-top: 10px;
}
.grid-x.masinfo div.cell > div.grid-x {
    padding-top: 4px;
}

.cell.masinfo {
    color: #fff;
    background-color: #739a92;
    font-size: 1.2em;
    text-align: right;
    padding-right: 4px;
}
.cell.masinfo .label {
    background-color: #739a92;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    white-space: inherit;
}

.icono {
    font-size: 1.2em;
    margin-left: 15px;
}
.icono img {
    padding-bottom: 4px;
}

@media screen and (max-width: 65.813em) {
    .cell.masinfo {
        text-align: left;
        padding-right: 0;
        padding-left: 4px;
    }
    
    .icono {
        display: block;
        margin-left: 0;
    }
}

@media screen and (max-width: 52.125em) {
    .grid-x.masinfo div.cell > div.grid-x > div.cell {
        width: 100%;
    }
    
    .grid-x.masinfo div.cell:first-child > div.grid-x  {
        padding-top: 0;
    }
}

/* El edificio */
#edificio-izquierda {
    padding: 0;
    text-align: left;
}
#edificio-izquierda img {
    display: block;
}

#edificio-derecha {
    height: 530px;
    overflow: auto;
    overflow-x: hidden;
    text-align: right;
}
#edificio-derecha img {
    padding-top: 75px;
}
#edificio-derecha img:first-child {
    padding-top: 0;
}
#edificio-derecha img:last-child {
    padding-bottom: 23px;
}

@media screen and (min-width: 90em) {
    .contenido.edificio {
        width: 102.50%;
    }
}
@media screen and (min-width: 64em) {
    .contenido.edificio {
        width: 101.50%;
    }
}

@media screen and (max-width: 89.938em) {
    #edificio-derecha {
        padding-left: 10px;
    }
}

@media screen and (max-width: 39.938em) {
    /* Centramos imágenes de la izquierda y evitamos scroll en la derecha */
    #edificio-izquierda {
        padding: 15px 0 35px 0;
        text-align: center;
    }
    #edificio-izquierda img {
        display: block;
        margin-left: auto;
        margin-right: auto
    }
    
    #edificio-derecha {
        height: 100%;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }
}

/* Viviendas y Descargas */
table tbody tr:nth-child(even) {
    background-color: #fff;
}

table.datos {
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
}
table.viviendas, table.viviendas-bajares, table.documentos {
    width: 100%;
}
table.datos tbody {
    border: none;
}
table.datos th {
    background: #e7e7e7;
    vertical-align: bottom;
    padding: 10px 5px 5px 5px;
    line-height: 70%;
    font-weight: normal;
}
table.datos.documentos th {
    background: #A5BEB9;
    padding: 0;
}
table.datos.documentos th.descargar {
    width: 38px;
    height: 38px;
}
table.viviendas-bajares th {
    font-size: 1.9em;
    padding: 15px 5px;
}
table.datos tr {
    line-height: 14px;
}
table.datos.documentos tr {
    line-height: 16px;
}
table.datos tr:hover, table.datos tr.seleccionado, table.datos.documentos tr:hover, table.datos.documentos tr.seleccionado {
    background: #d5e0de;
    cursor: pointer;
}
table.datos tr.sincursor, table.datos.documentos tr.sincursor, table.datos.documentos td.sincursor {
    cursor: default;
}
table.datos td {
    padding: 1px 5px;
    border-top: 1px solid #000;
}
@media screen and (max-width: 40em) {
    table.datos td {
        height: 22px;
    }
}
table.datos td.pdf {
    text-align: right;
    width: 30px;
}
table.datos.documentos td.pdf {
    text-align: center;
    width: 48px;
}
table.datos td.pdf img {
    padding-bottom: 0;
}
table.datos tfoot td {
    background: #e7e7e7;
    border-top: 1px solid #000;
}
table.datos.documentos tfoot td {
    background: #A5BEB9;
}
#grafico.viviendas {
    margin: 30px 0;
}
@media screen and (max-width: 39.9375em) {
    #grafico.viviendas {
        line-height: 1.8em;
    }
    #nombre-vivienda {
        border-bottom: 1px solid #8dbdb1;
    }
    #nombre-vivienda h2 {
        font-size: 1.5em;
        line-height: 1em;
    }
    #datos-vivienda {
        font-size: 0.9em;
        margin-top: 15px;
    }
    #grafico.viviendas img {
        margin-top: 20px;
    }
    #grafico.viviendas img.plano {
        padding-top: 80px;
    }
}
table.datos.documentos span.anchoalineado {
    display: inline-block;
    width: 269px;
}

.anchor {
    /* Sin esta clase el menu fijo tapa parte del contenido al pulsar en una vivienda (por: pixelflips) */
    display: block;
    height: 40px; /* Altura del menu */
    margin-top: -40px; /* Altura del menu */
    visibility: hidden;
}
@media screen and (max-width: 40em) {
    .anchor {
        height: 0;
        margin-top: 0;
    }
}

/* Contacto */
@media screen and (min-width: 64em) {
    .contenido.contacto {
        font-size: 0.95em;
    }
}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
    .contenido.contacto {
        font-size: 0.9em;
    }
}

div.formulario div.comentarios div.cell {
    padding-left: 15px;
}
@media screen and (max-width: 40em) {
    div.formulario div.comentarios div.cell {
        padding-right: 0;
    }
    div.formulario label.text-right {
        text-align: left;
    }
}

p.notice img {
    vertical-align: text-top;
}
@media screen and (min-width: 64em) {
    p.notice img {
        vertical-align: text-bottom;
    }
}

.contacto h2 {
    color: #dbd8c9;
    padding-top: 5px;
    padding-bottom: 20px;
}

input, textarea {
    font-size: 1em !important;
}

input.normal, input.normal:focus {
    background-color: #F5F4F0;
    border: 0 !important;
    height: 25px;
}

textarea, textarea:focus {
    height: 148px;
    background-color: #F5F4F0;
    border: 0;
    padding-top: 1px;
    padding-bottom: 1px;
}

input[type=radio] {
    margin-left: 55px;
}
@media screen and (max-width: 63.9375em) {
    input[type=radio] {
        margin-left: 0;
    }
    label.lineamitad {
        line-height: 0.2em;
        margin-bottom: 0.4em;
    }
}
@media screen and (max-width: 39.9375em) {
    div.formulario div.comentarios div.cell {
        padding-left: 0;
        padding-right: 0;
    }
    div.formulario div.comentarios {
        padding-top: 15px;
    }
    label.text-right {
        font-size: 95%;
    }
}

p.consentimiento {
    font-size: .875rem;
}
@media screen and (max-width: 50.938em) {
    p.consentimiento {
        line-height: 0.5rem;
        margin-bottom: 1rem;
    }
}

input[type=button], input[type=button]:hover {
    width: 56px;
    height: 17px;
    padding: 1px 0;
    background-color: #dbd8c9;
}

/* Otras promociones */
.promociones img {
    display: block;
    margin: 0 auto;
    -webkit-box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.2);
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.2);
}