/* Navigation Logo Link */
.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-logo a:hover {
    text-decoration: none;
}

/* Service Hero with Video */
.service-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('IMAGES/podando-still.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.service-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.service-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-hero .hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Service Description Section */
.service-description {
    padding: 80px 0;
    background-color: var(--white);
}

.description-content {
    max-width: 1200px;
    margin: 0 auto;
}

.description-content h2 {
    text-align: center;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.intro-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-brown);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem 0;
}

.benefit-item:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.benefit-content {
    flex: 1;
}

.benefit-item h3 {
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.benefit-item p {
    color: var(--secondary-brown);
    line-height: 1.6;
    margin: 0;
}

/* Before/After Gallery */
.before-after-gallery {
    padding: 80px 0;
    background-color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.gallery-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Comparison Slider */
.comparison-slider {
    position: relative;
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    cursor: ew-resize;
}

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 1;
}

.before-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    /* Reveal mask: from left (0) to var(--reveal) */
    clip-path: polygon(0 0, var(--reveal, 50%) 0, var(--reveal, 50%) 100%, 0 100%);
}

/* Only apply transition when animating, not when dragging */
.comparison-container.animating .before-image-wrapper {
    transition: clip-path 0.8s ease-in-out;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Adjust first gallery item images to show lower */
.gallery-item:first-child .before-image {
    object-position: center 60%;
}

/* Lower the "después" image more in the first gallery item */
.gallery-item:first-child .after-image {
    object-position: center 70%;
}

.slider-control {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 3;
    pointer-events: none;
    color: var(--primary-green);
    font-size: 1rem;
    opacity: 1;
}

/* Only apply transition when animating, not when dragging */
.comparison-container.animating .slider-button {
    transition: left 0.8s ease-in-out;
}

@keyframes slideHint {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    40% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    80% {
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.comparison-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: var(--line-position, 50%);
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--white);
    z-index: 3;
    pointer-events: none;
}

/* Only apply transition when animating, not when dragging */
.comparison-container.animating::after {
    transition: left 0.8s ease-in-out;
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--white);
}

.label-before,
.label-after {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.label-before {
    color: var(--secondary-brown);
}

.label-after {
    color: var(--primary-green);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--cream);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-content .btn:hover {
    background-color: var(--gold);
    color: var(--dark-green);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero {
        height: 50vh;
        min-height: 300px;
    }

    .service-hero .hero-title {
        font-size: 2rem;
    }

    .service-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-container {
        height: 300px;
    }

    .description-content h2 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-hero .hero-title {
        font-size: 1.5rem;
    }

    .service-hero .hero-subtitle {
        font-size: 1rem;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .comparison-container {
        height: 250px;
    }
}

