:root {
    --spax-green: #0d6e3a;
    --spax-light-green: #158b4b;
    --spax-dark: #1a1a1a;
    --spax-cream: #F9F9F8;
    --shadow-float: 0 25px 50px rgba(13, 110, 58, 0.2);
}
html, body {
    height: 100%;
    overflow: hidden;
}



.parallax-scroller {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 2px;
    scroll-behavior: smooth;
}

.parallax-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(-1px) scale(1.5);
    z-index: 1;
}

.parallax-overlay-3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
    transform: translateZ(-1px) scale(1.5);
    z-index: 2;
}

.parallax-content {
    position: relative;
    z-index: 10;
    transform: translateZ(0); 
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8vh 20px;
    pointer-events: none;
}

.parallax-content > * {
    pointer-events: auto;
}

.text-shadow-hero { text-shadow: 0 4px 15px rgba(0,0,0,0.8); }

.hero-container {
    position: relative;
    z-index: 10; 
    transform: translateZ(0); 
    background-color: var(--spax-dark);
}

.hero-video-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.hero-video.active {
    opacity: 1;
    z-index: 1;
}

.wave-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 20;
    pointer-events: none;
}

.bg-blueprint {
    background-color: #ffffff; 
    background-image: none;
    position: relative;
    overflow: hidden;
}

.torx-watermark {
    position: absolute;
    width: 400px;
    top: -100px;
    right: -100px;
    transform: rotate(15deg);
    pointer-events: none;
}


#catalogo-aplicacion .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, 320px);
  justify-content: center;
  gap: 16px; 
}
.youtube-lazy {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #000;
}

.youtube-lazy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 0;
    border-radius: 50%;
    background:  #158b4b;
    color:#ffffff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.youtube-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #f3f8f5;
}

.youtube-lazy iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.spax-modal-close-btn {
    width: 50px;
    height: 50px;
    background: rgba(13, 110, 58, 0.8); /* Verde SPAX como el botón de play */
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.spax-modal-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: #0b5d30;
    border-color: white;
}