/* Empresas Administration Styles - Teal/Green-Blue Theme */

.empresas-container {
    min-height: 100vh;
    background: #f0f9fb;
}

.empresas-header {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    padding: 35px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 35px;
}

.empresas-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.empresas-header small {
    display: block;
    font-size: 0.95rem;
    margin-top: 8px;
    opacity: 0.9;
    font-weight: 500;
}

.empresas-content {
    padding: 0 20px 50px 20px;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #0d9488;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(13, 148, 136, 0.15);
}

.stat-icon {
    font-size: 2.2rem;
    min-width: 50px;
    text-align: center;
}

.stat-body {
    flex: 1;
}

.stat-body h6 {
    margin: 0;
    color: #0d9488;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-body h3 {
    margin: 8px 0 6px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-trend {
    color: #059669;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Empresas Grid */
.empresas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}

.empresa-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.empresa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.2);
    border-color: #0d9488;
}

.empresa-header {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.empresa-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 60px;
}

.empresa-info-top {
    flex: 1;
}

.empresa-nombre {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.empresa-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.empresa-status.active {
    background: rgba(34, 197, 94, 0.3);
}

.empresa-status.suspended {
    background: rgba(239, 68, 68, 0.3);
}

.empresa-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empresa-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.empresa-detail:last-of-type {
    border-bottom: none;
}

.detail-label {
    color: #0d9488;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-value {
    color: #374151;
    font-size: 0.9rem;
    text-align: right;
}

.empresa-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: #f0fdf9;
    border-radius: 12px;
    border-left: 4px solid #0d9488;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0d9488;
    margin-bottom: 4px;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: #059669;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.empresa-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.empresa-actions button {
    flex: 1;
    border-color: #0d9488;
    color: #0d9488;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.empresa-actions button:hover {
    background: #0d9488;
    color: white;
}

.empresa-actions button.btn-outline-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.empresa-actions button.btn-outline-danger:hover {
    background: #ef4444;
    color: white;
}

.empresa-actions button.btn-outline-warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.empresa-actions button.btn-outline-warning:hover {
    background: #f59e0b;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .empresas-header h1 {
        font-size: 1.6rem;
    }

    .empresas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        margin-bottom: 10px;
    }

    .empresa-header {
        padding: 16px;
    }

    .empresa-body {
        padding: 16px;
    }

    .empresa-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .metric-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .empresas-header {
        padding: 20px 0;
    }

    .empresas-header h1 {
        font-size: 1.3rem;
    }

    .empresas-content {
        padding: 0 10px 30px 10px;
    }

    .empresas-grid {
        gap: 15px;
    }

    .empresa-card {
        border-radius: 12px;
    }

    .empresa-header {
        flex-direction: column;
        text-align: center;
    }

    .empresa-info-top {
        width: 100%;
    }

    .empresa-nombre {
        font-size: 1rem;
    }

    .detail-value {
        text-align: left;
    }

    .empresa-actions {
        gap: 4px;
    }

    .empresa-actions button {
        padding: 6px 8px;
        font-size: 0.75rem;
    }

    .stat-card {
        margin-bottom: 8px;
    }

    .stat-body h3 {
        font-size: 1.5rem;
    }
}
