/* Estilos específicos para la página de inicio */
.about {
    background: #f8f9fa;
    padding: 3rem 0;
}

/* Services Section */
.services-section {
    padding: 1.5rem 0; /* Reducido de 3rem a 1.5rem */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem; /* Reducido de 2.5rem a 1.5rem */
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 1rem; /* Reducido de 2.5rem a 1.5rem */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card-enhanced {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    padding: 1.5rem 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.service-icon img {
    width: 80px;
    height: 80px;
    filter: brightness(0) invert(1);
    background-color: transparent;
}

.service-icon img:not([src]),
.service-icon img[src=""],
.service-icon img[src="#"] {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" fill="white"><rect width="80" height="80" fill="white" rx="8"/><text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="%23007bff" font-family="Arial, sans-serif" font-size="10">Icono</text></svg>');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

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

.service-image {
    margin: 1.5rem 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-demo-image {
    width: 100%;
    max-width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
}

.service-demo-image:not([src]),
.service-demo-image[src=""],
.service-demo-image[src="#"] {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 120" fill="%23dee2e6"><rect width="200" height="120" fill="%23f8f9fa"/><text x="50%" y="50%" text-anchor="middle" dy=".3em" fill="%236c757d" font-family="Arial, sans-serif" font-size="14">Imagen no disponible</text></svg>');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-demo-image:hover {
    transform: scale(1.05);
}

.service-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-features i {
    color: #28a745;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #f8f9fa;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.services-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.services-cta h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.services-cta p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Botón básico mejorado */
.btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    text-decoration: none;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
    text-decoration: none;
}

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

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonials {
    background: white;
    padding: 3rem 0;
    position: relative;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.client {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client h4 {
    margin: 0;
    color: #333;
}

.client p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.slider-controls {
    text-align: center;
    margin-top: 2rem;
}

.slider-controls button {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-controls button:hover {
    background: #764ba2;
}

.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Team Section */
.team-section {
    margin-top: 3rem;
}

.team-section h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.member-info h4 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #667eea;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.member-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Automation Benefits Section */
.automation-benefits {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.automation-benefits .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.automation-benefits h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.automation-benefits .section-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.use-case-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #007bff;
}

.use-case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.use-case-icon i {
    font-size: 1.5rem;
    color: white;
}

.use-case-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.parable {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #28a745;
}

.parable h4 {
    color: #28a745;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.parable p {
    color: #495057;
    line-height: 1.6;
    font-style: italic;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #495057;
}

.benefits-list i {
    color: #28a745;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

/* General Benefits */
.general-benefits {
    margin-bottom: 4rem;
}

.general-benefits h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-item h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: #6c757d;
    line-height: 1.6;
}

/* Automation CTA */
.automation-cta {
    text-align: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 3rem 2rem;
    border-radius: 20px;
    color: white;
}

.automation-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.automation-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.automation-cta .btn {
    background: white;
    color: #007bff;
    border: none;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.automation-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.contact {
    background: #f8f9fa;
    padding: 3rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: #667eea;
    width: 20px;
}

.social-media {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-media a:hover {
    background: #764ba2;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Banner Carousel Styles */
.banner-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.banner-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-dot.active {
    background: white;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    z-index: 3;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

@media (max-width: 768px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .client {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .banner-carousel {
        height: 300px;
    }
    
    /* Services responsive styles */
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }
    
    .service-card-enhanced {
        margin: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-cta {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    /* Automation Benefits responsive styles */
    .automation-benefits h2 {
        font-size: 2rem;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .automation-cta {
        padding: 2rem 1rem;
    }
    
    .automation-cta h3 {
        font-size: 1.5rem;
    }
}

/* Estilos adicionales para móviles muy pequeños */
@media (max-width: 480px) {
    .banner-carousel {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    .banner-content {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .banner-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .banner-arrow.prev {
        left: 5px;
    }
    
    .banner-arrow.next {
        right: 5px;
    }
    
    .banner-dot {
        width: 10px;
        height: 10px;
    }
    
    .banner-nav {
        bottom: 15px;
        gap: 8px;
    }
}