/* ===================================
   SECCIONES PREMIUM - ESTILOS ESPECÍFICOS
   Estilos para EcoTool, Shiftly Core y Servicios
   =================================== */

/* ===================
   ESTILOS GENERALES
   =================== */

.eco-hero, .shiftly-hero, .services-hero {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.eco-overlay, .shiftly-overlay, .services-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    text-align: center;
}

.eco-subtitle, .shiftly-subtitle, .services-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ===================
   SIDEBAR GENERAL
   =================== */

#sidebar {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 15px;
}

#sidebar h3 {
    font-weight: bold;
    margin-bottom: 1rem;
}

#sidebar p {
    line-height: 1.6;
}

/* ===================
   ECOTOOL ESPECÍFICO
   =================== */

.eco-feature {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
    color: #333;
}

.eco-feature h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-weight: bold;
}

.eco-feature p {
    color: #424242;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.eco-image img, .shiftly-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.eco-image:hover img, .shiftly-image:hover img {
    transform: scale(1.05);
}

.eco-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.15);
}

.eco-feature .feature-icon {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.eco-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #4CAF50;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.eco-features {
    margin: 2rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    text-align: center;
    color: #333;
}

.feature-item h4 {
    color: #333;
    margin: 1rem 0 0.5rem 0;
    font-weight: bold;
}

.feature-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.feature-item:hover {
    border-color: #4CAF50;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.1);
}

.feature-item i {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.eco-testimonial {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.eco-testimonial blockquote {
    border: none;
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}

.eco-testimonial cite {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    opacity: 0.9;
}

/* ===================
   SHIFTLY ESPECÍFICO
   =================== */

.shiftly-feature {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid #2196F3;
    transition: all 0.3s ease;
    color: #333;
}

.shiftly-feature h3 {
    color: #1565c0;
    margin-bottom: 1rem;
    font-weight: bold;
}

.shiftly-feature p {
    color: #424242;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.shiftly-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.15);
}

.ai-icon {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.shiftly-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    border: 2px solid #2196F3;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.1);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: scale(1.03);
}

.metric-icon {
    background: #2196F3;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.metric-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.capability-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    color: #333;
}

.capability-item h4 {
    color: #333;
    margin: 0;
    font-weight: bold;
}

.capability-item p {
    color: #666;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

.capability-item:hover {
    border-color: #2196F3;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.1);
}

.capability-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.capability-header i {
    font-size: 1.5rem;
    color: #2196F3;
    margin-right: 0.75rem;
}

.testimonial-sidebar {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.testimonial-content i {
    font-size: 1.5rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.testimonial-content cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===================
   SERVICIOS ESPECÍFICO
   =================== */

.services-intro {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border-radius: 15px;
    border: 1px solid #95a5a6;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-category {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-category:hover {
    transform: translateY(-10px);
}

/* Efectos hover específicos por categoría - Tonos profesionales */
.service-category:nth-child(1):hover,
.service-category:first-child:hover {
    box-shadow: 0 15px 40px rgba(44, 62, 80, 0.2) !important;
}

.service-category:nth-child(2):hover {
    box-shadow: 0 15px 40px rgba(142, 68, 173, 0.2);
}

.service-category:nth-child(3):hover {
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.2);
}

.service-category:nth-child(4):hover {
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.2);
}

.category-header {
    color: white;
    padding: 1.5rem;
    text-align: center;
}

/* Forzar estilos específicos para cada categoría */
.services-grid .service-category:nth-of-type(1) .category-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.services-grid .service-category:nth-of-type(2) .category-header {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
}

.services-grid .service-category:nth-of-type(3) .category-header {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
}

.services-grid .service-category:nth-of-type(4) .category-header {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%) !important;
}

/* Gradientes específicos por categoría - Paleta profesional */
.service-category:nth-child(1) .category-header,
.service-category:first-child .category-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important; /* Azul oscuro para desarrollo */
}

.service-category:nth-child(2) .category-header {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%); /* Púrpura elegante para IA */
}

.service-category:nth-child(3) .category-header {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); /* Verde profesional para Cloud */
}

.service-category:nth-child(4) .category-header {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%); /* Dorado para Consultoría */
}

.category-header h3 {
    color: white;
    margin: 0.5rem 0 0 0;
    font-weight: bold;
}

.category-header i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-items {
    padding: 1.5rem;
}

.service-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h4 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Colores específicos por categoría de servicio - Paleta profesional */
.service-category:nth-child(1) .service-item h4,
.service-category:first-child .service-item h4 {
    color: #2c3e50 !important; /* Azul oscuro para desarrollo */
}

.service-category:nth-child(2) .service-item h4 {
    color: #8e44ad; /* Púrpura elegante para IA */
}

.service-category:nth-child(3) .service-item h4 {
    color: #27ae60; /* Verde profesional para Cloud */
}

.service-category:nth-child(4) .service-item h4 {
    color: #e67e22; /* Dorado para Consultoría */
}

.service-item p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.methodology-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cta-section {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .button {
    border: 2px solid white;
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cta-buttons .button:hover {
    background: white;
    color: #11998e !important;
    text-shadow: none;
}

.cta-buttons .button.primary {
    background: white;
    color: #11998e !important;
    text-shadow: none;
}

.cta-buttons .button.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: white;
}

/* ===================
   RESPONSIVE DESIGN
   =================== */

@media screen and (max-width: 768px) {
    .eco-stats, .shiftly-metrics {
        grid-template-columns: 1fr;
    }
    
    .feature-grid, .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .methodology-steps {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .button {
        width: 100%;
        max-width: 300px;
    }
    
    .metric-card {
        flex-direction: column;
        text-align: center;
    }
    
    .metric-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .eco-overlay, .shiftly-overlay, .services-overlay {
        padding: 1rem;
    }
    
    .eco-feature, .shiftly-feature {
        padding: 1rem;
    }
    
    .stat-item, .metric-card {
        padding: 1rem;
    }
    
    .methodology-section, .cta-section {
        padding: 2rem 1rem;
    }
}

/* ===================
   ANIMACIONES ADICIONALES
   =================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eco-feature, .shiftly-feature, .service-category {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item, .metric-card {
    animation: fadeInUp 0.8s ease forwards;
}

/* Retraso de animación para elementos secuenciales */
.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.service-category:nth-child(1) { animation-delay: 0.1s; }
.service-category:nth-child(2) { animation-delay: 0.3s; }
.service-category:nth-child(3) { animation-delay: 0.5s; }
.service-category:nth-child(4) { animation-delay: 0.7s; }
