/* Estilos específicos para service.html */

/* Estilos para la sección de testimonios */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-img {
    transform: scale(1.05);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.quote-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 35px;
    height: 35px;
    background: #4e9c81;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(78, 156, 129, 0.3);
}

.testimonial-content {
    text-align: center;
}

.testimonial-content p {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    padding: 0 10px;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 2px;
}

.testimonial-content h5 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
    font-size: 18px;
}

.testimonial-content span {
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

/* Efecto de borde animado */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4e9c81, #a8e6cf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para los controles del carrusel */
.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #4e9c81;
    border: 2px solid #4e9c81;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: #4e9c81;
    color: #fff;
    transform: translateY(-3px);
}

/* Estilos responsivos */
@media (max-width: 991px) {
    .testimonial-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-img {
        width: 90px;
        height: 90px;
    }
}

/* Estilos para el topbar */
.topbar-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-contact-info, .topbar-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-contact-info p {
    margin: 0 10px 0 0;
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
}

.topbar-social a {
    color: #7bb241 !important;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.topbar-social a:hover {
    color: #4e7c1b !important;
}

@media (max-width: 600px) {
    .topbar-contact-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .topbar-contact-info, .topbar-social {
        gap: 10px;
    }
    
    .topbar-contact-info p {
        font-size: 0.95rem;
    }
}

/* Estilos mejorados para los servicios */
.service-item {
    border: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding-top: 1.5rem !important; /* reduce vertical padding */
    padding-bottom: 1.5rem !important;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.service-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 0.75rem !important; /* tighter icon spacing */
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7bb241, #00649f);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    line-height: 1.55;
    color: #666;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-col {
        margin-bottom: 30px;
    }
    
    .service-item {
        margin: 0 10px;
    }
}

@media (min-width: 992px) {
    .row.justify-content-center {
        margin: 0 -15px;
    }
    
    .service-col {
        padding: 0 15px;
    }
}

/* Clases para reemplazar estilos inline */
.navbar-container {
    z-index: 9;
}

.logo-img {
    max-width: 70px;
}

.page-header-container {
    min-height: 400px;
}

/* Clases para reemplazar estilos inline específicos */
.service-title-spacing {
    letter-spacing: 5px;
}

.testimonials-title-spacing {
    letter-spacing: 3px;
    font-weight: 600;
}

.testimonials-divider {
    width: 80px;
    height: 3px;
    background: #4e9c81;
    margin: 0 auto 20px;
}

.service-item-rounded {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-margin-top {
    margin-top: 60px;
    padding-bottom: 15px;
}

.footer-section-spacing {
    letter-spacing: 3px;
}

.footer-border-top {
    border-color: rgba(256, 256, 256, .1) !important;
}

/* COMPREHENSIVE MOBILE OPTIMIZATIONS - SERVICE PAGE */
@media (max-width: 768px) {
    /* Hero/Header Section - Reduced Height */
    .page-header {
        min-height: 60vh !important;
        padding: 30px 0 !important;
    }
    
    .page-header h1 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
        line-height: 1.2 !important;
    }
    
    .page-header p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
        line-height: 1.4 !important;
    }
    
    /* Services Section - Compact Cards */
    .service-section {
        padding: 30px 0 !important;
    }
    
    .service-item {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
        border-radius: 15px !important;
    }
    
    .service-item i {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }
    
    .service-item h4 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .service-item p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
    }
    
    /* Testimonials Section - Smaller Cards */
    .testimonial-section {
        padding: 30px 0 !important;
    }
    
    .testimonial-card {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
        border-radius: 15px !important;
    }
    
    .testimonial-img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 15px !important;
    }
    
    .testimonial-content h5 {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }
    
    .testimonial-content p {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }
    
    .testimonial-content span {
        font-size: 0.75rem !important;
    }
    
    /* Section Titles - Smaller */
    .section-title h2,
    .text-center h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .section-title p,
    .text-center p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Footer - Mobile Optimized */
    footer.bg-dark {
        padding: 15px 10px !important;
        margin-top: 20px !important;
        border: none !important;
    }
    
    /* Hide desktop footer, show mobile footer */
    .desktop-footer {
        display: none !important;
    }
    
    .mobile-footer {
        display: block !important;
    }
    
    /* Mobile Footer Brand */
    .mobile-footer-brand h1 {
        font-size: 1.3rem !important;
        margin-bottom: 5px !important;
    }
    
    .mobile-footer-brand p {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
        opacity: 0.8;
    }
    
    /* Mobile Footer Sections */
    .mobile-footer-sections {
        margin: 15px 0 !important;
    }
    
    .mobile-footer-section {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 0 !important;
    }
    
    .mobile-footer-toggle {
        width: 100%;
        background: none;
        border: none;
        color: #fff;
        padding: 12px 0;
        text-align: left;
        font-size: 0.9rem;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-footer-toggle:hover {
        color: #007bff;
    }
    
    .mobile-footer-toggle i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .mobile-footer-content {
        display: none;
        padding: 0 0 15px 0;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 200px;
        }
    }
    
    .mobile-footer-content a {
        display: block;
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        padding: 5px 0;
        font-size: 0.8rem;
        transition: color 0.3s ease;
    }
    
    .mobile-footer-content a:hover {
        color: #007bff;
        text-decoration: none;
    }
    
    .mobile-footer-content p {
        color: rgba(255,255,255,0.7);
        font-size: 0.8rem;
        margin: 5px 0;
        line-height: 1.3;
    }
    
    /* Footer Copyright */
    .footer-copyright {
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
    }
    
    .footer-copyright p {
        font-size: 0.75rem !important;
        margin: 0 !important;
    }
    
    /* General Mobile Optimizations */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Navbar Mobile Optimization */
    .navbar-brand h1 {
        font-size: 1.3rem !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem !important;
        padding: 8px 15px !important;
    }
    
    /* Topbar Mobile - Hide on small screens */
    .topbar {
        display: none !important;
    }
    
    /* Testimonial Controls */
    .testimonial-prev,
    .testimonial-next {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem !important;
    }
}

/* Desktop Footer Styles - Default */
.mobile-footer {
    display: none;
}

.desktop-footer {
    display: block;
}

/* Extra Small Devices - Even More Compressed */
@media (max-width: 575.98px) {
    .page-header {
        min-height: 50vh !important;
        padding: 25px 0 !important;
    }
    
    .page-header h1 {
        font-size: 1.5rem !important;
    }
    
    .page-header p {
        font-size: 0.8rem !important;
    }
    
    .service-section,
    .testimonial-section {
        padding: 25px 0 !important;
    }
    
    .service-item {
        padding: 15px 10px !important;
    }
    
    .service-item i {
        font-size: 1.8rem !important;
    }
    
    .testimonial-card {
        padding: 15px 10px !important;
    }
    
    .testimonial-img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .section-title h2,
    .text-center h2 {
        font-size: 1.3rem !important;
    }
    
    .mobile-footer-brand h1 {
        font-size: 1.1rem !important;
    }
    
    .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}
