/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* VARIABLES REUTILIZABLES  */

:root {
  --color-primary: #ff3248;
  --font-headings: 'Rubik';
}

.pagina-politica{
    max-width: 600px !important;
    margin: auto !important;
}

.pagina-politica h1,
.pagina-politica h2{
    font-size: 30px !important;
    margin-bottom: 15px !important;
}

.pagina-politica h3{
    font-size: 25px !important;
}

#content {
  float: none !important;
}

.pum-close{
    background-color: var(--color-primary) !important;
    line-height: 8px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
}

body:not(.home) #content {
  margin-top: 45px !important;
}

.ilightbox-social {
  display: none !important;
}

/* HEADER */
.fusion-logo-link img {
  width: 100px !important;
}

header {
  position: fixed !important;
  width: 100% !important;
}

.home header {
  position: fixed !important;
  width: 100% !important;
  background: transparent !important;
  transition: background 0.3s ease;
}

.home .fusion-header {
  background: transparent !important;
  transition: all 0.3s ease;
}

.home.scrolled header,
.home.scrolled .fusion-header {
  background: white !important;
}

.scrolled .fusion-header {
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}

header .menu-text {
  font-size: 15px !important;
  letter-spacing: normal !important;
}

header .fusion-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100px !important;
}

header .fusion-row::before,
header .fusion-row::after {
  content: none !important;
}

header .fusion-menu {
  display: flex;
  flex-direction: row;
  gap: 35px;
}

header .fusion-menu > li {
  padding: 0 !important;
}

header .fusion-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.adhoc-menu{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: right;
    gap: 5px;
}

.boton-canal-incidencias{
    background-color: var(--color-primary) ;
    color: white !important;
    border-radius: 30px !important;
    padding: 5px 30px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.mobile-menu,
.fusion-mobile-nav-holder {
  display: none !important;
}

.menu-lateral {
  padding: 20px;
  display: none !important;
  flex-direction: column !important;
  align-items: start;
  gap: 35px !important;
  position: absolute;
  left: -403px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: white;
  border-right: 3px solid var(--color-primary);
  transition: left 0.3s ease;
}

.menu-lateral .menu-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.menu-lateral.activo {
  left: 0;
}

.sidebar-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Reserva tu cita */

.reserva-tu-cita{
    max-width: 600px !important;
    margin: auto !important;
}

.reserva-tu-cita .vc_column-inner{
    padding: 20px !important;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px !important;
    border-radius: 10px !important;
}

.reserva-tu-cita .texto h1{
    font-size: 30px !important;
    margin-bottom: 15px !important;
}

.reserva-tu-cita .texto a{
    color: var(--color-primary) !important;
    text-decoration: underline !important;
}

.reserva-tu-cita .wpbc__form__div{
    padding-top: 20px !important;
}

/* BURGER */
.burger {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--blanco);
  font-size: 16px;
}

.burger > div {
  width: 40px;
  height: 24px;
  position: relative;
  background: transparent;
}

.burger input {
  display: none;
}

.burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: black;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: -3px;
  left: 5px;
}

.burger input:checked ~ span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 25px;
  left: 5px;
}

/* BODY */
.texto * {
  font-family: var(--font-headings) !important;
}

.texto i {
  font-family: 'Font Awesome 6 Free' !important;
}

.texto p {
  font-size: 16px;
  margin: 20px 0;
  line-height: 1.2;
  font-weight: lighter;
}

.texto strong {
  color: var(--color-primary) !important;
}

.texto h1 {
  font-size: 60px !important;
}

.texto h2 {
  font-size: 40px !important;
}

.texto h3 {
  font-size: 30px !important;
  margin-top: 0 !important;
}

.texto h4 {
  font-size: 24px !important;
  margin: 0 !important;
}

.texto h6 {
  font-size: 5rem !important;
  font-weight: bolder !important;
  margin: 0 !important;
}

.texto p:has(img) {
  display: flex !important;
  align-items: center !important;
}

.texto p:has(img) img {
  width: 20px !important;
  height: auto !important;
  margin: 0 10px 0 0 !important;
}

.bg {
  background-color: var(--color-primary) !important;
}

.bg .texto * {
  color: white !important;
}

.light-bg {
  background-color: #ded1d191 !important;
}

.boton button,
.boton a,
form input[type='submit'],
.grid-anuncios .anuncios-post a {
  font-family: var(--font-headings) !important;
  background: var(--color-primary) !important;
  color: white !important;
  border-radius: 30px !important;
  padding: 12px 30px !important;
  border: none !important;
  font-weight: 600;
}

.bg .boton button,
.bg .boton a {
  background: white !important;
  color: var(--color-primary) !important;
}

.imagen > figure > div {
  position: relative;
  border-radius: 30px;
}

.imagen img {
  border-radius: 30px;
}

.imagen > figure > div::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -30px;
  height: 35%;
  width: 75%;
  border-radius: 30px;
  background: rgba(249, 53, 73, 0.65);
}

.promociones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
}

.promociones div {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.promociones div::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 30px;
  background: rgba(249, 53, 73, 0.65);
  mix-blend-mode: multiply;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.promociones div:hover::after {
  opacity: 0;
}

.solicitar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
}

.solicitar div {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 20px;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.solicitar div:hover {
  background: white;
}

.solicitar div * {
  font-family: var(--font-headings) !important;
  color: white !important;
  transition: color 0.3s ease;
}

.solicitar div:hover * {
  color: black !important;
}

.solicitar div h3 {
  font-size: 3rem;
  margin: 0;
  font-weight: bolder;
}

.solicitar div:hover h3 {
  color: var(--color-primary) !important;
}

.solicitar div h4 {
  font-size: 1.75rem;
  margin: 15px 0;
  line-height: 1;
}

.solicitar div p {
  font-size: 1rem;
  margin: 20px 0;
  line-height: 1.2;
  font-weight: lighter;
}

.form {
  z-index: 10 !important;
  position: relative !important;
  background: white !important;
  border: 5px solid var(--color-primary) !important;
  border-radius: 35px !important;
}

form input[type='checkbox'] {
  border: 3px solid var(--color-primary) !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
}

form input[type='checkbox'] ~ label {
  padding-top: 4px !important;
}

form input[type='checkbox']::before {
  color: var(--color-primary) !important;
}

form input[type='file'] {
  border: 3px solid var(--color-primary) !important;
  border-radius: 12px !important;
  height: 50px !important;
}

.gform_validation_errors {
  display: none !important;
}

.map * {
  height: 100% !important;
  width: 100% !important;
}

/* POSTS */
.grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

.grid-posts > a {
  display: flex;
  flex-direction: column;
  border: 5px solid var(--color-primary);
  border-radius: 30px;
  overflow: hidden;
  max-width: 635px;
  width: 100%;
}

.grid-posts > a .img {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.grid-posts > a img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: scale 0.3s ease;
}

.grid-posts > a:hover img {
  scale: 1.05;
}

.grid-posts > a > div:not(.img) {
  padding: 10px 20px;
}

.grid-posts > a > div:not(.img) h3 {
  margin: 0;
}

.grid-posts > a > div:not(.img) strong {
  color: var(--color-primary);
}

.grid-posts > a .details {
  margin-top: 30px;
  font-size: 16px;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 20px;
}

.no-posts {
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-posts > div {
  padding: 12px 30px;
  border: 3px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: bold;
  border-radius: 30px;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: rgba(249, 53, 73, 0.15);
}

.no-posts i {
  color: rgba(249, 53, 73, 1);
}

.post-pagination {
  position: relative;
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.post-pagination .page-numbers {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 30px;
  align-items: center;
  justify-content: center;
}

.post-pagination .current {
  background: var(--color-primary);
  color: white;
  margin: 0 2px;
}

.post-pagination .next {
  margin-left: auto;
}

.post-pagination .prev {
  margin-right: auto;
}

.post-pagination .page-numbers-group {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: fit-content;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* PROMOCIONES */

.promociones-post .details > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* NOTICIAS */
.noticias-post:hover * {
  color: black;
}

.noticias-post .noticias-content h3 {
  margin-bottom: 10px !important;
}

.noticias-post .noticias-content p {
  margin-bottom: 10px !important;
}

/* ANUNCIOS */
.grid-anuncios {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.grid-anuncios .anuncios-post {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10rem;
  padding: 20px;
  border: 3px solid var(--color-primary);
  border-radius: 30px;
}

.grid-anuncios .anuncios-post a {
  height: fit-content;
  white-space: nowrap;
}

.grid-anuncios .anuncios-post h3 {
  margin: 0;
}

.grid-anuncios .anuncios-post .content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SINGLE POST */
.single .bg {
  padding-top: 35px !important;
  padding-bottom: 35px !important;
  margin-top: 35px !important;
  margin-bottom: 35px !important;
}

.single .form {
  padding-top: 35px !important;
  padding-bottom: 35px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-top: 35px !important;
}

.single .light-bg {
  padding-top: 35px !important;
  padding-bottom: 35px !important;
  margin-top: 35px !important;
  margin-bottom: 35px !important;
}

.single #content {
  margin-bottom: 35px !important;
}

/* SINGLE PROMOCIONES */
.single-post-promociones .promocion-interior {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

.single-post-promociones .promocion-interior .galeria {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

.single-post-promociones .promocion-interior .otras-imagenes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.single-post-promociones .promocion-interior img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.single-post-promociones .promocion-interior .otras-imagenes img {
  border-radius: 15px;
  max-width: 315px;
  height: 150px;
  object-fit: cover;
}

.single-post-promociones .promocion-interior h2 {
  margin: 0;
}

.single-post-promociones .promocion-interior h4 {
  margin: 0;
  margin-bottom: 10px !important;
  color: var(--color-primary);
}

.single-post-promociones .promocion-interior p {
  margin: 0;
}

.single-post-promociones .promocion-interior .details {
  font-size: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.single-post-promociones .promocion-interior .details > div i{
    display: flex !important;
}

.contenido-propiedad{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.desc-propiedad{
    margin-top: 30px;
    margin-bottom: 30px;
}

.single-post-promociones .promocion-interior .details > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  padding-bottom: 8px;
  background-color: #fafafa;
  border-radius: 4px;
}

/* SINGLE NOTICIAS */
.single-post-noticias .noticia-interior .galeria {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
}

.single-post-noticias .noticia-interior .noticia-thumb {
  position: relative;
  width: 100%;
  height: 400px;
}

.single-post-noticias .noticia-interior img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.single-post-noticias .noticia-interior .noticia-thumb::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 30px;
  background: var(--color-primary);
  opacity: 0.65;
}

.single-post-noticias .noticia-interior h2 {
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-headings);
  margin: 0;
  z-index: 1;
  color: white;
}

/* SINGLE ANUNCIOS */
.single-post-anuncios .anuncio-interior {
  display: flex;
  flex-direction: column;
}

.single-post-anuncios .anuncio-interior .gform_wrapper {
  margin-top: -43px !important;
}

.single-post-anuncios .anuncio-interior h2 {
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 20px;
  margin: 0;
  margin-bottom: 40px;
  width: calc(50% - 35px);
}

.single-post-anuncios .anuncio-interior .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

  /* Oculta las adicionales hasta pulsar "Ver más" */
  .otras-imagenes .extra.oculto { display: none; }

  .galeria-featured img {
    width: 100%;
    height: auto;
    display: block;
  }
  .otras-imagenes {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }
  .otras-imagenes img {
    width: 100%;
    height: auto;
    display: block;
  }
  .btn-ver-mas {
    display: inline-block;
    padding: 10px 14px;
    border: 0;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    background: var(--color-primary);
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
  }

/* FOOTER */
footer {
  background: var(--color-primary) !important;
}

body:has(.form) footer {
  margin-top: -175px !important;
  padding-top: 175px !important;
}

.custom-footer {
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 6.5rem;
}

.custom-footer * {
  color: white !important;
}

.custom-footer *:hover {
  color: inherit !important;
}

.custom-footer > div:first-child {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.custom-footer > div:first-child > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.custom-footer > div:first-child > div:first-child > div:last-child {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: start;
  align-items: center;
}

.custom-footer > div:first-child > div:first-child > img {
  width: 150px;
  height: auto;
}

.custom-footer > div:first-child > div:first-child > div:last-child img {
  width: 20px;
  height: auto;
}

.custom-footer > div:first-child > div:last-child {
  display: flex;
  flex-direction: row;
  gap: 5rem;
}

.custom-footer > div:first-child > div:last-child > ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-footer > div:last-child {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 35px;
}

.custom-footer > div:last-child > * {
  color: #ddd !important;
  font-size: 14px;
}

@media (max-width: 1150px) {
  .fusion-main-menu {
    display: none !important;
  }
  .mobile-menu {
    display: block !important;
  }
  .menu-lateral {
    display: flex !important;
  }
    .adhoc-menu{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  
  .menu-lateral .sidebar-menu a{
    font-weight: 600 !important;
    padding: 5px 20px !important;
    background-color: #fafafa !important;
    border-radius: 5px !important;
  }
}

@media (max-width: 900px) {
  .single-post-promociones .promocion-interior {
    grid-template-columns: 1fr;
  }
  .single-post-promociones .promocion-interior .boton {
    text-align: center;
  }
}

@media (max-width: 800px) {
  .grid-anuncios .anuncios-post {
    flex-direction: column;
    gap: 35px;
  }
  .single-post-anuncios .anuncio-interior h2 {
    width: 100%;
  }
  .grid-anuncios .anuncios-post a {
    align-self: center;
  }
  .single-post-anuncios .anuncio-interior .content {
    grid-template-columns: 1fr;
  }
  .single-post-anuncios .anuncio-interior .gform_wrapper {
    margin-top: 0 !important;
  }

  .texto p {
    font-size: 14px;
  }
  .texto h1 {
    font-size: 35px !important;
  }
  .texto h2 {
    font-size: 28px !important;
  }
  .texto h3 {
    font-size: 25px !important;
  }
  .texto h4 {
    font-size: 22px !important;
  }
  .texto h6 {
    font-size: 3rem !important;
  }

}

@media (max-width: 700px) {
  .custom-footer {
    align-items: center;
    text-align: center;
    padding-top: 0;
  }
  .custom-footer > div:first-child {
    flex-direction: column;
    gap: 3rem;
  }
  .custom-footer > div:first-child > div:first-child {
    align-items: center;
  }
  .custom-footer > div:first-child > div:last-child {
    flex-direction: column;
    gap: 3rem;
  }
  .custom-footer > div:last-child {
    flex-direction: column;
    gap: 5px;
  }



  .adhoc-menu .boton-canal-incidencias{
    padding: 5px 20px !important;
    font-size: 12px !important;
  }
  .menu-lateral{
    width: 75% !important;
  }

  .menu-lateral .sidebar-menu a{
    font-size: 14px !important;
    padding: 5px 10px !important;
    width: 100% !important;
    display: flex;
  }

}

@media only screen and (max-width: 500px){
    .fusion-logo-link img {
        width: 70px !important;
    }

    .adhoc-menu .boton-canal-incidencias {
        padding: 5px 10px !important;
        font-size: 12px !important;
        text-align: center !important;
    }
}
