/* Services Page - Premium Styles */

/* ===== Before & After Slider ===== */
.before-after-section {
    padding: 4rem 0;
    background: var(--color-white);
    position: relative;
}

.before-after-section h2 {
    position: relative;
    padding-bottom: 1.25rem;
    color: var(--color-dark, #2A2725);
}

.before-after-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold, #C8A96E));
    border-radius: 3px;
}

#comparison { width: 100%; overflow: hidden; position: relative }
.ba-comparison {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(26,24,23,0.08));
}
.ba-figure { position: absolute; background-size: cover; background-position: center; font-size: 0; margin: 0 }
#divisor, .ba-divisor { background-size: cover; background-position: center; position: absolute; width: 50%; box-shadow: 0 5px 10px -2px rgba(0,0,0,0.3); bottom: 0; height: 100% }
#divisor::before, #divisor::after, .ba-divisor::before, .ba-divisor::after { content: ''; position: absolute; right: -2px; width: 4px; height: calc(50% - 23px); background: #fff; z-index: 3 }
#divisor::before, .ba-divisor::before { top: 0 }
#divisor::after, .ba-divisor::after { bottom: 0 }
#handle, .ba-handle {
    position: absolute;
    height: 50px;
    width: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
    border-radius: 100%;
    background: linear-gradient(135deg, var(--color-primary, #2D6A1E), var(--color-primary-light, #3E8C2A));
    box-shadow: 0 4px 16px rgba(45, 106, 30, 0.35);
}
#handle::before, #handle::after, .ba-handle::before, .ba-handle::after { content: ''; width: 0; height: 0; border: 6px inset transparent; position: absolute; top: 50%; transform: translateY(-50%) }
#handle::before, .ba-handle::before { border-right: 6px solid #fff; left: 50%; margin-left: -16px }
#handle::after, .ba-handle::after { border-left: 6px solid #fff; right: 50%; margin-right: -16px }
input[type=range] { appearance: none; -webkit-appearance: none; -moz-appearance: none; position: absolute; top: 50%; left: -25px; transform: translateY(-50%); background-color: transparent; width: calc(100% + 50px); z-index: 2; margin: 0; padding: 0; height: 50px; text-indent: 0.01px; text-overflow: '' }
input[type=range]:focus, input[type=range]:active { border: none; outline: none }
input[type=range]::-moz-focus-outer { border: 0 }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; border: none; height: 50px; width: 50px; border-radius: 50%; background: transparent; border: 4px solid #fff; box-shadow: 0 0 8px 1px rgba(0,0,0,0.3) }
input[type=range]::-moz-range-track { -moz-appearance: none; height: 15px; width: 100%; background-color: transparent; position: relative; outline: none; text-indent: 0.01px; text-overflow: '' }
input[type=range]::-moz-range-thumb, input[type=range]:focus::-moz-range-thumb { box-shadow: none; border: none; height: 0; width: 0; border-radius: 0; background: transparent; cursor: pointer; text-indent: 0.01px; text-overflow: '' }
input[type=range]::-ms-thumb { box-shadow: none; border: none; height: 0; width: 0; border-radius: 0; background: transparent; cursor: pointer }

/* ===== Services Introduction ===== */
.services-intro {
    padding: 5rem 0 3rem;
    background-color: var(--color-white);
    position: relative;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-dark, #2A2725);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    line-height: 1.3;
}

.intro-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold, #C8A96E));
    border-radius: 3px;
}

.intro-content .lead {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--color-gray-dark, #7A7269);
}

/* ===== Service Badges ===== */
.service-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 3rem;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-sand, #EDE8E0);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(26,24,23,0.04));
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    width: 170px;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold, #C8A96E));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.badge:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover, 0 20px 50px rgba(26,24,23,0.12));
    border-color: transparent;
}

.badge:hover::before {
    transform: scaleX(1);
}

.badge i {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.badge:hover i {
    transform: scale(1.15) rotate(5deg);
}

.badge span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--color-dark, #2A2725);
}

/* ===== Service Detail Sections ===== */
.service-detail {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: var(--color-white);
}

.service-detail.bg-light {
    background: var(--color-cream, #FAF8F5);
}

.service-detail:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    z-index: 1;
    opacity: 0;
}

.service-detail .container {
    position: relative;
    z-index: 2;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.service-image {
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(26,24,23,0.08));
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg, 16px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    pointer-events: none;
}

.service-image:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl, 0 24px 60px rgba(26,24,23,0.10));
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-image:hover img {
    transform: scale(1.04);
}

.service-content {
    padding: 2.5rem;
    background-color: var(--color-white);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(26,24,23,0.04));
    border: 1px solid var(--color-sand, #EDE8E0);
}

.service-detail.bg-light .service-content {
    background-color: var(--color-white);
}

.service-content h2 {
    color: var(--color-dark, #2A2725);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.service-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold, #C8A96E));
    border-radius: 3px;
}

.service-content h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-dark, #7A7269);
    margin-bottom: 0.75rem;
}

.service-content p {
    color: var(--color-gray-dark, #7A7269);
    line-height: 1.85;
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0 2rem;
}

.service-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--color-charcoal, #3A3633);
    font-size: 1.05rem;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== Process Section ===== */
.process-section {
    padding: 5rem 0;
    background-color: var(--color-white);
    position: relative;
}

.process-section h2 {
    position: relative;
    padding-bottom: 1.25rem;
    color: var(--color-dark, #2A2725);
}

.process-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold, #C8A96E));
    border-radius: 3px;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2.5rem 2rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-sand, #EDE8E0);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(26,24,23,0.04));
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    counter-increment: step-counter;
}

.process-step::before {
    content: counter(step-counter);
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.08;
    line-height: 1;
}

.process-steps {
    counter-reset: step-counter;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover, 0 20px 50px rgba(26,24,23,0.12));
    border-color: transparent;
}

.process-step:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 30px;
    height: 30px;
    background-image: url('../images/icons/arrow-right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    display: none;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-cream, #FAF8F5), var(--color-ivory, #F5F1EC));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md, 0 4px 16px rgba(26,24,23,0.06));
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--color-sand, #EDE8E0);
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(45, 106, 30, 0.08), rgba(45, 106, 30, 0.15));
    box-shadow: 0 6px 20px rgba(45, 106, 30, 0.15);
    border-color: rgba(45, 106, 30, 0.2);
}

.step-icon img {
    width: 40px;
    height: 40px;
}

.process-step h3 {
    margin-bottom: 0.75rem;
    color: var(--color-dark, #2A2725);
    font-size: 1.15rem;
}

.process-step p {
    color: var(--color-gray-dark, #7A7269);
    font-size: 1rem;
    line-height: 1.7;
}

/* (Se eliminó la sección de materiales) */

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-grid.reverse {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }

    .process-step:not(:last-child):after {
        display: block;
    }

    /* (Se eliminó la regla de materials-grid en media query) */
}

@media (max-width: 767px) {
    .service-badges {
        gap: 1rem;
    }

    .badge {
        width: calc(50% - 0.5rem);
        padding: 1.25rem 1rem;
    }

    .service-content {
        padding: 1.5rem;
    }
}
