:root {
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --color-text: #222;
  --color-bg: #fff;
  --gris: #e6e6e6;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}



/* zoom images */
.ficha .imagen {
  cursor: pointer;
  position: relative;
}
.btn-zoom {
  position: absolute;
  top: -18px;
  right: -18px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.bi::before, [class*=" bi-"]::before, [class^="bi-"]::before {
  vertical-align: -.3em !important;
}
.btn-zoom:hover {
  background: rgba(0, 0, 0, 0.85);
}
.modal-backdrop.show {
  opacity: 0.8;
}

.form-select {
  padding: .175rem 2.25rem .175rem .75rem;
}
.red {
  color: rgb(186, 55, 42);
}
.white {
  color: #fff;
}
a {
  text-decoration: none;
}
.btn-primary {
  color: #fff;
  background-color: gray;
  border-color: gray;
}
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  max-height: 100vh;
  height: 100%;
  display: grid;
  grid-template-rows: 120px auto 120px;
}
body.segundas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.segundas footer {
  height: 160px;
}
body.segundas #listado, body.segundas .ficha {
  flex-grow: 1;
}
footer {
  white-space: nowrap;
}
footer .contact {
  text-transform: uppercase;
  font-size: 16px;
}

#setlang button {
  background: none !important;
  border: none;
  padding: 0!important;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.navbar {
  width: 100%;
  margin:0;de
  justify-content: space-between;
}
.navbar-collapse {
  flex-grow: unset;
}
.menu {
  font-size: 20px;
}

a.previus {
  font: normal 16px/1 robotoLight, Arial, Helvetica, sans-serif;
  color: #5b5b5b;
  text-decoration: none;
}

h1 {
  color: #5b5b5b;
}

.pie {
  font-size: 14px;
}
/* ====== HEADER Y NAVEGACIÓN ====== */

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color:#fff;
  padding: 1rem;
  height: auto;
}
body.segundas header {
  height: 99px;
  min-height: 99px;
}

header nav a {
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
}
.logo {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top:6px;
  font-size: 1.2rem;
  margin-top:6px;
}

.navbar {
  position: static;
}
nav a:hover {
  color: var(--color-accent);
}

#menu_principal {bottom: 0px;
  top: unset;
  left: unset;
  right: unset;
  position: absolute;
  top: 10%;
  background-color: black;
  left: 0px;
  border-top: 1px solid white;
  width: 100%;
  z-index: 1;
}


  .portada2 {
    background: url("/static/img/headerSet_bkg.png") no-repeat, url(/static/img/header_bkg.jpg) repeat;
    background-size: contain;
    background-position-x: -30px;
    background-position-y: 100px;
    text-align: right;
    width: 100%;
    padding:20px 20px 0px 20px;
  }
  .portada2 .firma {
    width: 80%;
    margin-left: auto;
    position: relative;
    top:0px;
    right: 0px;
  }
  .portada2 .firma > div {
    width: fit-content;
  }
  .portada2 .firma img {
    width: 100%;
  }
  .portada2 h2 {
    font-size: 20px;
  }
  .portada2 h3 {
    font-size: 18px;
  }
  .portada2 h2 {
    font: normal 25px/1.1 quattrocentosansBold, Arial, Helvetica, sans-serif;
    letter-spacing: -1px;
    color: #494949;
}
.portada2 h3 {
 font: normal 17px/1.1 opensansRegular, Arial, Helvetica, sans-serif;
  color: #785b5d;
}
.menu {
  list-style: none;
  position: relative;
  padding:0px;
}


.menu > li {
  border-bottom: 1px solid #efefef;
  font-size:16px;
  padding: 30px 0px 10px 20px;
}
.menu li a[aria-expanded="true"]{
  color: #fff;
}
.menu > li:hover {
  background-color: #404040;
}
.menu .submenu  {
  list-style: none;
  padding-left:16px;
  padding-top:12px;
}
.menu .submenu li {
  padding-bottom:12px;
}
.menu .submenu li a {
  font-size:14px;
}

#cabecera {
  background-color: #000;
  background-image: url(/static/img/sectionImg_obras_1.jpg);
  background-repeat: no-repeat;
  background-position: center;
  min-height: 140px;
  background-size: cover;
}
#cabecera h1 {
  font: normal 40px/1 robotoLight, Arial, Helvetica, sans-serif;
  letter-spacing: -2px;
  color: #ffffff;
  text-align: end;
}
#cabecera h1 span {
  font-size: 40px;
}
#cabecera .container {
  display: flex;
  justify-content: end;
  align-items: center;
  height: 100%;
}
#listado {
  display: grid;
  grid-template-columns: 100%;
  grid-row-gap: 10px;
  height: auto;
}
#listado2 {
  margin-top:40px;
  display: grid;
  grid-template-columns: 100%;
  grid-row-gap: 40px;
}
#listado2 .item {
  display: grid;
  grid-template-columns: 50% 50%;
}
#listado2 .imagen {de
  text-align: right;
}

#listado2 .item .textos {
  padding-top:32px;
}
#listado2 .item h2 a {
  color: #5b5b5b;
  font: normal 24px/1.1 opensansSemibold, Arial, Helvetica, sans-serif;
  text-decoration: none;
}
#listado .item {
  display: flex;
  flex-direction: column;
  padding: 0px 20px 0px 20px;
  text-align: center;
}

#listado .item .imagen {
  /*flex: 1 0 auto;*/
  align-content: center;
  height: 300px;
  max-height: 300px;
}
#listado .item .imagen img {
  max-height: 100%;
}
#listado .item h2 a {
  color: #5b5b5b;
  font-size:20px;
  text-decoration: none;
}
#listado .item h2 a small {
  font-size:14px;
}

#listado .item h2 {
  line-height: 24px;
}
#listado .item .textos {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid #cdcdcd;
  flex-grow: 1;
}
#listado .item .textos p {
  line-height: 20px;
}

#listado .item .textos .n_catalogo {
    float:right;
}

.titulo {
  font-size: 26px;
  font-weight: bold;
}
.titulo small {
  font-weight: normal;
}

.calendario h1 {
  color: #fe3523;
}
#calendario {
  overflow: hidden;
  display: flex;
  position: unset;
}
#calendario div, #calendario li {
  display: inline-block;
}
#calendario .year {
  padding: 0px 6px 0px 0px;
}
#calendario .year a {
  padding: 5px 0px 0px 0px;
  width: 56px;
  height: 28px;
  border-radius: 4px;
  font: normal 16px/17px opensansSemibold, Arial, Helvetica, sans-serif;
  /*letter-spacing: -1px;*/
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  display: block;
  background-color: #5b5b5b;
}
#calendario .year.current a {
  background-color: #fe3523;
}
#calendario_before, #calendario_next {
  padding: 2px 0px 0px 0px;
  width: 32px;
  height: 20px;
  border-radius: 4px;
  font: normal 16px/17px opensansSemibold, Arial, Helvetica, sans-serif;
  /*letter-spacing: -1px;*/
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  display: block;
  background-color: #5b5b5b;
}
#calendario_before  {
  margin-right: 12px;
  padding: 5px 0px 0px 0px;
  width: 36px;
  height: 28px;
}
#calendario_next  {
  padding: 5px 0px 0px 0px;
  width: 36px;
  height: 28px;
  margin-left: 12px;
}
footer {
  position: relative;
  padding: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #fff;
  background-color: #000;
  height: 100%;
  align-content: center;
}
footer a {
  color:#fff;
}


footer h3 {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

footer span {
  float: right;
}






/* FICHA */
.ficha {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
.ficha h1 {
  text-align: left;
  font-size: 30px;
}

.ficha h1 small {
  font-size:16px;
}
.ficha .textos {
  text-align: left;
}
.ficha.noticia .textos, .ficha.noticia h1 {
  text-align: left;
}
.ficha h1 a {
  font: normal 32px/1.1 opensansSemibold, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.noticia p {
  font-size:14px1;
}
.noticia h2 a {
  color: #5b5b5b;
  font-size: 20px;
  text-decoration: none;
  font-weight: bolder;
}
.noticia .date {
font-size: 16px;
}

/*

.main {
  padding-top:80px;
  background: url(https://www.rafaelcanogar.com/static/img/header_bkg.jpg) repeat;
  height: 780px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;

}
.main .imagen {
  background: url(https://www.rafaelcanogar.com/static/img/headerSet_bkg.png) no-repeat center;
  height:780px;
}
.main .imagen img {
  height:780px;
}
*/




@media (min-width: 576px) {

  #listado {
    grid-template-columns: 48% 48%;
    grid-column-gap: 2%;
  }
  #listado2 .item {
    display: grid;
    grid-template-columns: 30% 60%;
    grid-column-gap: 10%;
  }
  #listado .item .imagen {
    height: 220px;
    max-height: 220px;
    padding: 14px;
  }
  .logo {
    font-size: 1.4rem;
  }
  .ficha {
   flex-direction: row;
  }
  .ficha .datos {
   margin-top:30px;
   width: 70%;
   padding:0px 0px 0px 60px;
  }
  .ficha .imagen {
   width: 30%;
  }
  #cabecera {
    min-height: 160px;
  }
  .portada2 {
    background-position-x: 0px;
    background-position-y: 40px;
    text-align: left;
  }
  .portada2 .firma {
    width: auto;
    padding-left: 50%;
    margin-top:40px;
  }
  .portada2 .firma img {
    width: auto;
    max-width: 100%;
  }
  .portada2 h2 {
    font-size: 26px;
  }
  .portada2 h3 {
    font-size: 22px;
  }
}

/* Móviles (<= 768px) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;

  }
}

@media (min-width: 768px) {
  #listado {
    grid-template-columns: 32% 32% 32%;
    grid-column-gap: 1%;
  }
  .portada2 {
    background-position-x: 10%;
  }
}

@media (min-width: 992px) {

  body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    height: 100vh;
    display: grid;
    grid-template-rows: 14% 72% 14%;
  }
  header {
    padding: 1.5rem 2rem;
    height: 100%;
    min-height: unset;
    border-bottom: 2px solid #fe3523;
  }

  #menu_principal {
    position: relative;
    background-color: black;
    border-top: unset;
    width: auto;
  }
  #menu_principal li {
    display: inline-block;
    border: unset;
    padding: 0px 0px 0px 20px;
  }
  .menu {
    margin-bottom:40px;
  }
  .menu .submenu {
    position: absolute;
    left:0px;
    top:40px;
    padding-top: 0px;
    padding-left: 0px;

  }
  .menu > li:hover {
    background-color: unset;
  }
  .menu .submenu li {
    padding-bottom:0px;
    margin-right:24px;
  }
  #listado {
    grid-template-columns: 24% 24% 24% 24%;
    grid-column-gap: 1%;
  }
  #listado .item .textos {
  }
  .logo {
    font-size: 1.6rem;
  }
  .ficha {
    grid-template-columns: 50% 50%;
  }
  .ficha .datos {
   margin-top:0px;
  }
  #cabecera {
    min-height: 160px;
  }
  #cabecera h1 {
    font: normal 70px/1 robotoLight, Arial, Helvetica, sans-serif;
    letter-spacing: -2px;
    color: #ffffff;
    padding-bottom: 20px;
  }
  #menu_principal {
    top: unset;
  }
  .portada2 .firma {
    width: auto;
    padding-left: 54%;
  }
}
@media (min-width: 1200px) {
  .portada2 {
    background-position-x: 40%;
  }
}



@media (min-width: 1400px) {
  #listado {
    grid-template-columns: 20% 20% 20% 20% 20%;
  }
}