/* ===== ESTILOS PARA SECTORES QUE ATENDEMOS ===== */

/* Tarjetas principales de sectores */
.sector-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 115, 174, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 115, 174, 0.1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073ae, #00a859);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.sector-card:hover::before {
    transform: scaleX(1);
}

.sector-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 115, 174, 0.2);
    border-color: rgba(0, 115, 174, 0.3);
}

/* Contenedor de imagen */
.sector-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.sector-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-card:hover .sector-image {
    transform: scale(1.1);
}

/* Overlay con icono */
.sector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 115, 174, 0.85) 0%, rgba(0, 168, 89, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.sector-card:hover .sector-overlay {
    opacity: 1;
}

.sector-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.5) rotate(-180deg);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sector-card:hover .sector-icon {
    transform: scale(1) rotate(0deg);
}

.sector-icon i {
    color: white;
    width: 2rem;
    height: 2rem;
}

/* Contenido de la tarjeta */
.sector-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sector-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.sector-card:hover .sector-title {
    color: #0073ae;
}

.sector-subtitle {
    color: #0073ae;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.sector-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Lista de beneficios */
.sector-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.sector-benefits li {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: #374151;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.sector-card:hover .sector-benefits li {
    opacity: 1;
    transform: translateX(0);
}

.sector-card:hover .sector-benefits li:nth-child(1) { transition-delay: 0.1s; }
.sector-card:hover .sector-benefits li:nth-child(2) { transition-delay: 0.2s; }
.sector-card:hover .sector-benefits li:nth-child(3) { transition-delay: 0.3s; }

.sector-benefit-icon {
    width: 1rem;
    height: 1rem;
    color: #0073ae;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Estadísticas del sector */
.sector-stats {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.sector-stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0073ae;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}



/* Animaciones de entrada progresiva */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sector-card[data-aos="fade-up"] {
    animation: slideInUp 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sector-card {
        margin-bottom: 2rem;
    }
    
    .sector-stats {
        padding: 0.75rem 1rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .sector-image-container {
        height: 180px;
    }
    
    .sector-content {
        padding: 1.25rem;
    }
    
    .sector-title {
        font-size: 1.125rem;
    }
    
    .sector-icon {
        width: 60px;
        height: 60px;
    }
    
    .sector-icon i {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .additional-sector-image {
        height: 120px;
    }
    
    .additional-sector-content {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .sector-card:hover {
        transform: translateY(-10px) scale(1);
    }
    
    .sector-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sector-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .stat-number {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .additional-sector-image {
        height: 100px;
    }
}

/* Efectos especiales para dispositivos táctiles */
@media (hover: none) {
    .sector-card:active .sector-overlay {
        opacity: 1;
    }
    
    .sector-card:active .sector-icon {
        transform: scale(1) rotate(0deg);
    }
    
    .sector-card:active .sector-benefits li {
        opacity: 1;
        transform: translateX(0);
    }
}
