/* =================================================================
   AGROLEGAL CUSTOM STYLES - Página de Servicios
   ================================================================= */

/* Hero Section */
.services-hero {
    background: linear-gradient(135deg, rgba(39, 63, 91, 0.8) 0%, rgba(173, 119, 69, 0.8) 100%), 
                url('https://ftp.rural-server.com/images/images/mEl3kOeyU3jmzxK0.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.services-hero h1 {
    font-family: 'Rockwell', 'Montserrat', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.services-hero .lead {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Tarjetas específicas por fila - Columnas izquierdas (lg-6 first) */
.row .col-lg-6:nth-child(odd) .service-card {
    background: linear-gradient(135deg, #2c5530, #1e3d22);
}

/* Tarjetas específicas por fila - Columnas derechas (lg-6 second) */
.row .col-lg-6:nth-child(even) .service-card {
    background-color: #9B6F44;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.service-card:hover::before {
    width: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.service-card h3 {
    font-family: 'Rockwell', 'Montserrat', sans-serif;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.service-card p {
    color: #ffffff;
}

.service-card ul li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.service-card ul li:last-child {
    border-bottom: none;
}

.service-card .fa.fa-check {
    color: #ffffff !important;
}

.service-card strong {
    color: #ffffff;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, rgba(34, 34, 34, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%), 
                url('https://ftp.rural-server.com/images/images/mEl3kOeyU3jmzxK0.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 350px;
    display: flex;
    align-items: center;
    position: relative;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h3 {
    font-family: 'Rockwell', 'Montserrat', sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-light {
    background-color: #ffffff;
    border: 2px solid #ffffff;
    color: #273f5b;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
}

.contact-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(173, 119, 69, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: #ad7745;
}

.contact-item .fas {
    color: #273f5b;
}

.contact-item h5 {
    color: #FFF;
    font-family: 'Rockwell', 'Montserrat', sans-serif;
    font-weight: bold;
}

.contact-item a {
    color: #FFF !important;
    font-weight: 500;
}

.contact-item a:hover {
    color: #273f5b !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .services-hero {
        background-attachment: scroll;
        min-height: 300px;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    /* En mobile, usar selectores más específicos */
    .row .col-lg-6:nth-child(1) .service-card { background: linear-gradient(135deg, #2c5530, #1e3d22); }
    .row .col-lg-6:nth-child(2) .service-card { background-color: #9B6F44; }
    .row .col-lg-6:nth-child(3) .service-card { background: linear-gradient(135deg, #2c5530, #1e3d22); }
    .row .col-lg-6:nth-child(4) .service-card { background-color: #9B6F44; }
    .row .col-lg-6:nth-child(5) .service-card { background: linear-gradient(135deg, #2c5530, #1e3d22); }
    .row .col-lg-6:nth-child(6) .service-card { background-color: #9B6F44; }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
    
    .cta-section .btn-light {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .services-hero {
        min-height: 250px;
    }
    
    .services-hero h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .cta-section h3 {
        font-size: 1.2rem;
    }
}

/* Color Customizations */
:root {
    --agrolegal-primary: #273f5b;
    --agrolegal-secondary: #ad7745;
    --agrolegal-light: #f8f9fa;
    --agrolegal-dark: #222;
    --agrolegal-green: linear-gradient(135deg, #2c5530, #1e3d22);
    --agrolegal-brown: #9B6F44;
}

.text-primary {
    color: var(--agrolegal-primary) !important;
}

.bg-primary {
    background-color: var(--agrolegal-primary) !important;
}

.text-success {
    color: var(--agrolegal-secondary) !important;
}

/* Typography */
.fw-bold {
    font-weight: 700 !important;
}

.lead {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease;
    padding: 20px;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    animation-delay: 0.3s;
}

.service-card:nth-child(5) {
    animation-delay: 0.4s;
}

.service-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Custom scrollbar for better visual appeal */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #273f5b 0%, #ad7745 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ad7745 0%, #273f5b 100%);
}

.btn-outline-light {
    border: 1px solid #FFF;
    color: #fff;
    background-color: transparent;
}

/* Social Media Styles */
.social-icons {
    padding: 20px 0;
}

.social-icon-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icon-link:hover {
    transform: scale(1.2);
    text-decoration: none;
}

.social-icon-link i {
    transition: color 0.3s ease;
}

.social-icon-link:hover i.fa-twitter {
    color: #1da1f2 !important;
}

.social-icon-link:hover i.fa-facebook {
    color: #4267b2 !important;
}

.social-icon-link:hover i.fa-linkedin {
    color: #0077b5 !important;
}

.social-icon-link:hover i.fa-google-plus {
    color: #dd4b39 !important;
}

.social-icon-link:hover i.fa-instagram {
    color: #e4405f !important;
}

.social-icon-link:hover i.fa-youtube {
    color: #ff0000 !important;
}

/* Top bar social icons */
#ul_session .social-icon-link {
    padding: 5px;
}

#ul_session .social-icon-link i {
    font-size: 16px;
    color: #616161;
}

#ul_session .social-icon-link:hover i {
    opacity: 0.8;
}