/*!
Theme Name: Kava Child
Theme URI:
Author: Zemez
Author URI:
Description: Kava child theme.
Template: kava
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kava-child
*/

/*GENERALES*/
body {
    background-image: url('./assets/img/cgsc_bg_pattern.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: top left;
}

/*CUSTOM CTA BUTTONS*/
.cgsc-cta-container {
    text-align: center;
    margin: 20px 0;
}

.cgsc-cta-button {
    position: relative;
    background: linear-gradient(90deg, #ef3e24 0%, #f4791f 100%);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 16px 24px;
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    width: 100%;
    max-width: 444px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.cgsc-cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    height: 100%;
    width: 50%;
    background: linear-gradient(120deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cgsc-cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    color: #ffffff;
}

.cgsc-cta-button:hover::before {
    opacity: 1;
   animation: shine 0.3s cubic-bezier(0.4, 0, 0.2, 1) 2 alternate;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

.cgsc-cta-line1 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cgsc-cta-line2 {
    font-size: 30px;
    text-transform: uppercase;
}

.cgsc-cta-single-line .cgsc-cta-button {
    height: 70px;
}



/*CUSTOM CTA BUTTONS*/

/*GALLERY CGSC*/

/* Galería */
.elementor-image-gallery .gallery {
  position: relative;
  min-height: 460px;
  max-height: 460px;
  overflow: hidden;
}

/* Cada imagen */
/* Base: estilo general de cada ítem */
.gallery-item {
  position: absolute !important;
  opacity: 0;
  transition: transform 0.8s ease-in-out, opacity 0.4s ease-in-out;
  z-index: 1;
  will-change: transform;
  pointer-events: auto;
}
/* Sombra base al cargar */
.elementor-image-gallery .gallery-item img {
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  transition: transform 0.4s ease, box-shadow 0.3s ease, z-index 0s;
}
/* Interno: efecto visual */
.gallery-item a {
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 20px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

/* Hover visual sin alterar la posición real */
.gallery-item:hover a {
  transform: translateY(-6px) scale(1.05) rotate(3deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

/*GALLERY CGSC*/