/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

body {
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: var(--regular);
}

.elementor-widget-text-editor>p:last-child {
  margin-bottom: 0;
}

.elementor-widget-text-editor a {
  border-bottom: 2px solid;
}

.txt-black,
.txt-black a {
  color: var(--c-negro) !important;
}

.txt-red {
  color: var(--c-rojo) !important;
}

.link a:hover {
  color: var(--c-rojo) !important;
}

.widget-image-caption {
  margin-top: -40px;
  padding-bottom: 17px;
  padding-right: 20px;
}

.logo-bg {
  opacity: 0.15;
}

/* .tit-bg div {
  position: absolute;
  left: -40px;
  top: 70px;
  width: 100%;
  white-space: nowrap;
  font-family: var(--font-title);
  opacity: 0.15;
  font-weight: var(--regular);
  font-size: 15vw;
  letter-spacing: 0.07em;
  text-transform: uppercase;
} */
/* .tit-bg {
  width: 100vw;
  min-height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tit-bg svg {
  width: 150%;
      height: 12vw;
  overflow: visible;
}
.tit-bg text {
  fill: var(--c-blanco);
  font-family: var(--font-title);
  font-weight: var(--regular);
  opacity: 0.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
} */
/* .bg-cab {
  position: relative !important;
  overflow: hidden !important;
} */
.bg-loop {
  /* background-color: red; */
  white-space: nowrap;
  z-index: 0;
  overflow: hidden !important;
}

.bg-loop::after {
  content: var(--titulo-pagina);
  /* palabra + espacios para separación */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  animation: loop 600s linear infinite;
  font-family: var(--font-title);
  font-weight: var(--regular);
  font-size: 260px;
  opacity: 0.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bg-loop::after {
  left: 0;
  /* segunda copia pegada a continuación */
}

@keyframes loop {
  from {
    transform: translateY(-50%) translateX(0);
  }

  to {
    transform: translateY(-50%) translateX(-100%);
  }
}

.h-100,
.h-100>div {
  height: 100% !important;
}

/* Encabezados */
.tit h1,
.single-post .inside-article h1,
.search-results h1,
.tit.tit-h1 h2 {
  font-family: var(--font-title);
  font-size: var(--title-extra-large);
  line-height: 1.25em;
  text-transform: uppercase;
}

.tit h2,
.single-post .inside-article h2,
.search-results h2,
.informacion-legal h2 {
  font-family: var(--font-title);
  font-size: var(--title-large);
  line-height: 1.25em;
  text-transform: uppercase;
}

.tit h3,
.single-post .inside-article h3,
.informacion-legal h3 {
  font-family: var(--font-title);
  font-size: var(--title-medium);
  line-height: 1.25em;
  text-transform: uppercase;
}

.tit p,
.single-post .inside-article h4 {
  font-family: var(--font-title);
  font-size: var(--title-small);
  line-height: 1.25em;
  text-transform: uppercase;
}

.tit.tit-line .elementor-heading-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tit.tit-line .elementor-heading-title::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 204px;
  height: 2px;
  background-color: var(--c-blanco);
  margin: 30px 0;
}

.light .elementor-heading-title {
  font-weight: var(--light);
}

.subtit .elementor-heading-title {
  font-family: var(--font-body);
  font-size: var(--title-xs);
  line-height: 1.25em;
}

.upper .elementor-heading-title {
  text-transform: uppercase;
}

.tit-bg p {
  white-space: nowrap;
  overflow: hidden;
}

/* Botones */
.btn-explorar:hover {
  cursor: pointer;
}

.btn-norm * {
  transition: var(--all-transition);
}

.btn-norm a,
.elementor-widget-posts .elementor-button {
  padding: 14px 20px;
  background-color: transparent;
  color: var(--c-blanco) !important;
  font-family: var(--font-title);
  font-size: var(--title-xs);
  border: 2px solid var(--c-blanco);
  border-radius: 0;
  text-transform: uppercase;
}

.btn-norm a .elementor-button-content-wrapper {
  align-items: center;
}

.btn-norm a:hover,
.elementor-widget-posts .elementor-button:hover {
  background-color: var(--c-blanco);
  color: var(--c-negro) !important;
}

.btn-norm a:hover svg path {
  stroke: var(--c-negro);
}

.btn-norm.btn-black a {
  color: var(--c-negro) !important;
  border: 2px solid var(--c-negro);
}

.btn-norm.btn-black a svg path {
  stroke: var(--c-negro);
}

.btn-norm.btn-black a:hover {
  color: var(--c-blanco) !important;
  background-color: var(--c-negro);
}

.btn-norm.btn-black a:hover svg path {
  stroke: var(--c-blanco);
}

.btn-norm.btn-arrow-down svg {
  transform: rotate(90deg);
}

/* Formulario */
.default-form p {
  margin-bottom: 0;
}

.default-form input:not([type="submit"]),
.default-form textarea {
  color: var(--c-blanco);
  border: none;
  border: 2px solid var(--c-blanco);
  background-color: transparent;
  width: 100%;
}

.default-form .datos>.campo:nth-child(1) input,
.default-form .datos>.campo:nth-child(3) input {
  border-bottom: none;
  border-right: none;
}

.default-form .datos>.campo:nth-child(2) input,
.default-form .datos>.campo:nth-child(4) input,
.default-form .datos>.campo:nth-child(5) input {
  border-bottom: none;
}

.default-form textarea {
  max-height: 150px;
  resize: none;
  border-bottom: none;
}

.default-form input::placeholder,
.default-form textarea::placeholder {
  font-size: var(--body);
  font-family: var(--font-title);
  font-weight: var(--light);
  color: var(--c-blanco);
  text-transform: uppercase;
}

.default-form input:focus,
.default-form textarea:focus {
  outline: none;
}

.default-form .datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.default-form .datos>div {
  flex: 0 0 50%;
}

.default-form .datos>div.full-w {
  flex: 0 0 100%;
}

.default-form.form-cv .adjunto {
  padding: 10px 15px;
  border: 2px solid var(--c-blanco);
  margin-top: -7px;
}

.default-form.form-cv .adjunto input {
  border: none;
  font-family: var(--body);
}

.rgpd {
  padding: 10px 15px;
  border: 2px solid;
  border-top: none;
  margin-top: -6px;
}

.rgpd .wpcf7-list-item {
  margin-left: 0;
}

.rgpd input {
  width: auto !important;
}

.txt-legal {
  padding: 10px 15px 0;
  border: 2px solid;
  border-top: none;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.txt-legal .tab-legal {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  column-gap: 4px;
  margin-bottom: 10px;
}

.txt-legal .tab-legal p {
  font-size: 1.2em;
}

.txt-legal .tab-legal:hover {
  cursor: pointer;
}

.txt-legal .tab-legal .plus-icon {
  margin-top: 4px;
}

.txt-legal .tab-legal .plus-icon svg {
  max-width: 13px;
  transform: rotate(45deg);
  fill: var(--c-blanco);
}

.txt-legal .let-peq {
  margin: 0;
  padding-left: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.txt-legal .let-peq>p {
  font-size: 0.8rem;
  line-height: 1.25em !important;
  color: var(--c-blanco) !important;
  padding-bottom: 10px;
}

.btn-enviar input[type=submit] {
  width: 100%;
  background-color: var(--c-blanco);
  text-align: left;
  color: var(--c-negro);
  padding: 14px 20px;
  font-family: var(--font-title);
  font-size: var(--title-xs);
  border-radius: 0;
  text-transform: uppercase;
  border: 2px solid var(--c-blanco);
  border-top: none;
  transition: var(--all-transition);
}

.btn-enviar input[type=submit]:hover {
  background-color: transparent;
  color: var(--c-blanco);
}

.btn-enviar>p {
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.btn-enviar svg {
  position: absolute;
  left: 100px;
  top: 15px;
  max-width: 20px;
}

.btn-enviar svg path {
  transition: var(--all-transition);
}

.btn-enviar:hover svg path {
  stroke: var(--c-blanco);
}

/* Carrusel Justificado */
:root {
  --swiper-height: 400px;
  --swiper-height-mobile: 174px;
  --swiper-nav-margin: -300px;
  /*negative value of half the swiper height */
  --swiper-nav-margin-mobile: -121px;
  /* positioning of nav arrows for mobile */
}

.justified_gallery .swiper-paginatione {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(1.4);
  z-index: 109;
  bottom: 0;
  width: auto;
}

.justified_gallery .swiper-slide img {
  /* height: var(--swiper-height); */
  width: auto;
}

.justified_gallery .elementor-image-gallery .gallery-item {
  width: auto;
  max-width: unset;
}

.carrusel_proyectos .elementor-swiper-button {
  top: -128px !important;
}

.carrusel_proyectos .elementor-swiper-button svg {
  fill: transparent !important;
  font-size: 70px !important;
}

.carrusel_proyectos .elementor-swiper-button-prev {
  right: -150px !important;
}

.carrusel_proyectos .elementor-swiper-button-prev svg {
  transform: rotate(-180deg);
}

.carrusel_proyectos .elementor-swiper-button-next {
  right: 20px !important;
}

/* CTA ICONOS */
.cta-icono .elementor-cta__bg-wrapper {
  position: absolute !important;
  opacity: 0;
  top: 0;
  transition: var(--all-transition);
}

.cta-icono .elementor-cta .elementor-cta__description {
  /* opacity: 0;
    position: absolute;
    left: 0;
    top: 0; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  transition: var(--all-transition);
}

.cta-icono .elementor-cta .elementor-cta__description .icono {
  height: 233px;
  max-height: 233px;
  padding: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--all-transition);
}

.cta-icono .elementor-cta .elementor-cta__description .icono img {
  height: 145px;
  object-fit: contain;
}

.cta-icono .elementor-cta .elementor-cta__description span {
  font-family: var(--font-title);
  font-size: var(--title-xs);
  font-weight: var(--light);
  line-height: 1.25em;
  text-transform: uppercase;
  border-top: 2px solid var(--c-blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 10px;
  transition: var(--all-transition);
  min-height: 98px;
}

.cta-icono .elementor-cta:hover .elementor-cta__description span {
  background-color: var(--c-blanco);
}

.cta-icono .elementor-cta:hover .elementor-cta__bg-wrapper {
  opacity: 1;
}

.cta-icono .elementor-cta:hover .elementor-cta__description .icono {
  opacity: 0;
}

/* Entradas */
.elementor-post .elementor-post__text {
  border-top: 2px solid var(--c-blanco);
  border-bottom: 2px solid var(--c-blanco);
  padding: 20px 0 !important;
}

.txt-black .elementor-post .elementor-post__text {
  border-color: var(--c-negro);
}

.elementor-post .elementor-post__title a {
  color: var(--c-blanco) !important;
  font-family: var(--font-title);
  font-size: var(--title-xs);
  font-weight: var(--bold);
  line-height: 1.5em;
  text-transform: uppercase;
}

.elementor-post .elementor-post__title a,
.elementor-post .elementor-post-date {
  color: var(--c-blanco) !important;
}

.txt-black .elementor-post .elementor-post__title a,
.txt-black .elementor-post .elementor-post-date,
.txt-black .elementor-post .elementor-post__excerpt p,
.txt-black .elementor-post .elementor-post__read-more {
  color: var(--c-negro) !important;
}

.elementor-post .elementor-post__excerpt p {
  color: var(--c-blanco) !important;
  font-size: var(--body) !important;
}

.elementor-post .elementor-post__read-more {
  color: var(--c-blanco);
  font-family: var(--font-title);
  font-size: var(--title-xs) !important;
  text-transform: uppercase;
  font-weight: var(--regular) !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 10px;
}

.elementor-post .elementor-post__read-more::after {
  content: "";
  display: block;
  background-image: url(/wp-content/uploads/2025/08/flecha.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 20px;
  height: 30px;
  opacity: 0;
  transition: var(--all-transition);
}

.txt-black .elementor-post .elementor-post__read-more::after {
  filter: brightness(0);
}

.elementor-post .elementor-post__read-more:hover::after {
  opacity: 1;
}

/* ACORDEONES MODELOS */
.tab-modelo .e-n-accordion-item-title {
  flex-direction: column !important;
  padding: 10px 70px !important;
}

.tab-modelo .e-n-accordion-item-title-header {
  width: 100%;
  margin-bottom: -10px;
}

.tab-modelo .e-n-accordion-item-title-header p {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-modelo .e-n-accordion-item-title-icon {
  margin-bottom: -35px;
  border-radius: 100%;
  border: 1px solid;
  height: 45px;
  max-width: 45px;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  background-color: var(--c-negro);
  z-index: 1;
}

.tab-modelo .e-n-accordion-item-title-icon svg path {
  fill: none;
}

.tab-modelo .e-n-accordion-item-title-icon .e-opened svg {
  transform: rotate(180deg);
}

.tab-modelo table {
  border: none;
}

.tab-modelo table p {
  margin-bottom: 0;
}

.tab-modelo table>tbody>tr {
  display: flex;
}

.tab-modelo table>tbody>tr>td {
  flex: 0 0 50%;
}

.tab-modelo table tbody tr>td:nth-child(1),
.tab-modelo table tbody tr>td:nth-child(1)>span {
  text-transform: uppercase;
  font-weight: var(--bold);
}

/* NAVEGACIÓN CARRUSEL */
.elementor-swiper-button svg path {
  fill: none;
}

.elementor-swiper-button-prev svg {
  transform: rotate(90deg);
}

.elementor-swiper-button-next svg {
  transform: rotate(-90deg);
}

/* BLOG */
.grid_blog .elementor-posts-container>article:first-child {
  grid-area: 1 / 1 / 2 / 4;
}

.grid_blog .elementor-posts-container>article:first-child .elementor-post__excerpt {
  border-bottom: none;
}

.grid_blog .elementor-posts-container>article:first-child .elementor-post__text {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.grid_blog .elementor-posts-container>article .elementor-post__text {
  border: 2px solid var(--c-blanco);
  border-top: 0;
  padding: 35px !important;
}

.grid_blog .elementor-posts-container>article:first-child .elementor-post__text h3,
.grid_blog .elementor-posts-container>article:first-child .elementor-post__meta-data {
  flex: 0 0 100%;
}

.grid_blog .elementor-posts-container>article:first-child .elementor-post__excerpt {
  flex: 0 0 75%;
  padding-bottom: 0;
  margin-bottom: 0;
}

.grid_blog .elementor-post__excerpt {
  border-bottom: 2px solid;
  padding-bottom: 20px;
}

.grid_blog .elementor-posts-container>article .elementor-post__read-more-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.grid_blog .elementor-posts-container>article .elementor-post__read-more {
  padding: 14px 20px;
  border: 2px solid var(--c-blanco);
  border-radius: 0;
}

.grid_blog .elementor-post__read-more::after {
  opacity: 1;
}

.single-post .inside-article {
  display: grid;
  grid-template-columns: 55% 1fr;
  grid-column-gap: 35px;
  grid-row-gap: 35px;
  padding: 70px 20px;
}

.single-post .inside-article .featured-image {
  grid-area: 1 / 2 / 3 / 3;
}

.single-post .inside-article .entry-header {
  grid-area: 1 / 1 / 2 / 2;
}

.single-post .inside-article .entry-content {
  grid-area: 2 / 1 / 3 / 2;
}

.single-post .inside-article footer.entry-meta {
  grid-area: 3 / 1 / 4 / 3;
}

.single-post footer.entry-meta .post-navigation {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  column-gap: 55px;
}

.single-post footer.entry-meta .post-navigation>div {
  flex: 0 0 48%;
  display: flex;
  align-items: center;
}

.single-post footer.entry-meta .post-navigation a {
  text-decoration: none;
  border-bottom: 2px solid;
}

.single-post footer.entry-meta .post-navigation svg {
  height: 30px;
  width: 30px;
}

.single-post footer.entry-meta .post-navigation .nav-next {
  justify-content: start;
  flex-direction: row-reverse;
}

/* RESULTADOS DE BÚSQUEDA */
.search-results .site-main {
  padding: 70px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  justify-content: space-between;
}

.search-results .site-main article {
  padding: 35px;
  border: 2px solid;
}

.search-results .site-main article img {
  display: none;
}

.search-results .site-main article .inside-article {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

.search-results .site-main article a.read-more {
  display: inline-block;
  color: var(--c-blanco) !important;
  font-family: var(--font-title);
  font-size: var(--title-xs);
  text-transform: uppercase;
  text-decoration: none;
}

@media screen and (max-width: 1300px) {
  .cta-icono .elementor-cta .elementor-cta__description .icono img {
    height: 100px;
  }

  .cta-icono .elementor-cta .elementor-cta__description span {
    padding: 20px;
    min-height: 117px;
  }
}

@media screen and (max-width: 1024px) {
  .cta-icono .elementor-cta .elementor-cta__description span {
    min-height: 92px;
  }

  /* BLOG */
  .grid_blog .elementor-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
  }

  .grid_blog .elementor-posts-container>article {
    flex: 0 0 47%;
  }

  .grid_blog .elementor-posts-container>article:first-child {
    flex: 0 0 100%;
  }

  .single-post .inside-article {
    display: flex;
    flex-direction: column;
    gap: 35px
  }

  .single-post footer.entry-meta .post-navigation {
    flex-direction: column;
    gap: 15px
  }
}

@media screen and (max-width: 600px) {

  .elementor-heading-title br {
    display: none;
  }

  /* FORMULARIO */
  .default-form .datos {
    flex-direction: column;
  }

  .default-form .datos>.campo:nth-child(1) input,
  .default-form .datos>.campo:nth-child(3) input {
    border-right: 2px solid var(--c-blanco);
  }

  /* ACORDEONES MODELOS */
  .tab-modelo .e-n-accordion-item-title {
    padding: 10px 35px 20px !important;
  }

  .tab-modelo .e-n-accordion-item-title-icon {
    margin-bottom: -45px;
    margin-top: 20px;
  }

  .tab-modelo table>tbody {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
  }

  .tab-modelo table>tbody>tr {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .tab-modelo table>tbody>tr>td {
    padding: 0;
  }

  /* CTA ICONOS */
  .cta-icono .elementor-cta .elementor-cta__description .icono {
    height: auto;
  }


  /* BLOG */
  .grid_blog .elementor-posts-container>article:first-child .elementor-post__text {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .grid_blog .elementor-posts-container>article:first-child .elementor-post__excerpt {
    border-bottom: inherit;
    padding-bottom: inherit;
    margin-bottom: 20px;
  }

  .grid_blog .elementor-posts-container {
    flex-direction: column;
  }

  .grid_blog .elementor-posts-container>article .elementor-post__text {
    padding: 20px !important;
  }
}