/*
 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
*/

/* Ajustes cabeceras de prestashop */
#language_selector ul, ul.cart-products {
    margin-left: 0;
}

#ps-shoppingcart .input-group .input-group-btn {
    display: none;
}
/* end ajustes cabeceras de prestashop */

h1, h2 {
    font-family: var(--gp-font--butler) !important;
    font-weight: 300 !important;
}

/* Component */
a:not(.custom-button):hover {
    color: var(--accent) !important;
}

.alignfull {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: 100vw !important;
    width: 100vw !important;
    box-sizing: border-box;
}

/* Custom Button */
.custom-button {
    color: #fff !important;
    transition: background-color 0.3s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.custom-button .gb-shape svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
}
.custom-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5em 0.5em -0.4em rgba(0, 0, 0, 0.5);
}

/* Video Background */
.background-video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.background-video-content {
    position: relative;
    z-index: 1;
}
video[poster] {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Home Gallery */
.home-gallery .wp-block-gallery {
    gap: 0 !important;
    height: 100%;
    min-height: 500px;
}
.home-gallery .video-container .video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, margin 0.3s ease;
}
.home-gallery .video-container .video-button svg {
    width: 2.5rem !important;
    height: 2.5rem !important;
}
.home-gallery .video-container .video-button:hover {
    margin-top: -5px;
    box-shadow: 0 0.5em 0.5em -0.4em rgba(0, 0, 0, 0.5);
}
.home-gallery .video-container .video-button:hover svg {

}

/* Custom Lists */
ul li svg {
    width: 0.5em !important;
    height: 0.5em !important;
}

/* Custom Slider */
.carousel.logos .carousel-cell {
    width: calc(20% - 1rem * 4/5);
    margin-right: 1rem;
}
.carousel.comments .carousel-cell {
    width: 100%;
    height: auto;
    margin: 0 0 3rem;
}
.carousel .flickity-page-dots .dot {
    width: 1rem;
    height: 1rem;
    margin: 0 0.5rem;
    background: #FF9C6F;
    opacity: 1;
}
.carousel .flickity-page-dots .dot.is-selected {
    background: var(--contrast);
}


/* Projects */
.gallery-project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-project img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Posición de las imágenes */
.gallery-project img:nth-child(1),
.gallery-project img:nth-child(2),
.gallery-project img:nth-child(5),
.gallery-project img:nth-child(6) {
  aspect-ratio: 1 / 1; /* Cuadradas */
}

.gallery-project img:nth-child(3),
.gallery-project img:nth-child(4) {
  aspect-ratio: 3 / 2; /* Rectangulares horizontales */
}


.blockreassurance {
    padding-top: 10px;
}