/* Estilos para la página de Servicios */

/* Hero Section */
.servicios-hero {
    background: url('../img/servicios-bg.jpg') no-repeat center center;
    background-size: cover;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 80px; /* Ajustar según la altura de tu navbar */
}

.servicios-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.servicios-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.servicios-hero p {
    font-size: 20px;
    position: relative;
}

/* Sección de Servicios */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.mb-5 {
    margin-bottom: 50px;
}

.mb-4 {
    margin-bottom: 30px;
}

.service-box {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 48px;
    color: #b38e5d; /* Color dorado para representar destilados */
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.service-box p {
    color: #666;
    line-height: 1.6;
}

/* Sección de Proceso */
.bg-light {
    background-color: #f9f9f9;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #b38e5d;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #b38e5d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 45%;
    position: relative;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 15px;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #fff;
}

.timeline-content.right {
    margin-left: 55%;
}

.timeline-content.right:before {
    right: auto;
    left: -15px;
    border-left: none;
    border-right: 15px solid #fff;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
#cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/cta-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
}

#cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

#cta p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #b38e5d;
    border-color: #b38e5d;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #9a7a4e;
    border-color: #9a7a4e;
}

/* Estilos para la galería de proyectos */
.project-gallery {
    margin-bottom: 20px;
    position: relative;
}

.project-gallery .item {
    height: 400px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.project-gallery .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-thumbs {
    margin-bottom: 30px;
}

.gallery-thumbs .thumb {
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 15px;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-thumbs .thumb.active {
    border-color: #333;
}

.gallery-thumbs .thumb:hover {
    opacity: 0.8;
}

.project-details {
    margin-top: 20px;
}

/* Controles del carrusel */
.project-gallery .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.project-gallery .owl-prev,
.project-gallery .owl-next {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    border-radius: 50%;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.project-gallery .owl-prev {
    left: 10px;
}

.project-gallery .owl-next {
    right: 10px;
}

.project-gallery .owl-prev:hover,
.project-gallery .owl-next:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* Responsive */
@media (max-width: 767px) {
    .project-gallery .item {
        height: 250px;
    }
    
    .gallery-thumbs .thumb {
        height: 60px;
    }
}

@media (max-width: 767px) {
    .servicios-hero {
        height: 400px;
    }
    
    .servicios-hero h1 {
        font-size: 36px;
    }
    
    .servicios-hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }

    /* Ajustes para dispositivos móviles */
    .project-modal .modal-body {
        padding: 15px;
    }
    
    .project-modal .modal-body .col-md-6:first-child {
        margin-bottom: 20px;
    }
    .project-gallery .item {
        height: 250px;
    }
    
    .gallery-thumbs .thumb {
        height: 60px;
    }
}