/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

.reveal-delay-400 {
    transition-delay: 0.4s;
}

.reveal-delay-500 {
    transition-delay: 0.5s;
}

/* Modal Styles */
#biocosechas-modal {
    transition: opacity 0.3s ease-in-out;
}

#biocosechas-modal-content {
    transition: all 0.3s ease-in-out;
}

/* Ensure modal is on top of everything */
.z-50 {
    z-index: 9999;
}

/* Infinite Slider */
.biocosechas-slide-track {
    animation: scroll 60s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

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

/* Applications Carousel - Card-based Design */
.biocosechas-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.biocosechas-carousel-track {
    display: flex;
    gap: 1.25rem;
    animation: carousel-scroll 45s linear infinite;
    width: max-content;
}

.biocosechas-carousel-slide {
    flex-shrink: 0;
    width: 260px;
}

.biocosechas-slide-card {
    background: rgba(78, 205, 196, 0.04);
    border-radius: 1.5rem;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(78, 205, 196, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 190px;
    transition: all 0.3s ease;
}

.biocosechas-slide-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biocosechas-slide-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(78, 205, 196, 0.2));
}

.biocosechas-slide-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4A5568;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .biocosechas-carousel-slide {
        width: 160px;
    }

    .biocosechas-slide-card {
        height: 140px;
        padding: 1rem;
    }

    .biocosechas-slide-icon .material-symbols-outlined {
        font-size: 2.2rem;
    }

    .biocosechas-slide-title {
        font-size: 0.7rem;
    }
}

/* Tequila/Manufacturing Slider */
.biocosechas-tequila-slide {
    position: relative;
    width: calc(50vw - 3rem);
    min-width: 600px;
    height: 80vh;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.biocosechas-tequila-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5rem;
    max-width: 900px;
}

@media (max-width: 768px) {
    .biocosechas-tequila-slide {
        width: 100vw;
        min-width: 100vw;
        height: 70vh;
    }

    .biocosechas-tequila-content {
        padding: 2rem 3rem;
    }
}

/* Tequila Slider - Single Slide View */
.biocosechas-tequila-slider-wrapper {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.biocosechas-tequila-slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.biocosechas-tequila-slide-single {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.biocosechas-tequila-slide-single.active {
    opacity: 1;
    pointer-events: auto;
}

.biocosechas-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Navigation Arrows */
.biocosechas-tequila-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.biocosechas-tequila-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.biocosechas-tequila-prev {
    left: 2rem;
}

.biocosechas-tequila-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .biocosechas-tequila-slider-wrapper {
        height: auto;
        min-height: 600px;
    }

    .biocosechas-tequila-slide-single {
        position: absolute;
        height: 100%;
        min-height: 600px;
    }

    .biocosechas-tequila-content {
        padding: 4rem 1.5rem 6rem 1.5rem !important;
        /* Bottom padding for arrows */
        height: auto;
        justify-content: flex-start;
        padding-top: 6rem !important;
    }

    .biocosechas-tequila-nav {
        width: 44px;
        height: 44px;
        top: auto;
        bottom: 1.5rem;
        transform: none;
        background: rgba(255, 255, 255, 0.15);
        z-index: 50;
        /* Ensure high z-index for clickability */
    }

    .biocosechas-tequila-prev {
        left: 2rem;
    }

    .biocosechas-tequila-next {
        right: auto;
        left: 6rem;
        /* Next to prev button */
    }
}

/* Applications Grid V2 - Premium Refinement */
/* Applications Layout Refinement */
.biocosechas-app-card-v2 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
}

.biocosechas-app-card-v2.active {
    opacity: 1;
    transform: translateY(0);
}

.biocosechas-app-card-v2:hover {
    transform: translateY(-4px) !important;
}

.biocosechas-app-card-v2 img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* Custom bullet for list items */
.biocosechas-app-list-caret {
    color: var(--techBlue);
    font-size: 14px;
    line-height: 1;
}

/* Contact Banner - Original Layout Reversion */
.biocosechas-contact-banner {
    background: #0044cc;
    color: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.biocosechas-contact-banner h3 {
    color: white !important;
}

.biocosechas-contact-banner p {
    color: rgba(255, 255, 255, 0.8);
}

/* Ensure reveal items in modal are visible if observer fails */
#biocosechas-modal .reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Redesign Hero Specifics */
.custom-serif-font {
    font-family: 'Playfair Display', serif;
}

.biocosechas-hero-redesign .hero-overlay {
    background: linear-gradient(to right, rgba(10, 77, 140, 0.3), rgba(44, 62, 80, 0.2));
    /* Lighter overlay */
}

/* Ensure bottom bar icons are crisp */
.biocosechas-hero-redesign .material-symbols-outlined {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Hero Title Animation & Feedback */
.tracking-in-expand {
    animation: tracking-in-expand 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation-delay: 0.5s;
}

@keyframes tracking-in-expand {
    0% {
        letter-spacing: -0.2em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.hero-title-hover {
    transition: all 0.3s ease;
    cursor: default;
}

.hero-title-hover:hover {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}