/* Estilos para la sección de servicios visuales */
.visual-services-section {
    padding: 120px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.visual-services-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1542744173-8659b8e77b29?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=10');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

/* Estilos para el encabezado de la sección */
.section-badge {
    display: inline-block;
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a202c;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Grid de servicios visuales */
.visual-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.visual-service-item {
    height: 100%;
}

.visual-service-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.visual-service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.visual-service-image {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.visual-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.visual-service-card:hover .visual-service-image img {
    transform: scale(1.08);
}

.visual-service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -35px;
    right: 30px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.visual-service-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 15px 0 20px;
    color: #1a202c;
}

.visual-service-content p {
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.6;
}

.visual-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.visual-service-features li {
    padding: 10px 0;
    position: relative;
    padding-left: 30px;
    font-size: 1rem;
    color: #4a5568;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.visual-service-features li:last-child {
    border-bottom: none;
}

.visual-service-features li:before {
    content: "✓";
    color: #6366f1;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-service-details {
    display: inline-flex;
    align-items: center;
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s ease;
}

.btn-service-details i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-service-details:hover {
    color: #4f46e5;
}

.btn-service-details:hover i {
    transform: translateX(5px);
}

/* Estilos para la sección CTA */
.visual-services-cta {
    margin-top: 60px;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 
        0 50px 100px -20px rgba(50, 50, 93, 0.1),
        0 30px 60px -30px rgba(0, 0, 0, 0.15),
        0 -10px 60px -10px rgba(103, 178, 255, 0.05);
    position: relative;
}

.cta-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.cta-image-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.02);
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0)
    );
}

.cta-container:hover .cta-image img {
    transform: scale(1.08);
}

.cta-content-wrapper {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Versión simplificada sin gradiente */
.cta-content h3 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    /* Color sólido con alto contraste */
    color: #64748b;
    /* Efecto de degradado en el borde inferior en lugar de en el texto */
    position: relative;
    padding-bottom: 15px;
}

.cta-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    border-radius: 2px;
}

/* Añadir un poco de énfasis con un color ligeramente diferente para la primera palabra */
.cta-content h3 span {
    color: #6366f1;
}


.cta-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 30px;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.feature-icon i {
    font-size: 1.1rem;
    color: #6366f1;
}

.cta-feature span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-whatsapp {
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #5e38c2 0%, #6a2ef4 100%);    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-whatsapp {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-whatsapp i {
    color: #25D366;
    font-size: 1.2rem;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-badge, .section-title, .section-subtitle {
    animation: fadeIn 0.8s ease forwards;
}

.section-title { animation-delay: 0.1s; }
.section-subtitle { animation-delay: 0.2s; }

.visual-service-item {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.visual-service-item:nth-child(1) { animation-delay: 0.3s; }
.visual-service-item:nth-child(2) { animation-delay: 0.4s; }
.visual-service-item:nth-child(3) { animation-delay: 0.5s; }

.cta-badge, .cta-content h3, .cta-content p, 
.cta-features, .cta-buttons {
    animation: fadeIn 0.8s ease forwards;
}

.cta-content h3 { animation-delay: 0.6s; }
.cta-content p { animation-delay: 0.7s; }
.cta-features { animation-delay: 0.8s; }
.cta-buttons { animation-delay: 0.9s; }

/* Responsive styles */
@media (max-width: 1199px) {
    .section-title {
        font-size: 2.4rem;
    }
    
    .cta-content-wrapper {
        padding: 40px;
    }
    
    .cta-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .visual-services-section {
        padding: 100px 0;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
    }
    
    .cta-image-wrapper {
        height: 300px;
        position: relative;
    }
    
    .cta-image {
        position: relative;
    }
    
    .cta-features {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }
}

@media (max-width: 767px) {
    .visual-services-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .visual-services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content-wrapper {
        padding: 30px;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
    }
    
    .cta-image-wrapper {
        height: 250px;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        top: -30px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .visual-service-content h3 {
        font-size: 1.4rem;
        margin-top: 10px;
    }
    
    .btn-service-details, .btn-primary, .btn-whatsapp {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/* Efectos adicionales para mejorar la experiencia de usuario */
.visual-service-card {
    position: relative;
    z-index: 1;
}

.visual-service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 16px;
}

.visual-service-card:hover::before {
    opacity: 1;
}

/* Mejoras para accesibilidad y enfoque */
.btn-service-details:focus, .btn-primary:focus, .btn-whatsapp:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Efectos de hover mejorados para botones */
.btn-primary, .btn-whatsapp {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-whatsapp::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transition: left 0.6s ease;
}

.btn-primary:hover::after, .btn-whatsapp:hover::after {
    left: 100%;
}

/* Mejoras para la sección CTA */
.visual-services-cta {
    position: relative;
    z-index: 1;
}

.visual-services-cta::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 50%;
    z-index: -1;
}

.visual-services-cta::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 50%;
    z-index: -1;
}

/* Mejoras para la imagen de CTA */
.cta-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(99, 102, 241, 0.2),
        rgba(139, 92, 246, 0.2)
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.cta-container:hover .cta-image::before {
    opacity: 1;
}

/* Efectos de transición suaves para todos los elementos */
.visual-services-section * {
    transition-property: transform, opacity, box-shadow, color, background-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Mejoras para el rendimiento */
@media (prefers-reduced-motion: reduce) {
    .visual-services-section * {
        transition: none !important;
        animation: none !important;
    }
}

/* Mejoras para el modo oscuro si el sitio lo soporta */
@media (prefers-color-scheme: dark) {
    .visual-services-section {
        background-color: #0f172a;
    }
    
    .section-badge {
        background-color: rgba(99, 102, 241, 0.2);
    }
    
    .section-title {
        color: #f1f5f9;
    }
    
    .section-subtitle {
        color: #cbd5e1;
    }
    
    .visual-service-card {
        background-color: #1e293b;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
    
    .visual-service-content h3 {
        color: #f1f5f9;
    }
    
    .visual-service-content p {
        color: #cbd5e1;
    }
    
    .visual-service-features li {
        color: #cbd5e1;
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    
    .cta-container {
        background: #1e293b;
        box-shadow: 
            0 50px 100px -20px rgba(0, 0, 0, 0.5),
            0 30px 60px -30px rgba(0, 0, 0, 0.5);
    }
    
 
    
    .cta-content p {
        color: #cbd5e1;
    }
    
    .feature-icon {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .cta-feature span {
        color: #cbd5e1;
    }
    
    .btn-whatsapp {
        background: #1e293b;
        color: #cbd5e1;
        border-color: #334155;
    }
}

/* Mejoras para impresión */
@media print {
    .visual-services-section {
        padding: 20px 0;
        background: none;
    }
    
    .visual-services-section::before {
        display: none;
    }
    
    .visual-service-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .service-icon {
        box-shadow: none;
    }
    
    .cta-container {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .btn-primary, .btn-whatsapp {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}
