/*
Theme Name: Base
Theme URI: https://www.invbit.com
Author: Base
Author URI: https://www.invbit.com
Description: Base para Betheme
Template: betheme
Version: 1.6.2
*/

@import "./css/variables.css";

.validate_email_against_bot {
  display: none;
}

body #cmplz-manage-consent .cmplz-manage-consent {
  background-image: url(imagenes/fondo-ajustes.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  right: unset !important;
  left: 0px;
  font-size: 0px;
  color: var(--negro) !important;
  width: 140px;
  background-color: transparent !important;
  box-shadow: unset !important;
  bottom: -2px !important;
  padding: 0 !important;
}

body #cmplz-manage-consent .cmplz-manage-consent:before {
  content: "";
  background-image: url(imagenes/icono-ajustes.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-color: white !important;
  background-size: 100%;
  width: 28px;
  height: 28px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s ease;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -webkit-transition: all 0.8s ease;
  -moz-transition: all 0.8s ease;
  -ms-transition: all 0.8s ease;
  -o-transition: all 0.8s ease;
}

body #cmplz-manage-consent .cmplz-manage-consent:hover:before {
  transform: translate(-50%, -54%);
  -webkit-transform: translate(-50%, -54%);
  -moz-transform: translate(-50%, -54%);
  -ms-transform: translate(-50%, -54%);
  -o-transform: translate(-50%, -54%);
}

/* Arregla padding al abrir popup deshabilitando scroll de la web */
html.mfn-popup-browser-scroll-disabled {
  padding-right: 0;
}

/*********************************\
            COPYRIGHT
\*********************************/
body #Footer .copyright a:hover {
  text-decoration: none;
}

body #Footer .footer_copy {
  border: 0;
  background: black;
  color: white;
}

body #Footer .footer_copy a {
  color: white;
}

body #Footer .footer_copy a:hover {
  color: var(--primary);
}

body #Footer .footer_copy .one {
  --mfn-column-gap-bottom: 15px;
  padding-top: 15px;
  margin-bottom: 0;
}

body #Footer .footer_copy .mcb-column-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body #Footer .menu {
  list-style: none;
  padding: 0;
  background: none;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

body #Footer .copyright .menu {
  gap: 0 10px;
  flex-direction: row;
}

body #Footer .menu li:after {
  content: none;
}

body #Footer .menu a {
  padding: 5px 0;
}

body #Footer .footer_copy .copyright {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  float: none;
  text-align: left;
}

body #Footer .footer_copy .copyText {
  margin: 0 0 5px;
}

body #Footer .footer_copy .social {
  line-height: 0;
}

body #Footer .footer_copy .social li a {
  font-size: 22px;
  line-height: 1;
}

@media only screen and (max-width: 959px) {
  body .animate {
    animation-delay: 0ms !important;
  }

  body #Footer .footer_copy .mcb-column-inner {
    flex-direction: column;
  }

  body #Footer .copyright .menu {
    justify-content: center;
  }

  body #Footer .footer_copy .copyright {
    text-align: center;
  }

  body #Footer .footer_copy .social {
    margin-top: 15px;
  }
}

/*********************************\
            KIT DIGITAL
\*********************************/
body #Footer .footer_action {
  background: none;
}

body #Footer .footer_action .one {
  margin-bottom: 0;
}

body #Footer .footer_action .financiacion {
  display: grid;
  grid-template-columns: 1fr 1fr 5fr;
  gap: 20px;
  text-align: left;
  align-items: center;
}

body #Footer .footer_action .financiacion > div {
  line-height: 0;
}

body #Footer .footer_action .financiacion > div img {
  max-height: 50px;
  width: auto;
}

body #Footer .footer_action .financiacion > div p {
  font-size: 13px;
  line-height: 15px;
  margin-bottom: 0;
}

@media only screen and (max-width: 959px) {
  body #Footer .footer_action .financiacion {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 5px;
  }

  body #Footer .footer_action .financiacion > div:last-child {
    grid-column: 1 / span 2;
  }
}

@media only screen and (max-width: 767px) {
  body #Footer .footer_action .financiacion > div img {
    max-height: unset;
    width: 100%;
  }
}

body #pojo-a11y-toolbar .pojo-a11y-toolbar-overlay p.pojo-a11y-toolbar-title {
  line-height: 1.2;
}

/*Subheader*/

.subheader-both-left #Subheader .title {
  font-weight: 600 !important;

  text-transform: uppercase !important;
}

/* Grid Proyectos*/

.mcb-wrap-grid
  .item-project:nth-child(even)
  > .mcb-wrap-inner.mfn-wrapper-for-wraps {
  grid-template-columns: 2fr 1fr !important; /* texto-imagen */
}

/* === ORDEN DE CADA COLUMNA === */
.mcb-wrap-grid .item-project .column_image {
  grid-column: 1;
}

.mcb-wrap-grid .item-project .column_heading {
  grid-column: 2;
}

/* === EN FILAS PARES, INTERCAMBIAR COLUMNA === */
.mcb-wrap-grid .item-project:nth-child(even) .column_image {
  grid-column: 2;
}

.mcb-wrap-grid .item-project:nth-child(even) .column_heading {
  grid-column: 1;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
  .mcb-wrap-grid .item-project > .mcb-wrap-inner.mfn-wrapper-for-wraps {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .mcb-wrap-grid .item-project .column_image,
  .mcb-wrap-grid .item-project .column_heading {
    grid-column: auto !important;
  }
}

/* Animacion */

.images-animation {
  min-height: 400px;
}
.images-animation > .mcb-wrap-inner {
  position: relative;
  display: flex;
}

.images-animation .column_image {
  flex: 0 0 25%;
  position: absolute;
  max-height: 394px;
  max-width: 329px;
}

.images-animation .column_image img {
  flex: 0 0 25%;
  position: absolute;
  max-width: 329px;
  max-height: 394px;
  min-height: 394px;
  object-fit: cover;
}

.images-animation .column_image:nth-child(2) {
  right: 684px;
  top: 0;
  z-index: 2;
}

.images-animation .column_image:nth-child(3) {
  right: 599px;
  top: -31px;
  z-index: 3;
}

.images-animation .column_image:nth-child(4) {
  right: 488px;
  top: -84px;
  z-index: 4;
}

.images-animation .column_image:nth-child(5) {
  right: 389px;
  z-index: 5;
}
/*Single portfolio*/

.fixed-nav.style-arrows .photo{
	background:var(--primary);
	color:white;
	opacity:0.5;
}
.fixed-nav.style-arrows:hover .photo{
	opacity:1;
}


/*Galería Proyecto*/

/* ===== Galería ACF con efecto masonry ===== */
.acf-gallery-wrapper {
  column-count: 2;            /* dos columnas en desktop */
  column-gap: 50px;           /* espacio entre columnas */
}

.acf-gallery-item {
  display: inline-block;      /* necesario para column layout */
  width: 100%;
  margin-bottom: 50px;        /* espacio vertical entre elementos */
  break-inside: avoid;        /* evita cortes bruscos en columnas */
 /* gris de fondo mientras carga */
  border-radius: 0px;
  overflow: hidden;
}

.acf-gallery-item a {
  display: block;
  width: 100%;
  overflow: hidden;
}

.acf-gallery-item img {
  width: 100%;
  height: auto;               /* mantiene proporción original */
  display: block;
  transition: transform 0.3s ease;
}

.acf-gallery-item:hover img {
  transform: scale(1.03);     /* sutil zoom al pasar el cursor */
}

.acf-gallery-caption {
  padding: 8px 10px;
  font-size: 13px;
  color: #555;
  font-style: italic;
  text-align: right;
 
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .acf-gallery-wrapper {
    column-count: 1; /* una columna en tablet/móvil */
  }
}


